Skip to contentSkip to conversation

lvm ate my hamster

DISCUSSION urgrue 2 participants 2 messages Dec 20, 2005

lore
Share & tools
lore

urgrue

author
#0 lore raw

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?

#1 lore raw

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
[email protected]

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

Quoted 15 lines · 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 [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html