AIX 系统修复hd5
创新互联主营武江网站建设的网络公司,主营网站建设方案,app开发定制,武江h5小程序定制开发搭建,武江网站营销推广欢迎武江等地区企业咨询
系统环境:
操作系统: AIX5308
故障现象:
hd5 被误删除,在执行cfgmgr 时报错!
1、查看rootvg 信息
# lsvg -l rootvg
rootvg: LV NAME TYPE LPs PPs PVs LV STATE MOUNT POINT hd6 paging 4 4 1 open/syncd N/A hd8 jfs2log 1 1 1 open/syncd N/A hd4 jfs2 40 40 1 open/syncd / hd2 jfs2 16 16 1 open/syncd /usr hd9var jfs2 16 16 1 open/syncd /var hd3 jfs2 8 8 1 open/syncd /tmp hd1 jfs2 120 120 1 open/syncd /home hd10opt jfs2 1 1 1 open/syncd /opt fwdump jfs2 1 1 1 open/syncd /var/adm/ras/platform fslv06 jfs 120 120 1 closed/syncd N/A 没有hd5的lv
2、执行cfgmgr 出错
# cfgmgr -v
......
Calling savebase
Return code = 1
*** no stdout ****
*** no stderr ****
cfgmgr: 0514-609 Unable to save the base customized information
on /dev/ipldevice.
修复启动lv:
# bosboot -ad /dev/ipldevice
0301-168 bosboot: The current boot logical volume, /dev/hd5,
does not exist on /dev/hdisk5.
同步lv:
# 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 fslv06 updated.
# lsvg -l rootvg
rootvg: LV NAME TYPE LPs PPs PVs LV STATE MOUNT POINT hd6 paging 4 4 1 open/syncd N/A hd8 jfs2log 1 1 1 open/syncd N/A hd4 jfs2 40 40 1 open/syncd / hd2 jfs2 16 16 1 open/syncd /usr hd9var jfs2 16 16 1 open/syncd /var hd3 jfs2 8 8 1 open/syncd /tmp hd1 jfs2 120 120 1 open/syncd /home hd10opt jfs2 1 1 1 open/syncd /opt fwdump jfs2 1 1 1 open/syncd /var/adm/ras/platform fslv06 jfs 120 120 1 closed/syncd N/A 缺少hd5的lv
重新创建hd5,报错:
# mklv -y hd5 -t boot -a e rootvg 1
0516-360 getlvname: The device name is already used; choose a
different name.
0516-822 mklv: Unable to create logical volume.
0516-1734 mklv: Warning, savebase failed. Please manually run 'savebase' before rebooting.
# 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 fslv06 updated.
3、解决方法:
通过ODM删除hd5:
# odmdelete -q name=hd5 -o CuDv
1 objects deleted
# odmdelete -q name=hd5 -o CuAt
6 objects deleted
重建hd5:
# mklv -y hd5 -t boot -a e rootvg 1
hd5
同步lv:
# 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 fslv06 updated. synclvodm: Logical volume hd5 updated.
# lsvg -l rootvg
rootvg: LV NAME TYPE LPs PPs PVs LV STATE MOUNT POINT hd6 paging 4 4 1 open/syncd N/A hd8 jfs2log 1 1 1 open/syncd N/A hd4 jfs2 40 40 1 open/syncd / hd2 jfs2 16 16 1 open/syncd /usr hd9var jfs2 16 16 1 open/syncd /var hd3 jfs2 8 8 1 open/syncd /tmp hd1 jfs2 120 120 1 open/syncd /home hd10opt jfs2 1 1 1 open/syncd /opt fwdump jfs2 1 1 1 open/syncd /var/adm/ras/platform fslv06 jfs 120 120 1 closed/syncd N/A hd5 boot 1 1 1 closed/syncd N/A hd5修复成功!
重新修复启动lv:
# bosboot -ad /dev/ipldevice
cfgmgr 正常:
# cfgmgr -v ...... Calling savebase Return code = 0 *** no stdout **** *** no stderr **** Configuration time: 1 seconds