操作系统为:AIX 5.2
刚接手的项目,发现客户一台P5的机器里面的rootvg状态不对
rootvg:
LV NAME TYPE LPs PPs PVs LV STATE MOUNT POINT
hd5 boot 1 1 1 closed/syncd N/A
hd6 paging 2 4 2 open/stale N/A
hd8 jfs2log 1 2 2 open/stale N/A
hd4 jfs2 8 16 2 open/stale /
hd2 jfs2 200 400 2 open/stale /usr
hd9var jfs2 4 8 2 open/stale /var
hd3 jfs2 40 80 2 open/stale /tmp
hd1 jfs2 1 2 2 open/stale /home
hd10opt jfs2 16 32 2 open/stale /opt
lg_dumplv jfs 4 8 2 closed/stale N/A
loglv00 jfslog 1 2 2 open/stale N/A
fwdump jfs2 1 2 2 open/syncd /var/adm/ras/platform
尝试使用syncvg -v rootvg 报如下错误
0516-1296 lresynclv: Unable to completely resynchronize volume.
The logical volume has bad-block relocation policy turned off.
This may have caused the command to fail.
0516-934 /usr/sbin/syncvg: Unable to synchronize logical volume hd6.
0516-934 /usr/sbin/syncvg: Unable to synchronize logical volume hd8.
0516-934 /usr/sbin/syncvg: Unable to synchronize logical volume hd4.
0516-934 /usr/sbin/syncvg: Unable to synchronize logical volume hd2.
0516-934 /usr/sbin/syncvg: Unable to synchronize logical volume hd9var.
0516-934 /usr/sbin/syncvg: Unable to synchronize logical volume hd3.
0516-934 /usr/sbin/syncvg: Unable to synchronize logical volume hd1.
0516-934 /usr/sbin/syncvg: Unable to synchronize logical volume hd10opt.
0516-934 /usr/sbin/syncvg: Unable to synchronize logical volume lg_dumplv.
0516-934 /usr/sbin/syncvg: Unable to synchronize logical volume loglv00.
0516-934 /usr/sbin/syncvg: Unable to synchronize logical volume lv01.
0516-934 /usr/sbin/syncvg: Unable to synchronize logical volume isolv.
0516-932 /usr/sbin/syncvg: Unable to synchronize volume group rootvg.
后来使用lsvg -p rootvg发现rootvg里面多一块盘,但该主机总共就只有两块本地盘
hdisk1 0008c1f9abbd8a94 rootvg active
hdisk2 000392a7ebc4aa74 rootvg active
rootvg:
PV ID PV STATE TOTAL PPs FREE PPs FREE DISTRIBUTION
000392a725c7dec5 removed 546 223 110..00..00..04..109
hdisk1 active 546 231 109..00..00..13..109
hdisk2 active 546 503 110..66..109..109..109
如上错误,分析可能是之前的维护人员更换坏盘的时候,没有unmirrorvg,直接更换了盘之后,并把原来的磁盘名称信息删除了。
现在使用unmirrorvg执行时报如下错误
0516-304 getlvodm: Unable to find device id 000392a725c7dec50000000000000000 in the Device
Configuration Database.
0516-1135 unmirrorvg: The unmirror of the volume group failed.
The volume group is still partially or fully mirrored.
求各位大神看没有处理过类似问题,指导小弟一下