Chinaunix首页 | 论坛 | 博客
  • 博客访问: 267421
  • 博文数量: 107
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 74
  • 用 户 组: 普通用户
  • 注册时间: 2016-11-18 09:57
文章分类

全部博文(107)

文章存档

2023年(2)

2021年(1)

2017年(1)

2015年(4)

2014年(9)

2013年(4)

2012年(14)

2011年(49)

2010年(23)

分类: 系统运维

2012-01-31 12:07:09

用lvreduce命令移除vg00镜像盘时报错:
#lvreduce -m 0 /dev/vg00/lvol1
Physical extents on remaining physical volumes are stale or
Remaining physical volumes are not responding.
lvreduce: The LVM device driver failed to reduce mirrors on
the logical volume "/dev/vg00/lvol1".
 
解决办法:
nm_rdb01#[/]lvdisplay -v /dev/vg00/lvol1
--- Logical volumes ---
LV Name                     /dev/vg00/lvol1
VG Name                     /dev/vg00
LV Permission               read/write  
LV Status                   available/stale          
Mirror copies               1           
Consistency Recovery        MWC                
Schedule                    parallel    
LV Size (Mbytes)            320            
Current LE                  10       
Allocated PE                20         
Stripes                     0      
Stripe Size (Kbytes)        0                  
Bad block                   off         
Allocation                  strict/contiguous        
IO Timeout (Seconds)        default            
   --- Distribution of logical volume ---
   PV Name            LE on PV  PE on PV 
   /dev/dsk/c2t1d0    10        10       
   --- Logical extents ---
   LE    PV1                PE1   Status 1 PV2                PE2   Status 2
   00000 ???                00000 stale    /dev/dsk/c2t1d0    00000 current 
   00001 ???                00001 stale    /dev/dsk/c2t1d0    00001 current 
   00002 ???                00002 stale    /dev/dsk/c2t1d0    00002 current 
   00003 ???                00003 stale    /dev/dsk/c2t1d0    00003 current 
   00004 ???                00004 stale    /dev/dsk/c2t1d0    00004 current 
   00005 ???                00005 stale    /dev/dsk/c2t1d0    00005 current 
   00006 ???                00006 stale    /dev/dsk/c2t1d0    00006 current 
   00007 ???                00007 stale    /dev/dsk/c2t1d0    00007 current 
   00008 ???                00008 stale    /dev/dsk/c2t1d0    00008 current 
   00009 ???                00009 stale    /dev/dsk/c2t1d0    00009 current 
 
 如果PV1 状态为stale, 移除镜像时需要执行:
 
nm_rdb01#[/]lvreduce -m 0 -k /dev/vg00/lvol1 0
Logical volume "/dev/vg00/lvol3" has been successfully reduced.
vgcfgbackup: /etc/lvmtab is out of date with the running kernel:Kernel indicates 3 disks for "/dev/vg00"; /etc/lvmtab has 2 disks.
Cannot proceed with backup.
 
因为"-k" 参数指定出现故障的是0号盘,默认情况下,lvreduce -m 0 /dev/vg00/lvol1移除的镜像逻辑卷位于1号盘。 
 
 
 
 
阅读(2500) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~