All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Brian J. Murrell" <brian@interlinx.bc.ca>
To: LVM general discussion and development <linux-lvm@redhat.com>
Subject: Re: [linux-lvm] recover a pv from a disk with no partition table
Date: Mon, 01 May 2006 20:20:13 -0400	[thread overview]
Message-ID: <1146529213.31003.67.camel@pc.local> (raw)
In-Reply-To: <20060501235549.GA29617@old.davidb.org>

[-- Attachment #1: Type: text/plain, Size: 1483 bytes --]

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

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 191 bytes --]

      reply	other threads:[~2006-05-02  0:20 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-05-01 23:47 [linux-lvm] recover a pv from a disk with no partition table Brian J. Murrell
2006-05-01 23:55 ` David Brown
2006-05-02  0:20   ` Brian J. Murrell [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=1146529213.31003.67.camel@pc.local \
    --to=brian@interlinx.bc.ca \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.