All of lore.kernel.org
 help / color / mirror / Atom feed
* [linux-lvm] Changing partition names?
@ 2001-07-30 11:48 Donald Gordon
  2001-07-30 12:04 ` AJ Lewis
  0 siblings, 1 reply; 6+ messages in thread
From: Donald Gordon @ 2001-07-30 11:48 UTC (permalink / raw)
  To: linux-lvm

Hi

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?

Thanks

don

-- 
Donald Gordon | Wellington, New Zealand | All opinions above are those of my
donald@gordon.co.nz | icq 14995769 | um | deceased pet goldfish, "Fishy II".

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [linux-lvm] Changing partition names?
  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
  0 siblings, 1 reply; 6+ messages in thread
From: AJ Lewis @ 2001-07-30 12:04 UTC (permalink / raw)
  To: linux-lvm

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

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.

-- 
AJ Lewis
Sistina Software Inc.                  Voice:  612-638-0500
1313 5th St SE, Suite 111              Fax:    612-638-0500
Minneapolis, MN 55414                  E-Mail: lewis@sistina.com
http://www.sistina.com

Current GPG fingerprint = 3B5F 6011 5216 76A5 2F6B  52A0 941E 1261 0029 2648
Get my key at: http://www.sistina.com/~lewis/gpgkey
 (Unfortunately, the PKS-type keyservers do not work with multiple sub-keys)

-----Begin Obligatory Humorous Quote----------------------------------------
Your mouse has moved. Windows NT must be restarted for the change to take
effect. Reboot now? [ OK ]
-----End Obligatory Humorous Quote------------------------------------------

[-- Attachment #2: Type: application/pgp-signature, Size: 232 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [linux-lvm] Changing partition names?
  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
  0 siblings, 2 replies; 6+ messages in thread
From: Donald Gordon @ 2001-07-30 12:48 UTC (permalink / raw)
  To: linux-lvm

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.

Also, is there any way to point vgscan in the general direction of the
block devices where PVs are to be found?  It takes quite some time to scan
*everything* on my p75 :(

don 

-- 
Donald Gordon | Wellington, New Zealand | All opinions above are those of my
donald@gordon.co.nz | icq 14995769 | um | deceased pet goldfish, "Fishy II".

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [linux-lvm] Changing partition names?
  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
  1 sibling, 0 replies; 6+ messages in thread
From: AJ Lewis @ 2001-07-30 14:22 UTC (permalink / raw)
  To: linux-lvm

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

On Tue, Jul 31, 2001 at 12:48:35AM +1200, 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.
> 
> Also, is there any way to point vgscan in the general direction of the
> block devices where PVs are to be found?  It takes quite some time to scan
> *everything* on my p75 :(

Are you using devfs?  If so, which version of LVM are you using?  If not, do
you have /proc mounted?  And are the values in /proc/partitions valid?  LVM
should use /proc/partitions on a non-devfs system to determine which devices
to scan.  On a devfs system, LVM should use the dynamically created device
nodes to determine the same.

Of course, this is all assuming you're using the current LVM 0.9.1 beta8
version of LVM.  I'm not positive where this functionality was intruduced.

Regards,
-- 
AJ Lewis
Sistina Software Inc.                  Voice:  612-638-0500
1313 5th St SE, Suite 111              Fax:    612-638-0500
Minneapolis, MN 55414                  E-Mail: lewis@sistina.com
http://www.sistina.com

Current GPG fingerprint = 3B5F 6011 5216 76A5 2F6B  52A0 941E 1261 0029 2648
Get my key at: http://www.sistina.com/~lewis/gpgkey
 (Unfortunately, the PKS-type keyservers do not work with multiple sub-keys)

-----Begin Obligatory Humorous Quote----------------------------------------
Over and over I find being redundant is key to success
in the art of redundancy - Jay Armstrong
-----End Obligatory Humorous Quote------------------------------------------

[-- Attachment #2: Type: application/pgp-signature, Size: 232 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [linux-lvm] Changing partition names? [vgscan not seeting PV]
  2001-07-30 12:48   ` Donald Gordon
  2001-07-30 14:22     ` AJ Lewis
@ 2001-07-30 22:06     ` Donald Gordon
  2001-07-31  9:36       ` Joe Thornber
  1 sibling, 1 reply; 6+ messages in thread
From: Donald Gordon @ 2001-07-30 22:06 UTC (permalink / raw)
  To: linux-lvm

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?

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

BTW: I'm running LVM 9.1_beta2 (I *think*; whatever came with kernel
2.4.7, anyway).

Thanks

don

-- 
Donald Gordon | Wellington, New Zealand | All opinions above are those of my
donald@gordon.co.nz | icq 14995769 | um | deceased pet goldfish, "Fishy II".

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [linux-lvm] Changing partition names? [vgscan not seeting PV]
  2001-07-30 22:06     ` [linux-lvm] Changing partition names? [vgscan not seeting PV] Donald Gordon
@ 2001-07-31  9:36       ` Joe Thornber
  0 siblings, 0 replies; 6+ messages in thread
From: Joe Thornber @ 2001-07-31  9:36 UTC (permalink / raw)
  To: linux-lvm

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2001-07-31  9:36 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 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.