Chinaunix

标题: 服务器系统重装后,手工恢复存储上的VG出现错误提示 [打印本页]

作者: tangye    时间: 2013-05-04 11:43
标题: 服务器系统重装后,手工恢复存储上的VG出现错误提示

  1. # vgimport /dev/vg02 /dev/dsk/c6t0d1 /dev/dsk/c13t0d2
  2. Warning: A backup of this volume group may not exist on this machine.
  3. Please remember to take a backup using the vgcfgbackup command after activating the volume group.
  4. # vgchange -a y /dev/vg02

  5. Activated volume group
  6. vgchange: Couldn't re-synchronize stale partitions of the logical volume:
  7. No such device or address
  8. vgchange: Couldn't re-synchronize stale partitions of the logical volume:
  9. No such device or address
  10. vgchange: Couldn't re-synchronize stale partitions of the logical volume:
  11. No such device or address
  12. vgchange: Couldn't re-synchronize stale partitions of the logical volume:
  13. No such device or address
  14. Volume group "/dev/vg02" has been successfully changed.
复制代码
vgchange命令执行很多秒后,出现上面的提示。这个是什么情况?
作者: lbseraph    时间: 2013-05-04 14:33
这个vg02原来是做了mirror的?分别尝试一下下面的active方法看看:

# vgchange -a y -s /dev/vg02

# vgchange -a y -s -q n /dev/vg02
作者: haizdl    时间: 2013-05-04 16:24
VG已经激活了,但是有stale PE。
检查一下:

vgdisplay -v vg02
lvdisplay -v XXXX

作者: tangye    时间: 2013-05-04 23:02
回复 2# lbseraph


    没做mirror,vg在EVA上
作者: lbseraph    时间: 2013-05-05 12:08
哦,如果还有问题就先把3#的命令输出贴出来看眼先吧~
作者: tangye    时间: 2013-05-09 09:56
  1. # vgdisplay -v /dev/vg02
  2. --- Volume groups ---
  3. VG Name                     /dev/vg02
  4. VG Write Access             read/write     
  5. VG Status                   available                 
  6. Max LV                      255   
  7. Cur LV                      4      
  8. Open LV                     4      
  9. Max PV                      16     
  10. Cur PV                      2      
  11. Act PV                      2      
  12. Max PE per PV               25599        
  13. VGDA                        4   
  14. PE Size (Mbytes)            8               
  15. Total PE                    31994   
  16. Alloc PE                    31875   
  17. Free PE                     119     
  18. Total PVG                   0        
  19. Total Spare PVs             0              
  20. Total Spare PVs in use      0                     

  21.    --- Logical volumes ---
  22.    LV Name                     /dev/vg02/hpsvr01-views2
  23.    LV Status                   available/syncd           
  24.    LV Size (Mbytes)            5000            
  25.    Current LE                  625      
  26.    Allocated PE                625         
  27.    Used PV                     1      

  28.    LV Name                     /dev/vg02/hpsvr01-vobs
  29.    LV Status                   available/syncd           
  30.    LV Size (Mbytes)            97000           
  31.    Current LE                  12125     
  32.    Allocated PE                12125      
  33.    Used PV                     2      

  34.    LV Name                     /dev/vg02/hpsvr01-vobs2
  35.    LV Status                   available/syncd           
  36.    LV Size (Mbytes)            128000         
  37.    Current LE                  16000     
  38.    Allocated PE                16000      
  39.    Used PV                     2      

  40.    LV Name                     /dev/vg02/hpsvr01-vobs3
  41.    LV Status                   available/syncd           
  42.    LV Size (Mbytes)            25000           
  43.    Current LE                  3125      
  44.    Allocated PE                3125        
  45.    Used PV                     2      


  46.    --- Physical volumes ---
  47.    PV Name                     /dev/dsk/c6t0d1
  48.    PV Status                   unavailable              
  49.    Total PE                    25596   
  50.    Free PE                     0      
  51.    Autoswitch                  On        

  52.    PV Name                     /dev/dsk/c13t0d2
  53.    PV Status                   unavailable              
  54.    Total PE                    6398   
  55.    Free PE                     119     
  56.    Autoswitch                  On        


  57. #
复制代码
回复 5# lbseraph


   
作者: tangye    时间: 2013-05-09 10:08
本帖最后由 tangye 于 2013-05-09 10:11 编辑

  1.    --- Physical volumes ---
  2.    PV Name                     /dev/dsk/c6t0d1
  3.    PV Status                   unavailable              
  4.    Total PE                    25596   
  5.    Free PE                     0      
  6.    Autoswitch                  On        

  7.    PV Name                     /dev/dsk/c13t0d2
  8.    PV Status                   unavailable              
  9.    Total PE                    6398   
  10.    Free PE                     119     
  11.    Autoswitch                  On        

复制代码
两个PV为啥是unavailable?ioscan看到的都是claimed

  1. disk     17  0/12/0/0.1.0.0.0.0.1  sdisk    CLAIMED     DEVICE       HP      HSV300
  2.                                   /dev/dsk/c6t0d1   /dev/rdsk/c6t0d1
  3. disk     20  0/12/0/0.1.1.0.0.0.2  sdisk    CLAIMED     DEVICE       HP      HSV300
  4.                                   /dev/dsk/c13t0d2   /dev/rdsk/c13t0d2
复制代码

作者: lbseraph    时间: 2013-05-09 11:18
我也觉得奇怪,而且vg02对应的LV都是syncd的状态。你尝试一下dd读一下两个PV,看看有没有报错?
作者: tangye    时间: 2013-05-09 11:28
lbseraph 发表于 2013-05-09 11:18
我也觉得奇怪,而且vg02对应的LV都是syncd的状态。你尝试一下dd读一下两个PV,看看有没有报错?


如果存储上的lun给我的权限是read-only,会不会形成这样的情况?

当时恢复系统的时候,为了数据安全,可能在存储上做过配置
作者: lbseraph    时间: 2013-05-09 12:06
这种情况少见,没配过。那需要检查一下EVA上面了~




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2