Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 05-09-2010, 11:15 AM   #1
LQ Newbie
Registered: May 2010
Posts: 1

Rep: Reputation: 0
LVM2 Restore failed

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

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!


cryptsetup, dmraid, linux, luks, lvm

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
sys-fs/lvm2-2.02.51-r1 install failed. tonye Gentoo 5 11-29-2009 07:20 PM
what is the procedure to replace a failed drive on Redhat running LVM2 balajmohan Linux - Server 5 11-20-2009 10:07 AM
Mounting LUKS encrypted drive from a failed pc: LVM2 error klearview Linux - Software 1 10-31-2008 04:34 AM
failed to restore FC5 mystic_durle12 Linux - Desktop 8 03-06-2008 06:57 AM
Howto restore lvm2 after OS reinstall? HeLL Linux - Software 1 09-04-2004 10:34 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:30 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration