Bug#407257: lvm2: vgrename failled silently to rename a vg

Joel Soete soete.joel at scarlet.be
Wed Jan 17 08:51:49 UTC 2007


Package: lvm2
Version: 2.02.06-3
Severity: normal

*** Please type your report below this line ***
Hello all,

Some time ago, on my testing debian install, I created a vg named vg00 
over a software mirror raid1 as pv for a debootstrap, as well a vg_raid5 
over a sw raid5 pv for data.
All seems to work fine.

I was just surprised to always get a message at boot time like:
[snip]
Volume group "root_vg" not found
[snip]
(even thought I never created it)

that I tried to rename vg00 into root_vg.

'vgrename vg00 root_vg' seems to me to be the good candidate for such operation
and also seems to work if I trust message:
root at patst007:/etc/lvm/backup# vgrename vg00 root_vg
  Failed to read VG data from PV (/dev/sdb1)
  Failed to read VG data from PV (/dev/sdb1)
  Failed to read VG data from PV (/dev/sdb1)
  Failed to read VG data from PV (/dev/sdb1)
  Volume group "vg00" successfully renamed to "root_vg"

but actualy silently failed (no error msg anywhere):
root at patst007:/etc/lvm/backup# vgchange -a y root_vg
  Failed to read VG data from PV (/dev/sdb1)
  Failed to read VG data from PV (/dev/sdb1)
  Volume group "root_vg" not found

reading <http://bugzilla.redhat.com/bugzilla/>:
"Bug 147361: Fix duplicate VG name handling."

fixed another pb but my case seems to be far well simpler
and would work too.

Any idea (hppa platform pb, target name reserved, ...) ?

Tia,
	Joel

PS1: I also tried another method like:
root at patst007:/etc/lvm/backup# vgcfgrestore -f root_vg root_vg
  Restored volume group root_vg

unfortunately:
root at patst007:/etc/lvm/backup# vgchange -a y root_vg
  Failed to read VG data from PV (/dev/sdb1)
  Failed to read VG data from PV (/dev/sdb1)
  Volume group "root_vg" not found
root at patst007:/etc/lvm/backup# vgchange root_vg -a y
  Failed to read VG data from PV (/dev/sdb1)
  Failed to read VG data from PV (/dev/sdb1)
  Volume group "root_vg" not found

PS2: fortunately I didn't lost anything:

-- System Information:
Debian Release: 4.0
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (1, 'experimental')
Architecture: hppa (parisc)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.20-rc5-d32mp
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages lvm2 depends on:
ii  debconf [debconf-2.0]        1.5.11      Debian configuration management sy
ii  libc6                        2.3.6.ds1-8 GNU C Library: Shared libraries
ii  libdevmapper1.02             2:1.02.08-1 The Linux Kernel Device Mapper use
ii  libncurses5                  5.5-5       Shared libraries for terminal hand
ii  libreadline5                 5.2-2       GNU readline and history libraries
ii  libselinux1                  1.32-3      SELinux shared libraries
ii  libsepol1                    1.14-1      Security Enhanced Linux policy lib
ii  lvm-common                   1.5.20      The Logical Volume Manager for Lin

lvm2 recommends no packages.

-- debconf information:
  lvm2/snapshots:
---
Scarlet One - Combinez l'ADSL avec la telephonie fixe illimitee et epargnez 400 euros
http://www.scarlet.be 






More information about the pkg-lvm-maintainers mailing list