[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[linux-lvm] Fixing corrupted LVM PV headers?

[please CC me all replies, I'm not on this list]


I've been using LVM on my home system for quite some time now, and I 
have just recently install Windows XP, which totally stuffed up my 
partitioning for some reason. Anyway, in the process of fixing the 
stuff up I've managed to corrupt the first 3 sectors or so (at least, I 
hope it's only 3 sectors) of one of the physical volumes that make up 
my main volume group. So I've effectively lost my entire Linux system.

I'd rather not have to reinstall from scratch, as there was quite a bit 
of stuff on some of the filesystems that would take me some time to 
replace, so I'm wondering if there is any way of resurrecting the PV. 
I've got the UUID of the PV (from running pvdisplay on the other PV's 
in the group and working out which one was missing) ... If it's not 
possible to recover the filesystem(s) that were on that particular PV, 
would it be at all possible to recover filesystems that are entirely on 
the other PV's?

My setup is the following:

hda6:	8Gb PV (This is the stuffed one)
hda7:   8Gb PV
hda8:   8Gb PV
hdb6:   8Gb PV
hdc:     3Gb PV

There were 5 different LV's on the VG, all with XFS filesystems except 
for a swap volume.

/usr		~4Gb LV
/home		~2Gb LV
/var:		~1.3Gb LV
/var/share	~7Gb LV
/var/chroot	~1Gb LV

If anyone has any suggestions on possibilites for fixing this, please 
let me know ...



Timshel Knoll <timshel pobox com> / <timshel debian org>
Debian GNU/Linux developer, see www.debian.org

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]