linux-admin.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* lvm ate my hamster
@ 2005-12-20  8:06 urgrue
  2005-12-20 14:31 ` Tom Callahan
  0 siblings, 1 reply; 2+ messages in thread
From: urgrue @ 2005-12-20  8:06 UTC (permalink / raw)
  To: linux-admin

I had a single hard drive, containing a single PV, a single VG, and a  
single LV (ext3) move from one computer to another. Im trying to  
reconstruct the LVM on the new computer with no luck. Currently I have  
the PV And VG, but no LV's are to be found. I'm assuming the metadata  
has somehow been corrupted.
Is there a way to re-create the LV without erasing the existing data on  
the disk? A utility to scan the disk and rebuild the metadata? Or, is  
there a way to "dismantle" the LVM and turn it into a normal ext2/3  
filesystem?


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: lvm ate my hamster
  2005-12-20  8:06 lvm ate my hamster urgrue
@ 2005-12-20 14:31 ` Tom Callahan
  0 siblings, 0 replies; 2+ messages in thread
From: Tom Callahan @ 2005-12-20 14:31 UTC (permalink / raw)
  To: urgrue; +Cc: linux-admin

If you used pvcreate to recreate the pv, and/or vgcreate to recreate the
vg when you moved the disk, you probably have effectively lost the
data.... Not sure about any recovery utilities... sorry

The correct way, would have been to add the disk to the new machine, and
then issue pvchange -ax y, then vgscan, then vgchange -a y

Thanks,

Tom Callahan
TESSCO Technologies
(443)-506-6216
callahant@tessco.com

A real engineer only resorts to documentation when the keyboard dents on the forehead get too noticeable.



urgrue wrote:

> I had a single hard drive, containing a single PV, a single VG, and a 
> single LV (ext3) move from one computer to another. Im trying to 
> reconstruct the LVM on the new computer with no luck. Currently I
> have  the PV And VG, but no LV's are to be found. I'm assuming the
> metadata  has somehow been corrupted.
> Is there a way to re-create the LV without erasing the existing data
> on  the disk? A utility to scan the disk and rebuild the metadata? Or,
> is  there a way to "dismantle" the LVM and turn it into a normal
> ext2/3  filesystem?
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-admin" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-12-20 14:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-12-20  8:06 lvm ate my hamster urgrue
2005-12-20 14:31 ` Tom Callahan

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).