* [linux-lvm] Lost Disk, any way to recover data?
@ 2004-04-02 17:43 Jason P Holland
2004-04-02 18:16 ` Perplexer
0 siblings, 1 reply; 3+ messages in thread
From: Jason P Holland @ 2004-04-02 17:43 UTC (permalink / raw)
To: linux-lvm
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [linux-lvm] Lost Disk, any way to recover data?
2004-04-02 17:43 [linux-lvm] Lost Disk, any way to recover data? Jason P Holland
@ 2004-04-02 18:16 ` Perplexer
2004-04-02 18:19 ` Jason P Holland
0 siblings, 1 reply; 3+ messages in thread
From: Perplexer @ 2004-04-02 18:16 UTC (permalink / raw)
To: LVM general discussion and development
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/
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [linux-lvm] Lost Disk, any way to recover data?
2004-04-02 18:16 ` Perplexer
@ 2004-04-02 18:19 ` Jason P Holland
0 siblings, 0 replies; 3+ messages in thread
From: Jason P Holland @ 2004-04-02 18:19 UTC (permalink / raw)
To: LVM general discussion and development
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/
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2004-04-02 18:19 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-04-02 17:43 [linux-lvm] Lost Disk, any way to recover data? Jason P Holland
2004-04-02 18:16 ` Perplexer
2004-04-02 18:19 ` Jason P Holland
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox