Thread: LVM crash
View Single Post

  #6 (permalink)  
Old 02-19-2006
Jon Martin Solaas
 
Posts: n/a
Default Re: LVM crash

Jon Martin Solaas wrote:

>
> Didn't really find what I needed in the lvm-howto, but I guess the
> answer is out there. I've tried a bunch of goole-searchdes, thankyou,
> but not the exact one you've suggested. Maybe it's the magic one :-)


One of the more interesting things revealed by searching for "recover
linux LVM" was the suggestion to use lvimport:

--------------
http://groups.google.com/group/comp....a378b4765d6ce5



Try booting from CD-ROM and use vgimport with the -f flag to get
your LVM back:


vgimport -f -v data /dev/hda1 /dev/hda5 /dev/hda7


When booting from disk next time, save the configuration with
vgcfgbackup.
--------------

In my case it'd be

vgimport -f -v VolGroup00 /dev/sda2 /dev/sdb1

Does anyone know if this is likely to work? What does this command
actually do when run off the rescue cd? Where is actually the
configuration stored when I shutdown from the rescue disk and boots off
the harddisks again? Will the fact that the root filesystem is on the
VolGroup00 cause any problems?

--
jon martin solaas
Reply With Quote