-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Rich Rauenzahn wrote: > Since I heavily use lvol, I instead store a vgdisplay -v along with bdf > and mount output.
On the weekend I had a client with a hardware RAID array which was configured with LVM with a single PV (4TB) and lots of logical volumes (LV's). At some point, it crashed due to scribbling random FS data over the first few blocks of the array. I was eventually able to recover everything with a bit of dd (copy first few blocks to a file) and vi (delete everything except a single copy of the lvm.conf data) and pvcreate (restore the pv info) and vgcfgrestore (restore the rest of the LV's). However, what I wanted to point out to everyone, is the usefulness of keeping a copy of your LVM information. This can be saved with vgcfgbackup. Also, it is possible to have two copies of your LVM info on disk, one at the beginning and one at the end. This (IMHO) would drastically increase your chances of recovering data, since you probably wouldn't corrupt both beginning and end of your disk. See man pvcreate for the --metadatacopies which defaults to 1 (only at the beginning). While I managed a successful restore, it still concerns me that LVM seems a lot more complicated to recover from than a disk with partitions and simple filesystems. Regards, Adam -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAklG50cACgkQGyoxogrTyiVllwCcCnv8VIH1JLErkNnNSigZh6Qo B1oAn2vBzeNxEQ/VeNQYsz8OyXspqfa+ =TwiP -----END PGP SIGNATURE----- ------------------------------------------------------------------------------ SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada. The future of the web can't happen without you. Join us at MIX09 to help pave the way to the Next Web now. Learn more and register at http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/ _______________________________________________ BackupPC-users mailing list [email protected] List: https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki: http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/
