服务器系统重装后,手工恢复存储上的VG出现错误提示
# vgimport /dev/vg02 /dev/dsk/c6t0d1 /dev/dsk/c13t0d2
Warning: A backup of this volume group may not exist on this machine.
Please remember to take a backup using the vgcfgbackup command after activating the volume group.
# vgchange -a y /dev/vg02
Activated volume group
vgchange: Couldn't re-synchronize stale partitions of the logical volume:
No such device or address
vgchange: Couldn't re-synchronize stale partitions of the logical volume:
No such device or address
vgchange: Couldn't re-synchronize stale partitions of the logical volume:
No such device or address
vgchange: Couldn't re-synchronize stale partitions of the logical volume:
No such device or address
Volume group "/dev/vg02" has been successfully changed.
vgchange命令执行很多秒后,出现上面的提示。这个是什么情况? 这个vg02原来是做了mirror的?分别尝试一下下面的active方法看看:
# vgchange -a y -s /dev/vg02
或
# vgchange -a y -s -q n /dev/vg02 VG已经激活了,但是有stale PE。
检查一下:
vgdisplay -v vg02
lvdisplay -v XXXX
回复 2# lbseraph
没做mirror,vg在EVA上 哦,如果还有问题就先把3#的命令输出贴出来看眼先吧~ # vgdisplay -v /dev/vg02
--- Volume groups ---
VG Name /dev/vg02
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 4
Open LV 4
Max PV 16
Cur PV 2
Act PV 2
Max PE per PV 25599
VGDA 4
PE Size (Mbytes) 8
Total PE 31994
Alloc PE 31875
Free PE 119
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0
--- Logical volumes ---
LV Name /dev/vg02/hpsvr01-views2
LV Status available/syncd
LV Size (Mbytes) 5000
Current LE 625
Allocated PE 625
Used PV 1
LV Name /dev/vg02/hpsvr01-vobs
LV Status available/syncd
LV Size (Mbytes) 97000
Current LE 12125
Allocated PE 12125
Used PV 2
LV Name /dev/vg02/hpsvr01-vobs2
LV Status available/syncd
LV Size (Mbytes) 128000
Current LE 16000
Allocated PE 16000
Used PV 2
LV Name /dev/vg02/hpsvr01-vobs3
LV Status available/syncd
LV Size (Mbytes) 25000
Current LE 3125
Allocated PE 3125
Used PV 2
--- Physical volumes ---
PV Name /dev/dsk/c6t0d1
PV Status unavailable
Total PE 25596
Free PE 0
Autoswitch On
PV Name /dev/dsk/c13t0d2
PV Status unavailable
Total PE 6398
Free PE 119
Autoswitch On
# 回复 5# lbseraph
本帖最后由 tangye 于 2013-05-09 10:11 编辑
--- Physical volumes ---
PV Name /dev/dsk/c6t0d1
PV Status unavailable
Total PE 25596
Free PE 0
Autoswitch On
PV Name /dev/dsk/c13t0d2
PV Status unavailable
Total PE 6398
Free PE 119
Autoswitch On
两个PV为啥是unavailable?ioscan看到的都是claimed
disk 170/12/0/0.1.0.0.0.0.1sdisk CLAIMED DEVICE HP HSV300
/dev/dsk/c6t0d1 /dev/rdsk/c6t0d1
disk 200/12/0/0.1.1.0.0.0.2sdisk CLAIMED DEVICE HP HSV300
/dev/dsk/c13t0d2 /dev/rdsk/c13t0d2
我也觉得奇怪,而且vg02对应的LV都是syncd的状态。你尝试一下dd读一下两个PV,看看有没有报错? lbseraph 发表于 2013-05-09 11:18 static/image/common/back.gif
我也觉得奇怪,而且vg02对应的LV都是syncd的状态。你尝试一下dd读一下两个PV,看看有没有报错?
如果存储上的lun给我的权限是read-only,会不会形成这样的情况?
当时恢复系统的时候,为了数据安全,可能在存储上做过配置 这种情况少见,没配过。那需要检查一下EVA上面了~
页:
[1]