[linux-lvm] Replacing failed disk in raid volume without hot spare

Tomas Vanderka tomas_vanderka at tempest.sk
Thu Jul 19 18:38:25 UTC 2012


>> 
>> Tried all of theese, nothing seems to work
>> 
>> [root lvm ~]# lvconvert --repair test/raid6
>>  Couldn't find device with uuid jnGEwl-EVqs-yQ0M-rUxa-gLqD-fHNU-AJUKjl.
>> Attempt to replace failed RAID images (requires full device resync)? [y/n]: y
>>  Insufficient suitable allocatable extents for logical volume : 87 more required
>>  Failed to allocate replacement images for test/raid6
>>  Failed to replace faulty devices in test/raid6.
> 
> could you perhaps attach the verbose output from this command?
> e.g.> echo  y | lvconvert --repair test/raid6 -vvvv >& output.txt
> 
>  brassow
> 

That one obviously failed because there is no usable device available in the VG (1 failed/missing, 4 allready in raid6, 0 available)

The problem is I can't extend my VG with the new disk (because VG is missing devices) and I also can not "vgchange --removemissing" because that destroys my raid6 volume.

I only managed to add the new disk to VG by doing

pvcreate --uuid jnGEwl-EVqs-yQ0M-rUxa-gLqD-fHNU-AJUKjl new-disk

but later device mapper got confused with errors like these

device-mapper: raid: New device injected into existing array without 'rebuild' parameter specified
device-mapper: table: 253:12: raid: Unable to assemble array: Invalid superblocks
device-mapper: ioctl: error adding target to table


I played with it a little more and it works like this

vgextend
 = does not work with missing devices, so can not add a new disk

vgchange --removemissing
 = destroys partial raid volumes, I tried this so I could do vgextend later

pvcreate --uuid
 = confuses device-mapper

lvconvert --repair
 = only works if I have usable disk in VG that is not part of a partial raid volume, fails otherwise
 = it also does nothing if I unplug a disk, do some writes to raid while it's offline, then plug it in. I guess it should do a resync, but nothing happens, and raid still
runs in partial mode, devmapper knows that disk is failed thou (-vvvv output attached)

lvconvert --replace
 = only works if I have usable disk in VG that is not part of a partial raid volume, fails otherwise
 = this can be used to force resync of a partial volume by replacing temporarily missing disk

v.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: output.txt
URL: <http://listman.redhat.com/archives/linux-lvm/attachments/20120719/ab5eb662/attachment.txt>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: dmsetup-status.txt
URL: <http://listman.redhat.com/archives/linux-lvm/attachments/20120719/ab5eb662/attachment-0001.txt>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 261 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/linux-lvm/attachments/20120719/ab5eb662/attachment.sig>


More information about the linux-lvm mailing list