From: "Adam Tybor" <adam.tybor@gmail.com>
To: linux-lvm@redhat.com
Subject: [linux-lvm] Recovering PV and LG after fdisk or Repartition
Date: Wed, 3 Jan 2007 14:48:15 -0600 [thread overview]
Message-ID: <9b2e66b20701031248l405753d5nf811c414ce754f2d@mail.gmail.com> (raw)
Hi,
I made a huge mistake last night. I was repartitioning drives in my
system using fdisk. I accidentally fdisk the wrong drive, rebooted,
and lost my lvm2. In light of this error, I did a dd from the
original disk to another disk of the exact same geometry before I
started trying to recover the original.
Here is what I did to try and recover.
Disk 300GB 1 partition of type 8e /dev/sdc1
It had a single volume group on the pv which was /dev/sdc1
I tried recreating the PV using the archive file, that failed. I
forced the creation of the PV on /dev/sdc1 with the uuid from the
archive file, that succeeded.
I then ran:
vgcfgrestore -n vg-storage -t -v -f /etc/lvm/backup/vg-storage vg-storage
This worked and restored my two logical volumes. I then activated the
volumes running vgchange -ay. Now I cannot mount the volumes.
The two volumes had reiserfs, mount will not mount them, a dmesg shows
this error.
ReiserFS: dm-6: warning: sh-2021: reiserfs_fill_super: can not find
reiserfs on dm-6
Running reiserfsck does nothing, it just returns immediately with no output.
I tried rebuilding the super block, the tree, everything. It seems
like reiserfsck cannot find anything.
Is there anything else I can do, I really need this data?
Thanks,
Adam
next reply other threads:[~2007-01-03 20:48 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-01-03 20:48 Adam Tybor [this message]
2007-01-04 11:18 ` [linux-lvm] Re: Recovering PV and LG after fdisk or Repartition Adam Tybor
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=9b2e66b20701031248l405753d5nf811c414ce754f2d@mail.gmail.com \
--to=adam.tybor@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).