AIX 系统修复hd5
系统环境:
操作系统: 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
免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。