LVM install broken if other disks have meta-data on the VG name already
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
The Ubuntu-power-systems project |
Fix Released
|
Undecided
|
Ubuntu on IBM Power Systems Bug Triage | ||
Ubuntu on IBM z Systems |
Fix Released
|
Undecided
|
Skipper Bug Screeners | ||
subiquity |
Fix Released
|
Undecided
|
Unassigned | ||
curtin (Ubuntu) |
Confirmed
|
Undecided
|
Canonical Foundations Team |
Bug Description
Hi,
I was puzzled today at my install aborting until I was looking in the crash file.
There I've found:
Running command ['vgcreate', '--force', '--zero=y', '--yes', 'ubuntu-vg', '/dev/dasda2'] with allowed return codes [0] (capture=True)
An error occured handling 'lvm_volgroup-0': ProcessExecutio
Command: ['vgcreate', '--force', '--zero=y', '--yes', 'ubuntu-vg', '/dev/dasda2']
Exit code: 5
Reason: -
Stdout: ''
Stderr: A volume group called ubuntu-vg already exists.
And now things fall into place.
I've had a default vg as the installer creates it across a few disks.
Then later my main root disk was broken and I replaced it.
Now at install time I have activated all disks that I eventually wanted to use (this is s390x therefore activate disks, but from the bit I see in the crash I'd expect no other behavior if on e.g. x86 you'd replace one disk and try to re-install).
What happens is that the disks I'm not installing onto still have LVM metadata.
That has the "ubuntu-vg" defined and thereby crashes the install.
I think we will need to harden the installer that probably needs to wipe some signatures and re-probe LVM to then get things going.
tags: | added: fr-964 |
Changed in curtin (Ubuntu): | |
status: | New → Confirmed |
Changed in subiquity: | |
status: | New → Confirmed |
Changed in ubuntu-z-systems: | |
status: | New → Confirmed |
Changed in ubuntu-power-systems: | |
status: | New → Confirmed |
Changed in subiquity: | |
status: | Confirmed → Fix Committed |
Changed in ubuntu-z-systems: | |
status: | Confirmed → Fix Committed |
Changed in ubuntu-power-systems: | |
status: | Confirmed → Fix Committed |
Changed in ubuntu-power-systems: | |
assignee: | nobody → Ubuntu on IBM Power Systems Bug Triage (ubuntu-power-triage) |
Changed in curtin (Ubuntu): | |
assignee: | nobody → Canonical Foundations Team (canonical-foundations) |
Changed in ubuntu-z-systems: | |
assignee: | Canonical Foundations Team (canonical-foundations) → Skipper Bug Screeners (skipper-screen-team) |
Changed in ubuntu-z-systems: | |
status: | Fix Committed → Fix Released |
Changed in subiquity: | |
status: | Fix Committed → Fix Released |
tags: |
added: targetmilestone-inin2004 removed: targetmilestone-inin--- |
Changed in ubuntu-power-systems: | |
status: | Fix Committed → Fix Released |
Even if I think that this is not s390x-specific, I'm marking this as affecting s390x, since one bumped into this while doing an (LPAR) install on s390x.