[linux-lvm] Let's try again with the lvm mirror failure.

Jaroslav Stava jstava at redhat.com
Fri Nov 28 23:20:52 UTC 2008


Gary Desrochers wrote:
> I will try one more time. Can someone please tell me if it is possible 
> to recover a mirrored drive?  If not then why are so many people using 
> mirrors out there?
Some info:
man vgreduce (see --removemissing)
man lvm (see --partial activation)

Btw. it's a good idea to state your lvm version.

> > So how do you fix up from a crashed primary mirror?
To make the VG consistent again you use "vgreduce --removemissing VG".
That will remove any LVs that were (even partially) on any missing PV.
When mirror legs are lost this way then mirror get downconverted.
You may want to use it with --test first, to see what you would loose.
(And you may try --mirrorsonly, it should fail when anything except mirror
legs would be lost. Without guarantee, depends on version.)

> As a second question, I know the extents and such.  Is there a way to 
> copy off the data into a non-lvm partition?  At this point I will even 
> take that.  I just want to get to the data.
Partial activation: "vgchange -ay -P". Doesn't make much sense
if you only lost a mirror leg.

Btw. when you need realtime response to your problem,
there is an irc channel #lvm on freenode (ask question and wait).

Jaroslav Stava

More information about the linux-lvm mailing list