Your Ad Here

IBM AIX/UNIX system storage administration ksh/perl scripting

Showing posts with label ODM. Show all posts
Showing posts with label ODM. Show all posts

Tuesday, March 24, 2009

lsdev: 0514-521 Cannot find information in the predefined device configuration database for the customized device iocp0.

Got an error when typing lsdev -C and lscfg command.

# lsdev -C | grep Defined
lsdev: 0514-521 Cannot find information in the predefined device
configuration database for the cu
stomized device iocp0.

# lscfg -vl hdisk0
0519-004 libodm: The specified search criteria is incorrectly formed.
Make sure the criteria contains only valid descriptor names and
the search values are correct.

hdisk0 P2/Z1-A8 16 Bit LVD SCSI Disk Drive (18200 MB)

Manufacturer................IBM
Machine Type and Model......DDYS-T18350M
FRU Number..................00P1520
ROS Level and ID............53423041
Serial Number...............9EGQ4829
EC Level....................F79924
Part Number.................07N3842
Device Specific.(Z0)........000003029F00013A
Device Specific.(Z1)........07N4924
Device Specific.(Z2)........0933
Device Specific.(Z3)........01242
Device Specific.(Z4)........0001
Device Specific.(Z5)........22
Device Specific.(Z6)........F79924

Solution:

1. Backup ODM.
tar -cvf /tmp/ODM.tar /etc/objrepos/


2. Delete the iocp0 device from CuDv
odmdelete -q "name=iocp0" -o CuDv

0518-307 odmdelete: 1 objects deleted.

3. Now it is clean

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

Labels

BlogCatalog