Bug#343066: lvm2: LVM fails to work without running vgscan first
Kyle Gordon
kyle at lodge.glasgownet.com
Mon Dec 12 11:28:22 UTC 2005
Package: lvm2
Version: 2.01.04-5
Severity: normal
Hi folks,
After upgrading to 2.6.14-2-686-smp, I get errors when trying to start
my LVM2 array. It claims it is unable to find the UUID of two disks,
and pvdisplay shows the disks but without their UUID or device name.
After vgscan is run, pvdisplay shows the correct UUID and device
information
and the array can be loaded as normal. Examples are below.
Minor glitch aside, keep up the great work guys :-)
Regards
Kyle
flat:~# uname -a
Linux flat 2.6.14-2-686-smp #2 SMP Fri Dec 9 10:20:41 UTC 2005 i686 GNU/Linux
flat:~# uptime
10:45:51 up 3 min, 1 user, load average: 0.24, 0.15, 0.06
flat:~# /etc/init.d/lvm restart
Shutting down LVM Volume Groups...
Couldn't find device with uuid 'vahqgP-c45r-QTDR-o522-FFrR-H7Xv-Sbs6n8'.
Couldn't find all physical volumes for volume group vg_store1.
Couldn't find device with uuid 'vahqgP-c45r-QTDR-o522-FFrR-H7Xv-Sbs6n8'.
Couldn't find all physical volumes for volume group vg_store1.
Unable to find volume group "vg_store1"
flat:~# vgdisplay
Couldn't find device with uuid 'vahqgP-c45r-QTDR-o522-FFrR-H7Xv-Sbs6n8'.
Couldn't find all physical volumes for volume group vg_store1.
Couldn't find device with uuid 'vahqgP-c45r-QTDR-o522-FFrR-H7Xv-Sbs6n8'.
Couldn't find all physical volumes for volume group vg_store1.
Volume group "vg_store1" doesn't exist
flat:~# pvdisplay
Couldn't find device with uuid 'vahqgP-c45r-QTDR-o522-FFrR-H7Xv-Sbs6n8'.
Couldn't find device with uuid 'vjl5Mq-21B6-gmg9-zXEP-c3uy-kFKv-U6l0zz'.
Couldn't find device with uuid 'vahqgP-c45r-QTDR-o522-FFrR-H7Xv-Sbs6n8'.
Couldn't find device with uuid 'vjl5Mq-21B6-gmg9-zXEP-c3uy-kFKv-U6l0zz'.
--- Physical volume ---
PV Name /dev/hdb
VG Name vg_store1
PV Size 57.23 GB / not usable 0
Allocatable yes (but full)
PE Size (KByte) 4096
Total PE 14651
Free PE 0
Allocated PE 14651
PV UUID 7cryMN-plCs-YuF2-fpxn-BcIJ-OKpG-t3yRQf
--- Physical volume ---
PV Name /dev/hda6
VG Name vg_store1
PV Size 64.26 GB / not usable 0
Allocatable yes (but full)
PE Size (KByte) 4096
Total PE 16451
Free PE 0
Allocated PE 16451
PV UUID QYXz9O-6ySA-aTEM-Y6GY-GrHS-5q2C-NQoePQ
--- Physical volume ---
PV Name unknown device
VG Name vg_store1
PV Size 76.69 GB / not usable 0
Allocatable yes (but full)
PE Size (KByte) 4096
Total PE 19633
Free PE 0
Allocated PE 19633
PV UUID vahqgP-c45r-QTDR-o522-FFrR-H7Xv-Sbs6n8
--- Physical volume ---
PV Name unknown device
VG Name vg_store1
PV Size 279.48 GB / not usable 0
Allocatable yes
PE Size (KByte) 4096
Total PE 71547
Free PE 4
Allocated PE 71543
PV UUID vjl5Mq-21B6-gmg9-zXEP-c3uy-kFKv-U6l0zz
flat:~# vgscan
Reading all physical volumes. This may take a while...
Found volume group "vg_store1" using metadata type lvm2
flat:~# pvdisplay
--- Physical volume ---
PV Name /dev/hdb
VG Name vg_store1
PV Size 57.23 GB / not usable 0
Allocatable yes (but full)
PE Size (KByte) 4096
Total PE 14651
Free PE 0
Allocated PE 14651
PV UUID 7cryMN-plCs-YuF2-fpxn-BcIJ-OKpG-t3yRQf
--- Physical volume ---
PV Name /dev/hda6
VG Name vg_store1
PV Size 64.26 GB / not usable 0
Allocatable yes (but full)
PE Size (KByte) 4096
Total PE 16451
Free PE 0
Allocated PE 16451
PV UUID QYXz9O-6ySA-aTEM-Y6GY-GrHS-5q2C-NQoePQ
--- Physical volume ---
PV Name /dev/hdg
VG Name vg_store1
PV Size 76.69 GB / not usable 0
Allocatable yes (but full)
PE Size (KByte) 4096
Total PE 19633
Free PE 0
Allocated PE 19633
PV UUID vahqgP-c45r-QTDR-o522-FFrR-H7Xv-Sbs6n8
--- Physical volume ---
PV Name /dev/hdh
VG Name vg_store1
PV Size 279.48 GB / not usable 0
Allocatable yes
PE Size (KByte) 4096
Total PE 71547
Free PE 4
Allocated PE 71543
PV UUID vjl5Mq-21B6-gmg9-zXEP-c3uy-kFKv-U6l0zz
flat:~# /etc/init.d/lvm restart
Shutting down LVM Volume Groups...
0 logical volume(s) in volume group "vg_store1" now active
Setting up LVM Volume Groups...
Reading all physical volumes. This may take a while...
Found volume group "vg_store1" using metadata type lvm2
/dev/vg_store1: opendir failed: No such file or directory
1 logical volume(s) in volume group "vg_store1" now active
flat:~# df -h /misc/store/
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/vg_store1-lv_store
478G 380G 99G 80% /misc/store
flat:~#
-- System Information:
Debian Release: testing/unstable
APT prefers testing
APT policy: (990, 'testing'), (500, 'unstable')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.14-2-686-smp
Locale: LANG=en_GB, LC_CTYPE=en_GB (charmap=ISO-8859-1)
Versions of packages lvm2 depends on:
ii debconf 1.4.59 Debian configuration management sy
ii libc6 2.3.5-8 GNU C Library: Shared libraries an
ii libdevmapper1.01 2:1.01.04-2 The Linux Kernel Device Mapper use
ii lvm-common 1.5.17 The Logical Volume Manager for Lin
lvm2 recommends no packages.
-- no debconf information
More information about the pkg-lvm-maintainers
mailing list