linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
* [linux-lvm] Recovering Failed LVM Raid-5 Array
@ 2019-07-25  1:32 Max Ehrlich
  0 siblings, 0 replies; only message in thread
From: Max Ehrlich @ 2019-07-25  1:32 UTC (permalink / raw)
  To: linux-lvm

I originally posted this over at superuser but I thought maybe I would
find more LVM experts here that might know the answer.

I have a failed raid-5 array that I can't seem to recover. Basically
the story is I had this data in raid 5 and I was using LVM which has
built-in raid now. I noticed one of the disks going bad so I got a new
one and issued pvmove to move the extents from the failing disk to the
new disk. Some time during the migration, the old disk failed and
completely stopped responding (not sure why it would cause that). So I
rebooted it and now the array doesn't come up at all. Everything looks
well enough, e.g. 3/4 disks are working, and I'm pretty sure even the
failed one is back up temporarily (don't trust it though). But when I
issue lvchange -a y vg-array/array-data I get a failure with the
following in dmesg

not clean -- starting background reconstruction
device dm-12 operational as raid disk 1
device dm-14 operational as raid disk 2
device dm-16 operational as raid disk 3
cannot start dirty degraded array.

I'm pretty sure there are ways to force the start using mdadm but I
havent seen anything for lvm. But since I have three disks, all my
data is there so it must be recoverable. Does anyone know how to do
it? To summarize, it's a 4 disk raid 5 array, 3/4 disks are working,
but I still am not able to start the logical volume even in degraded
mode to copy the data off of it

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2019-07-25  1:32 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-07-25  1:32 [linux-lvm] Recovering Failed LVM Raid-5 Array Max Ehrlich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).