From: Andreas Pakulat <ap125@informatik.uni-rostock.de>
To: linux-lvm@sistina.com
Subject: Re: [linux-lvm] Repair inconsistent PV
Date: Mon Aug 18 18:07:01 2003 [thread overview]
Message-ID: <20030818230554.GB23997@debian.pakulat> (raw)
In-Reply-To: <20030818220805.GB513@questra.com>
On 18.Aug 2003 - 18:08:05, Scott Mcdermott wrote:
> Andreas Pakulat on Mon 18/08 23:42 +0200:
> > only wanted to notify everyone, that I could now solve my
> > problem with hexedit and lvm.h. I changed the Major/Minor
> > Numbers in both hdXX and then looked at the VG Data, I
> > found that the one in hdc2 seemed OK, while the one in
> > hda7 looked like random Data was written in it. So I
> > copied the VG Metadata into hda7 using dd. A vgscan marked
> > lvtmp as problematic, it was in hda7 but in the vgmetadata
> > were only 3 LV's, so I changed that and threw out the LV
> > Metadata of that particular lv. It is also the one I was
> > deleting when the hardware error occured. Now I can read
> > my data again.
>
> that's cool investigative work...
With a bit knowledge of C and the size of integer-datatypes it is not
that hard. Even though I had to play a little, to find out which
metadata block is the right one. And the lvm.h file is very well written
and documented, it's relatively easy to use it to understand the bytes
on the device.
> just wondering out of curiosity...did you have a backup when
> you did this? :)
You mean a backup of my original VG-Metadata? No, I explained that in
the original post, I lost my / partition and wanted to reinstall my
system, during the reorganization of the VG I lost some metadata due to
a hardware error. If I had a backup of the LVM-Metadata the whole
process would have been much easier - only a pvcreate -ff and
vgcfgrestore.
From the raw devices I made a backup before starting of doing anything
to the PV's, I did not want to loose more data.
And I did not have a system backup, as this system is not that
important, but it would have costed a reasonable amount of time to get
the system back working without the data from the lv.
Andreas
prev parent reply other threads:[~2003-08-18 18:07 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-08-16 10:47 [linux-lvm] Repair inconsistent PV Andreas Pakulat
2003-08-17 12:03 ` Andreas Pakulat
2003-08-18 16:43 ` Andreas Pakulat
2003-08-18 17:09 ` Scott Mcdermott
2003-08-18 18:07 ` Andreas Pakulat [this message]
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=20030818230554.GB23997@debian.pakulat \
--to=ap125@informatik.uni-rostock.de \
--cc=linux-lvm@sistina.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