Re: setting up LVM, lost everything with a typo

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

 



On 10/21/05, Mike Snitzer <snitzer@gmail.com> wrote:
> Last line should've been:
>  vgcfgrestore -f /etc/lvm/backup/media_vg media_vg
>
>
>
> ---------- Forwarded message ----------
> From: Mike Snitzer <snitzer@gmail.com>
> Date: Oct 20, 2005 3:54 PM
> Subject: Re:  setting up LVM, lost everything with a typo
> To: LVM general discussion and development <linux-lvm@redhat.com>
>
>
>  On 10/19/05, Craig Hagerman <craighagerman@gmail.com > wrote:
> > Hi,
> >
> > I recently got a new HD and thought it was about time I started using
> > LVM. Unfortunatly, I think I have ended up loosing all of my data due
> > to a typo. I would like to know if my data is lost forever. If not,
> > what can I do now to recover. Here is the whole story...
>
>  You've changed the partition table of /dev/sdb but the data itself _should_
> still be intact (changing the type shouldn't adversely affect the offsets of
> your sdb1 partition).  You might try the type change on /dev/sda2 and then
> restore the backup of the media_vg's VGDA from /etc/lvm/backup/media_vg
> using pvcreate and vgcfgrestore, something like:
>
>  pvcreate --restorefile /etc/lvm/backup/media_vg --uuid
> rlnV4y-B4eJ-Pyc0-RLJm-2Zbv-t04C-dxzU1A /dev/sdb1
>  pvcreate --restorefile /etc/lvm/backup/media_vg --uuid
> ZHl4Ak-mGS4-wFlF-4neF-G1Ed-GxWB-C4Smj6 /dev/sda2
>  vgcfgrestore -f /etc/lvm/backup/media_vg test_vg
>
>  That said, its unclear to me why /dev/sda2 is unknown...  so take my advise
> at your own risk ;)
>
>


Thank you Mike - that did it. I am SO happy! I can mount the vg and
everything is there. I think I will backup everything onto DVD (about
180GB) before I do another reboot.

Craig

_______________________________________________
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/

[Index of Archives]     [Gluster Users]     [Kernel Development]     [Linux Clusters]     [Device Mapper]     [Security]     [Bugtraq]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]

  Powered by Linux