Red Hat Bugzilla – Bug 494414
vgcfgrestore can segfault if some PV is missing
Last modified: 2013-02-28 23:07:53 EST
+++ This bug was initially created as a clone of Bug #491902 +++
Description of problem:
# pvcreate /dev/sd[bc]
Physical volume "/dev/sdb" successfully created
Physical volume "/dev/sdc" successfully created
# vgcreate vg_test /dev/sd[bc]
Volume group "vg_test" successfully created
# vgcfgbackup -f vg_test vg_test
Volume group "vg_test" successfully backed up.
now some PV is lost...
# pvremove -ff /dev/sdb
Labels on physical volume "/dev/sdb" successfully wiped
# vgcfgrestore -f vg_test vg_test
Couldn't find device with uuid 'jYyR3Q-G601-hQYa-XLuB-z3Bb-nP1s-Bx8dYd'.
Fix in version lvm2-2.02.46-1.el5.
Fix verified in lvm2-2.02.46-8.el5.
[root@grant-01 ~]# vgcfgrestore -f vg_test vg_test
Couldn't find device with uuid 'rCJ1rb-9NJr-beHf-FST8-7UAw-9EQ7-8ILI48'.
Cannot restore Volume Group vg_test with 1 PVs marked as missing.
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.