[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [linux-lvm] Help with restoring missing VG



On Sat, 2003-05-10 at 01:35, B. J. Zolp wrote:

> I had a hunch that the most recent drive I added to the volume group was 
> dying, so I ran  vgreduce vg0 /dev/hdf to remove that disk and hopeed to  

i never ran this command

but

i just had a drive crash on me
my drive was completely gone, clicking and unrecognizable by the bios.
now that i have it out, i see it is still under warranty.
western digital 7200rpm 40GB

i know just enough about lvm to get it going and that is all.


what saved me was a backup of the vgcfg
it was stored in /etc/lvmconf/<name_of_my_vg>.conf
i have read that if i didnt have that file, i could
upgrade to lvm2 and use some of its tools to recover.

basically what i did:

remove the bad drive from the computer.
replace it with a good drive of the same capacity.
run pvcreate on the new drive
use the vgcfgrestore command to restore the backup config data
	to the new, empty drive.
vgscan;vgchange -a y to activate the vg
then i mounted and retrieved the data that i could

what i never did was run vgreduce like you did,
so i am sure your situation is different.

i got some help/hope from people on this list,
and more info from the mailing list.
but studying the man pages helped me the most

i have lvm 1.0.3 and one thing that didnt work for me was
vgcfgrestore with the -o option.
you only need the -o if you disk have been rearranged from
when the backup was taken.  i had to move the ide cables
on my system to match the backup config

i got everything back i *really* needed except
my daughters first birthday pictures :(

good luck
randy




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]