免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2431 | 回复: 4
打印 上一主题 下一主题

[求助] LVM mirror奇怪问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2012-07-27 16:43 |只看该作者 |倒序浏览
本帖最后由 lbseraph 于 2012-07-28 06:53 编辑

lvdisplay -v /dev/vg01/master|more
lvdisplay: Warning: couldn't query physical volume "/dev/dsk/c4t5d0":
The specified path does not correspond to physical volume attached to
this volume group
lvdisplay: Warning: couldn't query all of the physical volumes.
--- Logical volumes ---
LV Name                     /dev/vg01/master
VG Name                     /dev/vg01
LV Permission               read/write   
LV Status                   available/stale           
Mirror copies               1            
Consistency Recovery        MWC                 
Schedule                    parallel     
LV Size (Mbytes)            200            
Current LE                  50        
Allocated PE                100         
Stripes                     0      
Stripe Size (Kbytes)        0                  
Bad block                   on           
Allocation                  strict                    
IO Timeout (Seconds)        default            

   --- Distribution of logical volume ---
   PV Name            LE on PV  PE on PV  
   /dev/dsk/c4t0d0    50        50        

   --- Logical extents ---
   LE    PV1                PE1   Status 1 PV2                PE2   Status 2
   00000 /dev/dsk/c4t0d0    00000 current  ???                00000 stale   
   00001 /dev/dsk/c4t0d0    00001 current  ???                00001 stale   
   00002 /dev/dsk/c4t0d0    00002 current  ???                00002 stale   
   00003 /dev/dsk/c4t0d0    00003 current  ???                00003 stale   
   00004 /dev/dsk/c4t0d0    00004 current  ???                00004 stale   
   00005 /dev/dsk/c4t0d0    00005 current  ???                00005 stale   
   00006 /dev/dsk/c4t0d0    00006 current  ???                00006 stale   
   00007 /dev/dsk/c4t0d0    00007 current  ???                00007 stale   
   00008 /dev/dsk/c4t0d0    00008 current  ???                00008 stale   
   00009 /dev/dsk/c4t0d0    00009 current  ???                00009 stale   
   00010 /dev/dsk/c4t0d0    00010 current  ???                00010 stale   
   00011 /dev/dsk/c4t0d0    00011 current  ???                00011 stale   
   00012 /dev/dsk/c4t0d0    00012 current  ???                00012 stale   
   00013 /dev/dsk/c4t0d0    00013 current  ???                00013 stale   
   00014 /dev/dsk/c4t0d0    00014 current  ???                00014 stale   
   00015 /dev/dsk/c4t0d0    00015 current  ???                00015 stale   
   00016 /dev/dsk/c4t0d0    00016 current  ???                00016 stale   
   00017 /dev/dsk/c4t0d0    00017 current  ???                00017 stale   
#[/]lvdisplay -v /dev/vg01/tscits|more
lvdisplay: Warning: couldn't query physical volume "/dev/dsk/c4t5d0":
The specified path does not correspond to physical volume attached to
this volume group
lvdisplay: Warning: couldn't query all of the physical volumes.
--- Logical volumes ---
LV Name                     /dev/vg01/tscits
VG Name                     /dev/vg01
LV Permission               read/write   
LV Status                   available/stale           
Mirror copies               1            
Consistency Recovery        MWC                 
Schedule                    parallel     
LV Size (Mbytes)            10000           
Current LE                  2500      
Allocated PE                5000        
Stripes                     0      
Stripe Size (Kbytes)        0                  
Bad block                   on           
Allocation                  strict                    
IO Timeout (Seconds)        default            


   --- Logical extents ---
   LE    PV1                PE1   Status 1 PV2                PE2   Status 2
   00000 ???                00000 stale    ???                00000 current  
   00001 ???                00001 stale    ???                00001 current  
   00002 ???                00002 stale    ???                00002 current  
   00003 ???                00003 stale    ???                00003 current  
   00004 ???                00004 stale    ???                00004 current  
   00005 ???                00005 stale    ???                00005 current  
   00006 ???                00006 stale    ???                00006 current  
   00007 ???                00007 stale    ???                00007 current  
   00008 ???                00008 stale    ???                00008 current  
   00009 ???                00009 stale    ???                00009 current  
   00010 ???                00010 stale    ???                00010 current  
   00011 ???                00011 stale    ???                00011 current  
   00012 ???                00012 stale    ???                00012 current  
   00013 ???                00013 stale    ???                00013 current  
   00014 ???                00014 stale    ???                00014 current  
   00015 ???                00015 stale    ???                00015 current  
   00016 ???                00016 stale    ???                00016 current  
   00017 ???                00017 stale    ???                00017 current  
   00018 ???                00018 stale    ???                00018 current  
   00019 ???                00019 stale    ???                00019 current  
   00020 ???                00020 stale    ???                00020 current  
Standard input
#[/]vgdisplay -v vg01|more
vgdisplay: Warning: couldn't query physical volume "/dev/dsk/c4t5d0":
The specified path does not correspond to physical volume attached to
this volume group
vgdisplay: Warning: couldn't query all of the physical volumes.
vgdisplay: Warning: couldn't query physical volume "/dev/dsk/c4t5d0":
The specified path does not correspond to physical volume attached to
this volume group
vgdisplay: Warning: couldn't query all of the physical volumes.
vgdisplay: Warning: couldn't query physical volume "/dev/dsk/c4t5d0":
The specified path does not correspond to physical volume attached to
this volume group
vgdisplay: Warning: couldn't query all of the physical volumes.
vgdisplay: Warning: couldn't query physical volume "/dev/dsk/c4t5d0":
The specified path does not correspond to physical volume attached to
this volume group
vgdisplay: Warning: couldn't query all of the physical volumes.
vgdisplay: Warning: couldn't query physical volume "/dev/dsk/c4t5d0":
The specified path does not correspond to physical volume attached to
this volume group
vgdisplay: Warning: couldn't query all of the physical volumes.
vgdisplay: Warning: couldn't query physical volume "/dev/dsk/c4t5d0":
The specified path does not correspond to physical volume attached to
this volume group
vgdisplay: Warning: couldn't query all of the physical volumes.
vgdisplay: Warning: couldn't query physical volume "/dev/dsk/c4t5d0":
The specified path does not correspond to physical volume attached to
this volume group
vgdisplay: Warning: couldn't query all of the physical volumes.
vgdisplay: Warning: couldn't query physical volume "/dev/dsk/c4t5d0":
The specified path does not correspond to physical volume attached to
this volume group
vgdisplay: Warning: couldn't query all of the physical volumes.
vgdisplay: Warning: couldn't query physical volume "/dev/dsk/c4t5d0":
The specified path does not correspond to physical volume attached to
this volume group
vgdisplay: Warning: couldn't query all of the physical volumes.
vgdisplay: Warning: couldn't query physical volume "/dev/dsk/c4t5d0":
The specified path does not correspond to physical volume attached to
this volume group
vgdisplay: Warning: couldn't query all of the physical volumes.
vgdisplay: Warning: couldn't query physical volume "/dev/dsk/c4t5d0":
The specified path does not correspond to physical volume attached to
this volume group
vgdisplay: Warning: couldn't query all of the physical volumes.
vgdisplay: Warning: couldn't query physical volume "/dev/dsk/c4t5d0":
The specified path does not correspond to physical volume attached to
this volume group
vgdisplay: Warning: couldn't query all of the physical volumes.
vgdisplay: Warning: couldn't query physical volume "/dev/dsk/c4t5d0":
The specified path does not correspond to physical volume attached to
this volume group
vgdisplay: Warning: couldn't query all of the physical volumes.
--- Volume groups ---
VG Name                     /dev/vg01
VG Write Access             read/write     
VG Status                   available, exclusive      
Max LV                      255   
Cur LV                      11     
Open LV                     11     
Max PV                      16     
Cur PV                      4      
Act PV                      1      
Max PE per PV               4341         
VGDA                        2   
PE Size (Mbytes)            4               
Total PE                    4340   
Alloc PE                    3600   
Free PE                     740     
Total PVG                   0        
Total Spare PVs             0              
Total Spare PVs in use      0                     

   --- Logical volumes ---
   LV Name                     /dev/vg01/master
   LV Status                   available/stale           
   LV Size (Mbytes)            200            
   Current LE                  50        
   Allocated PE                100         
   Used PV                     1      

   LV Name                     /dev/vg01/sybsysproc
   LV Status                   available/stale           
   LV Size (Mbytes)            200            
   Current LE                  50        
   Allocated PE                100         
   Used PV                     1      

   LV Name                     /dev/vg01/ylcits
   LV Status                   available/stale           
   LV Size (Mbytes)            10000           
   Current LE                  2500      
   Allocated PE                5000        
   Used PV                     1      

   LV Name                     /dev/vg01/ylcitslog
   LV Status                   available/stale           
   LV Size (Mbytes)            3000            
   Current LE                  750      
   Allocated PE                1500        
   Used PV                     1      

   LV Name                     /dev/vg01/tscits
   LV Status                   available/stale           
   LV Size (Mbytes)            10000           
   Current LE                  2500      
   Allocated PE                5000        
   Used PV                     0      

   LV Name                     /dev/vg01/tslog
   LV Status                   available/stale           
   LV Size (Mbytes)            3000            
   Current LE                  750      
   Allocated PE                1500        
   Used PV                     0      

   LV Name                     /dev/vg01/tempdev
   LV Status                   available/stale           
   LV Size (Mbytes)            1000            
   Current LE                  250      
   Allocated PE                500         
   Used PV                     1      

   LV Name                     /dev/vg01/pasxy
   LV Status                   available/stale           
   LV Size (Mbytes)            2000            
   Current LE                  500      
   Allocated PE                1000        
   Used PV                     0      

   LV Name                     /dev/vg01/pasxylog
   LV Status                   available/stale           
   LV Size (Mbytes)            500            
   Current LE                  125      
   Allocated PE                250         
   Used PV                     0      

   LV Name                     /dev/vg01/ts_pas
   LV Status                   available/stale           
   LV Size (Mbytes)            1000            
   Current LE                  250      
   Allocated PE                500         
   Used PV                     0      

   LV Name                     /dev/vg01/ts_paslog
   LV Status                   available/stale           
   LV Size (Mbytes)            500            
   Current LE                  125      
   Allocated PE                250         
   Used PV                     0      


   --- Physical volumes ---
   PV Name                     /dev/dsk/c4t0d0
   PV Status                   available               
   Total PE                    4340   
   Free PE                     740     
   Autoswitch                  On        

现在确定这个是/dev/dsk/c4t5d0
盘有问题?但是看到在vg01 里面的信息怎么狠奇怪。显示pv数目是0
lv看到 话状态一会pv1 正常的 有的lv是pv2正常  很奇怪

论坛徽章:
48
15-16赛季CBA联赛之青岛
日期:2021-01-07 13:41:2315-16赛季CBA联赛之上海
日期:2020-12-01 18:02:0720周年集字徽章-20	
日期:2020-10-28 14:14:2620周年集字徽章-20	
日期:2020-10-28 14:04:3015-16赛季CBA联赛之天津
日期:2020-10-18 22:51:412016猴年福章徽章
日期:2016-02-18 15:30:3415-16赛季CBA联赛之北控
日期:2015-12-22 13:30:48操作系统版块每日发帖之星
日期:2015-12-07 06:20:00操作系统版块每日发帖之星
日期:2015-09-04 06:20:002015亚冠之德黑兰石油
日期:2015-08-05 18:46:082015年亚洲杯之巴勒斯坦
日期:2015-04-19 10:42:502015年亚洲杯之巴林
日期:2015-04-09 08:03:23
2 [报告]
发表于 2012-07-27 18:57 |只看该作者
先备份数据,然后dd读一下两个硬盘,哪一个报I/O error就要换哪一个。两个都报的话先换c4t5d0吧,最后有数据问题的话从备份导回来。

论坛徽章:
0
3 [报告]
发表于 2012-07-27 22:10 |只看该作者
没办法备份数据 ,备份vg01的数据就报io错误???
a#[/]strings /etc/lvmtab
/dev/vg00
8]FNB
/dev/dsk/c1t2d0
/dev/dsk/c2t2d0
/dev/vg01
8]F=
/dev/dsk/c4t0d0
/dev/dsk/c4t5d0
/dev/vg02
8]F=
/dev/dsk/c4t8d0
/dev/dsk/c4t9d0
a#[/]dd if=/dev/dsk/c4t0d0 of=/dev/null bs=1024k count=500
500+0 records in
500+0 records out
a#[/]dd if=/dev/dsk/c4t5d0 of=/dev/null bs=1024k count=500
/dev/dsk/c4t5d0: Device busy
dd: cannot open /dev/dsk/c4t5d0
a#[/]  
哪是先换这个/dev/dsk/c4t5d0盘?哪这个盘要不要剥离镜像,看着好像是坐镜像哪?但是看lv的状态有不正常

论坛徽章:
48
15-16赛季CBA联赛之青岛
日期:2021-01-07 13:41:2315-16赛季CBA联赛之上海
日期:2020-12-01 18:02:0720周年集字徽章-20	
日期:2020-10-28 14:14:2620周年集字徽章-20	
日期:2020-10-28 14:04:3015-16赛季CBA联赛之天津
日期:2020-10-18 22:51:412016猴年福章徽章
日期:2016-02-18 15:30:3415-16赛季CBA联赛之北控
日期:2015-12-22 13:30:48操作系统版块每日发帖之星
日期:2015-12-07 06:20:00操作系统版块每日发帖之星
日期:2015-09-04 06:20:002015亚冠之德黑兰石油
日期:2015-08-05 18:46:082015年亚洲杯之巴勒斯坦
日期:2015-04-19 10:42:502015年亚洲杯之巴林
日期:2015-04-09 08:03:23
4 [报告]
发表于 2012-07-28 06:52 |只看该作者
dd c4t0d0全盘确保硬件没问题先,不是500MB,c4t5d0有问题了。如果确认c4t0d0硬件没问题,最好确保它的PE是current的先(lvsync那些是stale的PE,比如/dev/vg01/tscits),然后就按照换鬼盘的方法来换c4t5d0,是要剥离镜像先。没有备份的话有数据丢失风险。

论坛徽章:
0
5 [报告]
发表于 2012-07-31 10:36 |只看该作者
mirror做完后 vgdisplay 能看到2块盘在一个vg下,根据你提供的信息,只有一块盘,而/dev/dsk/c4t5d0已经无法读取了,如果有备件 建议先换一下盘,重做一下镜像
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP