From: Ray Van Dolson <rvandolson@esri.com>
To: linux-lvm@redhat.com
Subject: Re: [linux-lvm] Please help me recover my LVM configuration
Date: Sat, 30 Jul 2011 11:15:48 -0700 [thread overview]
Message-ID: <20110730181547.GA31928@esri.com> (raw)
In-Reply-To: <97485ADD3BBC4386A165837AEB179590@Chimpanzeke>
On Fri, Jul 29, 2011 at 08:30:25PM -0700, David Ziring wrote:
> Hi all,
>
> I’m hoping I can get some help recovering my data. A week or so back I
> accidentally overwrote the partition table on one of the two drives containing
> my data. I luckily didn’t touch the partition itself, so I believe all the
> data is still there, but in rebuilding the partition table I (think I) nuked
> the uuid of the drive. Now I’m not sure how to progress.
> Please help this relative neophyte – there is a lot of nostalgia sitting on
> those drives. Tell me what information you need and I will get it.
>
> DZ
Was the lost partition also the one housing /etc/lvm? If not, you can
get the UUID that way....
If it was, fortunately LVM keeps metadata information about itself.
You should able to dump it via:
dd if=/dev/sda2 bs=512 count=255 skip=1 of=/tmp/sda2.txt
Where /dev/sda2 is your LVM partition.
You can then examine the output file with "strings" and pull out the
UUID information or even completely recreate your configuration files.
What I have done in the past is to just examine this information and
then use dmsetup to create a temporary device, mount it and copy out
the information from /etc/lvm.
Then it's the standard vgcfgrestore dance...
Dumped some instructions from a work wiki here that may be of help
(sorry it's PDF):
http://www.bludgeon.org/~rayvd/files/LVM_Missing_Metadata.pdf
Ray
next prev parent reply other threads:[~2011-07-30 18:15 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-07-30 3:30 [linux-lvm] Please help me recover my LVM configuration David Ziring
2011-07-30 16:49 ` evilensky
2011-07-30 18:15 ` Ray Van Dolson [this message]
-- strict thread matches above, loose matches on Subject: below --
2011-07-30 22:06 David Ziring
2011-08-01 1:17 ` Eugene Vilensky
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=20110730181547.GA31928@esri.com \
--to=rvandolson@esri.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).