lvm ate my hamster

lvm ate my hamster

am 20.12.2005 09:06:53 von urgrue

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

Re: lvm ate my hamster

am 20.12.2005 15:31:01 von Tom Callahan

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