互联网服务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.webacce...显示全部
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

查看其它 7 个回答powertiandi的回答

powertiandipowertiandi联盟成员系统架构师李宁(中国)体育用品有限公司
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
浏览2343

回答者

powertiandi
系统架构师李宁(中国)体育用品有限公司
擅长领域: 存储服务器灾备

powertiandi 最近回答过的问题

回答状态

  • 发布时间:2013-08-16
  • 关注会员:1 人
  • 回答浏览:2343
  • X社区推广