[linux-lvm] vg disappeared after replacing disc in raid10

Stuart D Gathman stuart at bmsi.com
Wed Mar 27 04:29:22 UTC 2013

On Mar 26, Stuart D Gathman transmitted in part:

> Why has the offset shifted?  Possibilities:
> 1) different md driver version on knoppix (although using an older
> version would move the md superblock from end of drive to beginning of
> drive - shifting the opposite way).  Or different options.  BUT mdadm
> seemed to recognize your RAID, so let's
> discount this theory.
> 2) alignment options to pvcreate - but it still should have been seen by
> lvs!
> 3) the offset hasn't shifted, but you've written over the first few
> sectors with the empty VG.  Is the 2nd human readable part, by any
> chance, missing the first part?  You could post both parts for us to
> look at.

4) the shape of the md array changed.  Say, you somehow didn't 
actually remove the failed drive before adding the replacement.  What
does md raid10 do if you add a 4th disk to a 3 drive array?  Add
it as a spare?  Reshape, shuffling all your data?

More information about the linux-lvm mailing list