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

Re: [linux-lvm] Repair inconsistent PV



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. 


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