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

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



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 cs selu edu>
> To: <linux-lvm 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 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 redhat com
> https://www.redhat.com/mailman/listinfo/linux-lvm
> read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
>

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