AIX cfgmgr error
环境:
操作系统: AIX5.3.8
1、错误现象:
在执行cfgmgr 时出现以下错误
cfgmgr: 0514-609 Unable to save the base customized information
on /dev/ipldevice.
执行以下命令,更新启动项:
[root@aix219 /]# bosboot -ad /dev/ipldevice
0301-168 bosboot: The current boot logical volume, /dev/hd5,
does not exist on /dev/hdisk0.
[root@aix219 /]# rmlv hd5
Warning, all data contained on logical volume hd5 will be destroyed.
rmlv: Do you wish to continue? y(es) n(o)?
y
0516-022 lquerylv: Illegal parameter or structure value.
0516-912 rmlv: Unable to remove logical volume hd5.
0516-1734 rmlv: Warning, savebase failed. Please manually run 'savebase' before rebooting.
[root@aix219 /]# lsvg -l rootvg
rootvg:
LV NAME TYPE LPs PPs PVs LV STATE MOUNT POINT
hd6 paging 26 26 1 open/syncd N/A
hd8 jfs2log 1 1 1 open/syncd N/A
hd4 jfs2 160 160 1 open/syncd /
hd2 jfs2 64 64 1 open/syncd /usr
hd9var jfs2 16 16 1 open/syncd /var
hd3 jfs2 16 16 1 open/syncd /tmp
hd1 jfs2 16 16 1 open/syncd /home
hd10opt jfs2 16 16 1 open/syncd /opt
fwdump jfs2 1 1 1 open/syncd /var/adm/ras/platform
loglv00 jfslog 1 1 1 open/syncd N/A
lv00 jfs 1 1 1 open/syncd /var/adm/csd
lv_pg1 paging 10 10 1 open/syncd N/A
fslv00 jfs2 120 120 1 open/syncd /u01
hd5 boot 1 1 1 closed/syncd N/A
2、通过ODM删除hd5
查看信息:
# odmget -q name=hd5 -o CuAt
删除odm中的信息:
#cd /etc/objrepos
#mkdir save
#cp -p Cu* save
#odmdelete -q name=hd5 -o CuAt
(0518-307 odmdelete: 4 objects deleted.)
#odmdelete -q name=hd5 -o CuDv
(0518-307 odmdelete: 1 objects deleted.)
#odmdelete -q value3=hd5 -o CuDvDr
(odmdelete -q value3=hd5 -o CuDvDr)
[root@aix219 /]# odmdelete -q name=hd5 -o CuDv
0 objects deleted
[root@aix219 /]# odmdelete -q name=hd5 -o CuAt
0 objects deleted
[root@aix219 /]# bosboot -ad /dev/ipldevice
0516-306 lslv: Unable to find hd5 in the Device
Configuration Database.
0301-168 bosboot: The current boot logical volume, /dev/hd5,
does not exist on /dev/hdisk0.
[root@aix219 /]# mklv -y hd5 -t boot -a e rootvg 1
0516-020 lcreatelv: Logical volume name or minor number already
in use.
0516-822 mklv: Unable to create logical volume.
0516-1734 mklv: Warning, savebase failed. Please manually run 'savebase' before rebooting.
3、同步ODM
[root@aix219 /]# synclvodm -P -v rootvg
synclvodm: Physical volume data updated.
synclvodm: Logical volume hd6 updated.
synclvodm: Logical volume hd8 updated.
synclvodm: Logical volume hd4 updated.
synclvodm: Logical volume hd2 updated.
synclvodm: Logical volume hd9var updated.
synclvodm: Logical volume hd3 updated.
synclvodm: Logical volume hd1 updated.
synclvodm: Logical volume hd10opt updated.
synclvodm: Logical volume fwdump updated.
synclvodm: Logical volume loglv00 updated.
synclvodm: Logical volume lv00 updated.
synclvodm: Logical volume lv_pg1 updated.
synclvodm: Logical volume fslv00 updated.
synclvodm: Logical volume hd5 updated.
[root@aix219 /]# lsvg -l rootvg
rootvg:
LV NAME TYPE LPs PPs PVs LV STATE MOUNT POINT
hd6 paging 26 26 1 open/syncd N/A
hd8 jfs2log 1 1 1 open/syncd N/A
hd4 jfs2 160 160 1 open/syncd /
hd2 jfs2 64 64 1 open/syncd /usr
hd9var jfs2 16 16 1 open/syncd /var
hd3 jfs2 16 16 1 open/syncd /tmp
hd1 jfs2 16 16 1 open/syncd /home
hd10opt jfs2 16 16 1 open/syncd /opt
fwdump jfs2 1 1 1 open/syncd /var/adm/ras/platform
loglv00 jfslog 1 1 1 open/syncd N/A
lv00 jfs 1 1 1 open/syncd /var/adm/csd
lv_pg1 paging 10 10 1 open/syncd N/A
fslv00 jfs2 120 120 1 open/syncd /u01
hd5 boot 1 1 1 closed/syncd N/A
4、问题解决
[root@aix219 /]# bosboot -ad /dev/ipldevice
bosboot: Boot image is 37922 512 byte blocks.
[root@aix219 /]# cfgmgr -v
cfgmgr is running in phase 2
----------------
Calling savebase
Return code = 0
*** no stdout ****
*** no stderr ****
Configuration time: 1 seconds
[root@aix219 /]#