[linux-lvm] Restore LVM after drive error
james.schatzman at futurelabusa.com
Sat Jul 7 19:12:16 UTC 2007
Re: Using dd to image a failing hard drive. Ryan Nelson in an earlier posting explained how to get your VG back online:
"vgcfgbackup, edit the backup, edit the ids in the logical_volumes
sections, check your work carefully, and vgcfgrestore?"
This will allow you to substitute the new id for the old and LVM should then be good to go. Presumably, you will have lost some data, so I would recommend mounting the FS readonly and copying files elsewhere. If you don't care what may happen, you could mount RW, run fsck and repair the filesystem.
More information about the linux-lvm