<div class="gmail_quote">On Fri, Nov 28, 2008 at 6:20 PM, Jaroslav Stava <span dir="ltr"><<a href="mailto:jstava@redhat.com">jstava@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi,<div class="Ih2E3d"><br>
<br>
Gary Desrochers wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
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?<br>
</blockquote></div>
Some info:<br>
man vgreduce (see --removemissing)<br>
man lvm (see --partial activation)</blockquote><div><br></div><div>I did try that after reading about it.  It removed both the one that was missing and the one that was not missing before.  The partition is still there and I can get it to be seen but now I have to somehow get back the logical volume as well.  It no longer show up.  Well, it got reduced I guess?</div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><br>
<br>
Btw. it's a good idea to state your lvm version.<div class="Ih2E3d"></div></blockquote><div>Sorry if I did not in my previous post.   Most of the lvm tools say:</div><div><div>  LVM version:     2.02.28 (2007-08-24)</div>
<div>  Library version: 1.02.22 (2007-08-21)</div><div>  Driver version:  4.12.0</div><div><br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="Ih2E3d">
<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
> So how do you fix up from a crashed primary mirror?<br>
</blockquote></div>
To make the VG consistent again you use "vgreduce --removemissing VG".<br>
That will remove any LVs that were (even partially) on any missing PV.<br>
When mirror legs are lost this way then mirror get downconverted.<br>
You may want to use it with --test first, to see what you would loose.</blockquote><div><br></div><div>I had used --test and it looked like the only loss was that LV.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>
(And you may try --mirrorsonly, it should fail when anything except mirror<br>
legs would be lost. Without guarantee, depends on version.)</blockquote><div><br></div><div>Oh, so what you explained above that must be why the LV is gone now?  So how do I go from the LV that is now gone to an LV with only that one partition?  I cannot even see the volume group anymore since that seems to be now, "reduced"? :-)</div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="Ih2E3d"><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
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.<br>
</blockquote></div>
Partial activation: "vgchange -ay -P". Doesn't make much sense<br>
if you only lost a mirror leg.<br>
<br>
<br>
Btw. when you need realtime response to your problem,<br>
there is an irc channel #lvm on freenode (ask question and wait).</blockquote><div> </div><div>No thank you, at the moment I don't need real time response.  Any response is a help.  I had posted twice before this from last Saturday and this is my only response.  I was not even sure I was getting through to the group since I did not get any of the messages I posted previously.</div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><br>
<br>
Regards,<br>
Jaroslav Stava<br>
<br>
_______________________________________________<br>
linux-lvm mailing list<br>
<a href="mailto:linux-lvm@redhat.com" target="_blank">linux-lvm@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/linux-lvm" target="_blank">https://www.redhat.com/mailman/listinfo/linux-lvm</a><br>
read the LVM HOW-TO at <a href="http://tldp.org/HOWTO/LVM-HOWTO/" target="_blank">http://tldp.org/HOWTO/LVM-HOWTO/</a></blockquote><div> </div></div>I do appreciate your response.  Any help you can give me I am grateful for.<div>
<div><br></div><div>Gary</div></div>