互联网服务AIX

aix系统的一个包的状态为BROKEN

aix6.1.8.15的 一个包sysmgt.websm.webaccess的状态是
/usr/lib/objrepos:sysmgt.websm.webaccess:6.1.8.15::APPLY:BROKEN:07/26/13:09;40;16
/usr/lib/objrepos:sysmgt.websm.webaccess:6.1.8.15::APPLY:BROKEN:07/26/13:09;33;08
/usr/lib/objrepos:sysmgt.websm.webaccess:6.1.8.15::APPLY:BROKEN:07/26/13:09;26;04
/usr/lib/objrepos:sysmgt.websm.webaccess:6.1.8.15::APPLY:BROKEN:07/19/13:20;09;41在包状态问BROKEN的情况如何将其恢复至commited?
参与9

8同行回答

abit2007abit2007系统工程师代维
先使用installp -C试下能否清除,不行再Remove software and reinstall。直接修改ODM库,还真没试过。显示全部
先使用installp -C试下能否清除,不行再Remove software and reinstall。

直接修改ODM库,还真没试过。收起
互联网服务 · 2013-10-17
浏览2070
yszw0817yszw0817存储架构师北京
1.可以尝试重新安装;2.用smit maintain_software或者installp -C如果在运行清除过程之后提示您重新引导(重新启动)系统,请立即执行此操作。如果获取的消息指示找不到任何可清除的产品,那么可能在不需要时已执行清除过程。要再次尝试安装。...显示全部
1.可以尝试重新安装;
2.用smit maintain_software或者installp -C
如果在运行清除过程之后提示您重新引导(重新启动)系统,请立即执行此操作。
如果获取的消息指示找不到任何可清除的产品,那么可能在不需要时已执行清除过程。要再次尝试安装。收起
硬件生产 · 2013-08-16
浏览2073
powertiandipowertiandi联盟成员系统架构师李宁(中国)体育用品有限公司
看看installp -C 是否可以清除,否则只有修改odm库了。显示全部
看看installp -C 是否可以清除,否则只有修改odm库了。收起
互联网服务 · 2013-08-16
浏览2086
powertiandipowertiandi联盟成员系统架构师李宁(中国)体育用品有限公司
How to remove broken filesets?This post shows how to deal with the BROKEN file sets.lppchk -vlppchk: The following filesets need to be installed or corrected to bring the system to a consistent state:cluster.es.cspoc.cmds 5.2.0.4 (BROKEN)cluster.es.c...显示全部
How to remove broken filesets?
This post shows how to deal with the BROKEN file sets.

lppchk -v
lppchk: The following filesets need to be installed or corrected to bring the system to a consistent state:
cluster.es.cspoc.cmds 5.2.0.4 (BROKEN)
cluster.es.cspoc.dsh 5.2.0.2 (BROKEN)
cluster.es.cspoc.rte 5.2.0.4 (BROKEN)

To repair this “situation” you have to modify the ODM of your host, so let’s start with making its backup.

cd /
tar -cvf /tmp/odm.tar ./etc/objrepos ./usr/lib/objrepos

ODM data is stored in few places, for these operations we have to use the one residing at:

export ODMDIR=/usr/lib/objrepos

So we can establish the lpp_id of the broken fileset.

odmget -q "name=cluster.es.cspoc.cmds" lpp
lpp:
name = "cluster.es.cspoc.cmds"
size = 0
state = 7
cp_flag = 273
group = ""
magic_letter = "I"
ver = 5
rel = 2
mod = 0
fix = 0
description = "ES CSPOC Commands"
lpp_id = 509

lpp:
name = "cluster.es.cspoc.cmds"
size = 0
state = 5
cp_flag = 273
group = ""
magic_letter = "I"
ver = 5
rel = 3
mod = 0
fix = 0
description = "ES CSPOC Commands"
lpp_id = 624

Examining the last output, you notice that ODM “knows” about two releases of this fileset. One is release 2 and the other release 3. It is the release 2 that is broken which needs to be removed. I take note that its lpp_id=509 and start ODM cleanup which takes several steps.

odmdelete -q "name=cluster.es.cspoc.cmds and rel=2" -o lpp
0518-307 odmdelete: 1 objects deleted.

odmdelete -q "lpp_name=cluster.es.cspoc.rte and rel=2" -o product
0518-307 odmdelete: 2 objects deleted.

odmdelete -q lpp_id=509 -o history
0518-307 odmdelete: 8 objects deleted.

odmdelete -q lpp_id=509 -o inventory
0518-307 odmdelete: 179 objects deleted.

Have the issue been fixed?

lppchk -vm3

Apparently, there are no more messages indicating this fileset is BROKEN. I have to repeat the same process with the remaining filesets

Well, it is not always as smooth as I presented it above. Few times, I had to logout, login and repeat the process in order to remove a broken fileset. Just rememebr to set the right ODM “side” before you start.

In need of more ODM information? Follow this link “http://warmetal.nl/aixodm收起
互联网服务 · 2013-08-16
浏览2333
tomorrowlmtomorrowlm系统工程师MDCL
报错信息?显示全部
报错信息?收起
系统集成 · 2013-08-16
浏览2106
szhangkangszhangkang项目经理aaa
现在包无法删除,也无法更新。显示全部
现在包无法删除,也无法更新。收起
互联网服务 · 2013-08-16
浏览2085
powertiandipowertiandi联盟成员系统架构师李宁(中国)体育用品有限公司
按楼上的做吧!显示全部
按楼上的做吧!收起
互联网服务 · 2013-08-16
浏览2075
tomorrowlmtomorrowlm系统工程师MDCL
找到原始光盘,将安装包删除重装显示全部
找到原始光盘,将安装包删除重装收起
系统集成 · 2013-08-16
浏览2077

提问者

szhangkang
项目经理aaa
擅长领域: 服务器Unix存储

相关问题

相关资料

相关文章

问题状态

  • 发布时间:2013-08-16
  • 关注会员:1 人
  • 问题浏览:11305
  • 最近回答:2013-10-17
  • X社区推广