[linux-lvm] Lost Disk, any way to recover data?

Jason P Holland jholland at cs.selu.edu
Fri Apr 2 18:19:28 UTC 2004


Thanks a lot!  I'll give this a try and see what happens!

Jason

On Fri, 2 Apr 2004, Perplexer wrote:

> Hi. I think I had a similar problem myself a few days ago.
> Unfortunately there seemed to be noone willing to help me
> out so I tried various stuff myself. I'll try to help you with
> what worked for me.
>
> I couldn't mount my LV with one drive missing from the VG
> and I think there are two ways to solve this. One is to put in
> an idential drive to the one you lost, use pvcreate on it and
> restore the VGDA to it using vgcfgrestore. I myself didn't
> have a spare drive but I had a small unused partition on some
> other drive which I used instead. I used pvcreate on that
> partition and then used vgcfgrestore with the -i option which
> ignored the size mismatch between my partition and the previous
> drive that was in.
>
> I used:
>
> vgcfgrestore - vg1 -i -o /dev/hdc1 -v /dev/hdd1
>
> where hdc(1) was the old drive that died and hdd1
> was the 'fake' partition. After that I ran vgscan and
> activated the VG. That allowed me to mount the LV and
> backup the data off it. I later had to recreate the VG and
> LV but at least I saved the remaining data.
>
> I won't say that's the only or the best way to do it but
> that's all I've been able to figure out myself which worked
> and I guess it's the best suggestion you'll get around here.
>
> Good luck.
>
> ---------
> Perplexer
>
> ----- Original Message -----
> From: "Jason P Holland" <jholland at cs.selu.edu>
> To: <linux-lvm at redhat.com>
> Sent: Friday, April 02, 2004 7:43 PM
> Subject: [linux-lvm] Lost Disk, any way to recover data?
>
>
> >
> > Hello all,
> >
> > I just lost a disk in my lvm set, and was wondering if there is a way to
> > recover the data from the first disk.  I don't believe anything had been
> > written to an LE's on the second disk. Is there a way to mount the first
> > one and see if my data is still there?  Or is this a lost cause and I
> > should forget about it?  Thanks
> >
> > Jason
> > _______________________________________________
> > linux-lvm mailing list
> > linux-lvm at redhat.com
> > https://www.redhat.com/mailman/listinfo/linux-lvm
> > read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
> >
> _______________________________________________
> linux-lvm mailing list
> linux-lvm at redhat.com
> https://www.redhat.com/mailman/listinfo/linux-lvm
> read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
>



More information about the linux-lvm mailing list