From: Joe Thornber <thornber@btconnect.com>
To: linux-lvm@sistina.com
Subject: Re: [linux-lvm] Changing partition names? [vgscan not seeting PV]
Date: Tue, 31 Jul 2001 10:36:12 +0100 [thread overview]
Message-ID: <20010731103612.B464@btconnect.com> (raw)
In-Reply-To: <Pine.LNX.4.21.0107310958290.14766-100000@server.gordon.co.nz>; from donald@gordon.co.nz on Tue, Jul 31, 2001 at 10:06:26AM +1200
On Tue, Jul 31, 2001 at 10:06:26AM +1200, Donald Gordon wrote:
> On Tue, 31 Jul 2001, Donald Gordon wrote:
>
> > On Mon, 30 Jul 2001, AJ Lewis wrote:
> >
> > > On Mon, Jul 30, 2001 at 11:48:56PM +1200, Donald Gordon wrote:
> > > > I can't seem to see any way to tell lvm that the name of one of the
> > > > partitions it is using has changed (from /dev/sda10 to /dev/sda8; I'm
> > > > transitioning a system to LVM). Should it pick this up on reboot or is
> > > > there some config file I need to prod?
> > >
> > > vgscan will do this for you automatically.
> > >
> >
> > When I (ahem) remove a partition by mistake and re-create it in the same
> > location with fdisk vgscan no longer recognises it.
>
> I can't see anything particularily odd about this partition BTW; I'm not
> sure what a LVM superblock is supposed to look like but what's there
> *seems* to be likely to be something. Is the partition table supposed to
> have some sort of flag in it (apart from the type=0x8e) saying "I'm an LVM
> PV" or is it likely the data (my /usr and /home :( ) in the PV is gone
> forever?
Your data should still be there, I've done a similar thing and still
managed to recover it. Just don't write anything to that device. Try
experimenting with the pvdata command on your suspect partition.
>
> If it makes sense to anyone, the first 4kb (and 512kb is in the same
> directory) of that partition is at http://fias.co.nz/lvm/sda6-4k
I just had a look, it certainly doesn't look like a pv. So either the
metadata got fried, in which case you should restore from a backup.
Or you didn't restore the partition to the same location, in which
case dump a bit more of the partition, and hunt for strings that match
the names of your vg and lv's.
- Joe
prev parent reply other threads:[~2001-07-31 9:36 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-07-30 11:48 [linux-lvm] Changing partition names? Donald Gordon
2001-07-30 12:04 ` AJ Lewis
2001-07-30 12:48 ` Donald Gordon
2001-07-30 14:22 ` AJ Lewis
2001-07-30 22:06 ` [linux-lvm] Changing partition names? [vgscan not seeting PV] Donald Gordon
2001-07-31 9:36 ` Joe Thornber [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=20010731103612.B464@btconnect.com \
--to=thornber@btconnect.com \
--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 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.