Hi, I've recently encountered some problems with my LVM.
I had (and still have) a bad hd /dev/hda (used part. /dev/hda1)
I started: pvmove /dev/hda1 /dev/hdf1 yet the hd gave an error and I had to reboot.
I have a metadata backup made before I've started the move.
The volume group name is bigspace, yet the 'dir' /dev/bigspace/bigspace1 is also gone...
now I got pvscan -- reading all physical volumes (this may take a while...) pvscan -- inactive PV "/dev/hdg1" is in no VG [74.53 GB] pvscan -- inactive PV "/dev/hde1" is in no VG [149.05 GB] pvscan -- inactive PV "/dev/hdf1" is in no VG [149.05 GB] pvscan -- inactive PV "/dev/hdc1" is in no VG [111.79 GB] pvscan -- inactive PV "/dev/hdd1" is in no VG [74.53 GB] pvscan -- inactive PV "/dev/hda1" is in no VG [74.53 GB] pvscan -- inactive PV "/dev/hdb1" is in no VG [74.53 GB] pvscan -- total: 7 [708 GB] / in use: 0 [0] / in no VG: 7 [708 GB]
yet if I do the restore I get
I also did a pvcreate -ff /dev/hdx1 for every disk... I've read somewhere that should fix it. yet id did not.
pvscan -- inactive PV "/dev/hda1" is associated to unknown VG "bigspace" (run vgscan)
vgscan gives
vgscan -- reading all physical volumes (this may take a while...)
vgscan -- ERROR "vg_read_with_pv_and_lv(): current PV" can't get data of volume group "bigspace" from physical volume(s)
vgscan -- "/etc/lvmtab" and "/etc/lvmtab.d" successfully created
vgscan -- WARNING: This program does not do a VGDA backup of your volume group
there is a LOT of data on this array of disk (as you can imagine)
sometimes, hda is working good, so i hope it want to work long enough to restore the data.
My guess now is to make a new vg and add those disks... but I want to be sure, so I don't lose the data.
Any suggestions to recover the data or to replace the broken harddisk with a new one with as little data loss as possible.
Regards, Thomas.
_______________________________________________ linux-lvm mailing list linux-lvm@redhat.com https://www.redhat.com/mailman/listinfo/linux-lvm read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/