[linux-lvm] recover a pv from a disk with no partition table
Brian J. Murrell
brian at interlinx.bc.ca
Tue May 2 00:20:13 UTC 2006
On Mon, 2006-05-01 at 16:55 -0700, David Brown wrote:
> On Mon, May 01, 2006 at 07:47:36PM -0400, Brian J. Murrell wrote:
> > I need to recover a PV from a disk with no partition table. I have a
> > disk which gives EIO errors trying to read from the first few blocks of,
> > so, no partition table.
> >
> > Is there any way with LVM2, given that I have
> > the /etc/lvm/backup/<vgname> file that I can determine the offset into
> > the disk where the partition starts, so that I could do:
>
> The backup files don't list physical offsets.
Indeed. That's why I used gpart, without success.
> But, you can see the id's for the partitions, and the lvm
> header is at offset 0x200 into the partition.
Yeah, I did notice that on another pv on the system:
# hexdump -C /dev/sda2 | less
00000000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
*
00000200 4c 41 42 45 4c 4f 4e 45 01 00 00 00 00 00 00 00 |LABELONE........|
00000210 ad 24 02 c2 20 00 00 00 4c 56 4d 32 20 30 30 31 |$. ...LVM2 001|
00000220 68 76 37 6b 4e 49 32 4e 72 5a 33 52 73 39 38 5a |hv7kNI2NrZ3Rs98Z|
00000230 42 65 73 33 53 76 4a 4c 75 68 61 4f 62 6a 53 36 |Bes3SvJLuhaObjS6|
Unfortunately, I am unable to find any "LABELONE" on the PV I am trying
to recover. I'm getting a bad feeling that that means that the LVM
(device mapper) mappings are gone. :-(
b.
--
My other computer is your Microsoft Windows server.
Brian J. Murrell
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 191 bytes
Desc: This is a digitally signed message part
URL: <http://listman.redhat.com/archives/linux-lvm/attachments/20060501/acdd78dd/attachment.sig>
More information about the linux-lvm
mailing list