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的lv2、执行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另外有需要云服务器可以了解下创新互联cdcxhl.cn,海内外云服务器15元起步,三天无理由+7*72小时售后在线,公司持有idc许可证,提供“云服务器、裸金属服务器、高防服务器、香港服务器、美国服务器、虚拟主机、免备案服务器”等云主机租用服务以及企业上云的综合解决方案,具有“安全稳定、简单易用、服务可用性高、性价比高”等特点与优势,专为企业上云打造定制,能够满足用户丰富、多元化的应用场景需求。
文章题目:AIX系统故障之--hd5修复-创新互联
当前地址:http://hbruida.cn/article/dipdge.html