[linux-lvm] LVM ate my data!

wbh W.B.Hill at uea.ac.uk
Mon Feb 25 14:18:02 UTC 2002


Wahey - I got my data back, thankyou!

> pvcreate -yff /dev/hda[34]
> vgcfgrestore -n YourVGName /dev/hda3
> vgcfgrestore -n YourVGName /dev/hda4
> vgscan
> vgchange -ay

What I did, from .bash_history
rm -rf /etc/lvmtab /etc/lvmtab.d /dev/pvg # I had backed up already.
~/LVM/1.0.3/tools/vgscan
~/LVM/1.0.3/pvcreate -yff /dev/hda[34]
vgcfgrestore -n pvg /dev/hda3
vgcfgrestore -n pvg /dev/hda4
~/uuid_fixer/uuid_fixer /dev/hda3 /dev/hda4
~/LVM/1.0.3/tools/vgscan
~/LVM/1.0.3/tools/vgchange -ay
mount -treiserfs /dev/pvg/1 /mnt/dat

Don't know how much of that was needed...

I had been playing with snapshots recently, but they didn't seem to work
with my ancient (2.4.3) kernel. Could that have been the cause?

Thanks!
    Bill





More information about the linux-lvm mailing list