[linux-lvm] LVM issues after replacing linux mdadm RAID5 drive

Stuart Gathman stuart at gathman.org
Fri May 2 04:02:25 UTC 2014


Long ago, Nostradamus foresaw that on 04/26/2014 02:47 PM, L.M.J would
write:
>
> I presume I still have data on my broken RAID5.
>
> I did a pvcreate --restorefile and vgcfgrestore.
Did you restore the raid 5, taking out the new drive, and add00ing it
back in properly?  I can't take the time right now to give you a step by
step.  The big warning on what you did wasn't a joke.  You should get
help from md driver people.  You do not have an LVM problem.

> I can see now my 2 LVM, but my EXT4 filesystem are empty, df reports
some realist disk usage, fsck (Read only) find ? tons of errors. Is
there a way to recover my data on the EXT4 FS ? Le Fri, 18 Apr 2014
23:14:17 +0200, "L.M.J"

None of that is relevant until you restore your raid 5.  Your problem
was that you told md that your new blank drive was good, in-sync data. 
Which is obviously isn't.  You need to degrade your raid back to the one
missing drive.  Then add the new drive normally - NOT using that experts
only shortcut with the big warning, which you used incorrectly.




More information about the linux-lvm mailing list