From: Craig Hagerman <craighagerman@gmail.com>
To: LVM general discussion and development <linux-lvm@redhat.com>
Subject: Re: [linux-lvm] setting up LVM, lost everything with a typo
Date: Fri, 21 Oct 2005 07:57:31 +0900 [thread overview]
Message-ID: <80d985600510201557ibdc20d1w8b6105c2142d5cb9@mail.gmail.com> (raw)
In-Reply-To: <170fa0d20510201256q2f6abdd5tf507720ae2e9aa16@mail.gmail.com>
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: [linux-lvm] 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
next prev parent reply other threads:[~2005-10-20 23:04 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-10-20 2:07 [linux-lvm] setting up LVM, lost everything with a typo Craig Hagerman
2005-10-20 9:24 ` Klaus Strebel
2005-10-20 9:57 ` Craig Hagerman
2005-10-20 11:58 ` Craig Hagerman
2005-10-20 19:54 ` Mike Snitzer
[not found] ` <170fa0d20510201256q2f6abdd5tf507720ae2e9aa16@mail.gmail.com>
2005-10-20 22:57 ` Craig Hagerman [this message]
2005-10-20 20:00 ` Alasdair G Kergon
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=80d985600510201557ibdc20d1w8b6105c2142d5cb9@mail.gmail.com \
--to=craighagerman@gmail.com \
--cc=linux-lvm@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).