Hello,
i have a big problem with my VolumeGroup. After a servercrash i cant activate my volume group.
but first my configuration: i have 3x 750GB and 3x 1TB hard drives. both are in a raid5 array (/dev/md5, /dev/md6). over that i created my volgroup (named "vg1"). in that volgroup are 10 logical volumes with different sizes. all lv's are crypted with cryptsetup-luks.
after the crash i tried to restore the metadata with a backup file
Code:
pvcreate --uuid ... --restorefile /etc/backup/v1 /dev/md6
vgcfgrestore -f /etc/lvm/backup/vg1 vg1
the commands ends successful and i had activate the volume group but the big problem is that the structure moved. so in the first logical volume doesnt start with the luks magic key. i can see the structure of the lvm. but after a lot of blocks the luks header is available. the second unbeliveable is, that the last four lv's are correct.
after that i tried to use older backups from /etc/lvm/archives/ but the result are the same. the structure isnt correct.
so i hope some of you can help me to restore the original metadata of my volgroup. it is very important for me. thanks!