Thread: LVM crash
View Single Post

  #7 (permalink)  
Old 02-19-2006
frank
 
Posts: n/a
Default Re: LVM crash

On Sun, 19 Feb 2006 21:07:01 +0100, Jon Martin Solaas wrote:

> 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?


Good luck Jon, a knotty problem indeed. LVM is wonderful for its dynamic
configuration capability but definitely introduces an additional layer of
abstraction into your system.

Look in /etc/lvm for the configuration settings if you're able to access
that, and preserve/back them up before performing the
import function.

Keep us posted on your progress and hoped for success.

Frank

Reply With Quote