Red Hat Bugzilla – Bug 483509
[PATCH] Unhandled exception with partial VG
Last modified: 2009-04-08 08:29:51 EDT
Created attachment 330566 [details]
Fix crash with incomplete VGs
Description of problem:
I plugged in a disk which happened to be part of a LVM volume group and ran anaconda. When setting up LVM, it would not let me use the name of the old VG and crashed after I finished partitioning.
Version-Release number of selected component (if applicable):
With partial VGs present.
Steps to Reproduce:
1. Setup LVM across two disks
2. Erase one of the disks
3. Run anaconda
1.) Can't choose the name of VG equal to the old VG name.
2.) Unhandled exception after partitioning is done:
anaconda 220.127.116.11 exception report
Traceback (most recent call first):
File "/usr/lib/anaconda/lvm.py", line 282, in vgremove
raise VGRemoveError, vgname
File "/usr/lib/anaconda/partitions.py", line 1787, in doMetaDeletes
File "/usr/lib/anaconda/packages.py", line 136, in turnOnFilesystems
File "/usr/lib/anaconda/dispatch.py", line 204, in moveStep
rc = stepFunc(self.anaconda)
File "/usr/lib/anaconda/dispatch.py", line 127, in gotoNext
File "/usr/lib/anaconda/gui.py", line 1358, in nextClicked
VGRemoveError: vgremove of vg "VolGroup00" failed
Using volume group(s) on command line
Finding volume group "VolGroup00"
Wiping cache of LVM-capable devices
Couldn't find device with uuid 'LGr24v-fkhw-00GZ-kdYc-2rfn-x8mC-Caw9Lm'.
There are 1 physical volumes missing.
Volume group "VolGroup00" not found, is inconsistent or has PVs missing.
Consider vgreduce --removemissing if metadata is inconsistent.
Local variables in innermost frame:
pvs: ['/dev/sda2', 'unknown device']
args: ['vgremove', '-v', 'VolGroup00']
pv: ('unknown device', 'VolGroup00', 0L)
Disk partitioned properly.
Attached patch. Tested.
This is already addressed in current rawhide.