I have an LVM logical volume spread over eight separate physical volumes on Amazon AWS. The logical volume is formatted using ext3.
One of my physical volumes has failed. Is there any way to recover some or all of the data from the remaining volumes?
Thanks!
I was able to more-or-less recover the remaining data by doing the following:
vgscan
to determine the UUID of the missing (failed) physical volume.pvcreate --uuid [uuid of failed volume]
to add the new physical volume and to give it the same uuid and device descriptor as the failed one.vgcfgrestore [the volume group name]
to restore the volume group descriptor (may or may not be needed.)vgchange -ay [the volume group name]
to activate the volume group.e2fsck -y [the logical volume]
to fix any errors; there will be a lot of them.mount [the logical volume] [desired mount point]
and voilà! I found my remaining data!