[linux-lvm] Lvm woes
theman at chaj.com
Tue Apr 23 23:58:02 UTC 2002
One of the drives in my volume group "world" has died. I'd like to restore
as much as possible, but am expecting to lose some data regardless since
the disk is PV#3 out of 7 in total. What I'm trying to do is use
vgcfgrestore (ver .9.1 beta) to at least build up a new PV in the
vgcfgrestore -n world -o /dev/sdd1 -n /dev/hdd1
This comes back with errors about the size being different -
vgcfgrestore -- size of physical volume "/dev/hdd1" differs from backup
This version doesn't have the -i (ignore size) ability. If I attempt the
same with the new 1.0.3 binary, it complains of the old
/etc/lvmconf/world.conf being incompatible -
vgcfgrestore -- INFO: using backup file "/etc/lvmconf/world.conf"
vgcfgrestore -- ERROR: different structure size stored in
"/etc/lvmconf/world.conf" than expected in file vg_cfgrestore.c [line 139]
vgcfgrestore -- ERROR "vg_cfgrestore(): read" restoring volume group
probably because the file was created using an old ver.
How do I go about creating the exact same size of the old PV? Vgcfgrestore
-n world -ll reports that it was 4.25gb. I tried creating different file
sizes in fdisk based on this, and then pvcreate, but no go. Can I recreate
the old restore file to be compatible with the new version?
Running kernel 2.2.18 patched up with 1.0.3.
Up a creek. Please assist!
If you could CC my personal mail as well, I'd be most appreciative.
More information about the linux-lvm