Your Ad Here

IBM AIX/UNIX system storage administration ksh/perl scripting

Thursday, March 12, 2009

lppchk -v returns some filesets in inconsistent state

lppchk -v returns some filesets in inconsistent state


# lppchk -v
lppchk: The following filesets need to be installed or corrected to bring
the system to a consistent state:


35a3f072070e17f99882a0ac7e8d3ae6 0.0.0.0 (COMMITTED)
072d1af880e11ff6bc355d6f029366ac 0.0.0.0 (COMMITTED)
4886af1c5eb4f6c75d84991853b6aa2f 1.3.2.28 (COMMITTED)
c4950247aca9a94009447ad45d8070dc 0.0.0.0 (COMMITTED)
e46b6463e600798849b573b33d169fe2 1.1.1.3 (COMMITTED)



1. Create a backup the odm:


# /usr/lib/instl/saveodms -f myvpd
VPD is saved as /u/myvpd.odm.bff.Z

OR
Backup the Object Data Manager (ODM) using the following command:

# mkdir /tmp/odmfix
# tar cvf odmbackup.tar /etc/objrepos /usr/lib/objrepos
2. run the following commands to remove the entry
#  odmget -q name=35a3f072070e17f99882a0ac7e8d3ae6 lpp

lpp:
name = "35a3f072070e17f99882a0ac7e8d3ae6"
size = 0
state = 0
cp_flag = 0
group = ""
magic_letter = ""
ver = 0
rel = 0
mod = 0
fix = 0
description = ""
lpp_id = 1799

>> Take note of the "lpp_id", which is 1799 in this case.


# odmdelete -q name=35a3f072070e17f99882a0ac7e8d3ae6 -o lpp

# odmdelete -q lpp_name=35a3f072070e17f99882a0ac7e8d3ae6 -o product
0518-307 odmdelete: 0 objects deleted.

odmdelete -q lpp_id=1799 -o history
0518-307 odmdelete: 0 objects deleted.

odmdelete -q lpp_id=1799 -o inventory
0518-307 odmdelete: 251 objects deleted.


Now, since this entry is also in the /etc/objrepos part of the odm, we
have to remove it from there:

# export ODMDIR=/etc/objrepos

# odmget -q name=35a3f072070e17f99882a0ac7e8d3ae6 lpp

lpp:
name = "35a3f072070e17f99882a0ac7e8d3ae6"
size = 0
state = 5
cp_flag = 131345
group = ""
magic_letter = ""
ver = 0
rel = 0
mod = 0
fix = 0
description = "ISMP installed entry"
lpp_id = 1786

lpp:
name = "35a3f072070e17f99882a0ac7e8d3ae6"
size = 0
state = 5
cp_flag = 131345
group = ""
magic_letter = ""
ver = 0
rel = 0
mod = 0
fix = 0
description = "ISMP installed entry"
lpp_id = 1792

# odmdelete -q name=35a3f072070e17f99882a0ac7e8d3ae6 -o lpp
0518-307 odmdelete: 2 objects deleted.

# odmdelete -q lpp_name=35a3f072070e17f99882a0ac7e8d3ae6 -o product
0518-307 odmdelete: 1 objects deleted.

# odmdelete -q lpp_id=1786 -o history
0518-307 odmdelete: 1 objects deleted.

# odmdelete -q lpp_id=1792 -o history
0518-307 odmdelete: 1 objects deleted.

# odmdelete -q lpp_id=1786 -o inventory
0518-307 odmdelete: 0 objects deleted.

# odmdelete -q lpp_id=1792 -o inventory
0518-307 odmdelete: 0 objects deleted.

Repeat the same thing for other filesets.
Now the lppchk -v is clean.

# lppchk -v

No comments:

Labels

Blog Archive

BlogCatalog