智慧屏 安装 app如何提升家庭娱乐与教育体验的关键工具
1645
2022-09-22
AIX 系统故障之--hd5修复
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
版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。
发表评论
暂时没有评论,来抢沙发吧~