[Bug 154086] Re: Installing to HDD with previous ubuntu fails to create fresh LVM claiming group already in use

Dmitrijs Ledkovs launchpad at surgut.co.uk
Mon Sep 10 13:36:58 UTC 2012


** Description changed:

- Binary package hint: debian-installer
+ [IMPACT]
  
- I have a ubuntu 7.10 beta server I'd like to reinstall from scratch.
- During the disk partitioning, I'd opted for "Guided - Use entire disk
- and setup LVM" Part way through it informed me that the volume group
- name was already in use. Surely this option should setup a new LVM
- instance and use the entire disk, even if a LVM instance already
- existed?
+  * Fail to pre-seed automatic LVM installation on machines with:
+ - empty / new partition table
+ - not-zeroed out disks
+ - which had the same partition layout
+ - and the same volume group names
  
- How can I blank this without manually having to create volumes? I think
- this is a bug
+  * this affects large scale automated installs / deployments, as it is
+ very easy to get all of those conditions when reinstalling.
+ 
+  * To fix this bug partman-auto-lvm should be updated with the proposed fix
+  * the fixed partman-auto-lvm should also make it onto affected images
+ 
+ [TESTCASE]
+ 
+  * Pre-seed or manually execute "Guided partitioning - LVM"
+  * Remove/Clear partition table with e.g.:
+ 
+ # fdisk /dev/vda << EOF
+ o
+ w
+ EOF
+  
+  * Pre-seed or manually execute "Guided partitioning - LVM" again
+ 
+ [Regression Potential]
+ 
+  * while the current behaviour is broken, it did allow to "resurrect"
+ LVM groups by bailing out the install after the zombie VGs groups became
+ detected, but it is not guaranteed that the resurrected VGs are correct:
+ the partition can be too small and VG can be incomplete (only 1 out of
+ many physical volumes). Some people may have been relying on this. The
+ correct behaviour will attempt to delete the zombie VGs by asking a
+ question that can be pre-seeded or manually backed out of.

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to partman-auto-lvm in Ubuntu.
https://bugs.launchpad.net/bugs/154086

Title:
  Installing to HDD with previous ubuntu fails to create fresh LVM
  claiming group already in use

Status in “partman-auto-lvm” package in Ubuntu:
  Fix Released
Status in “partman-lvm” package in Ubuntu:
  Won't Fix
Status in “partman-auto-lvm” source package in Precise:
  In Progress
Status in “partman-auto-lvm” source package in Quantal:
  Fix Released
Status in “partman-auto-lvm” package in Debian:
  Unknown
Status in “partman-lvm” package in Debian:
  New

Bug description:
  [IMPACT]

   * Fail to pre-seed automatic LVM installation on machines with:
  - empty / new partition table
  - not-zeroed out disks
  - which had the same partition layout
  - and the same volume group names

   * this affects large scale automated installs / deployments, as it is
  very easy to get all of those conditions when reinstalling.

   * To fix this bug partman-auto-lvm should be updated with the proposed fix
   * the fixed partman-auto-lvm should also make it onto affected images

  [TESTCASE]

   * Pre-seed or manually execute "Guided partitioning - LVM"
   * Remove/Clear partition table with e.g.:

  # fdisk /dev/vda << EOF
  o
  w
  EOF
   
   * Pre-seed or manually execute "Guided partitioning - LVM" again

  [Regression Potential]

   * while the current behaviour is broken, it did allow to "resurrect"
  LVM groups by bailing out the install after the zombie VGs groups
  became detected, but it is not guaranteed that the resurrected VGs are
  correct: the partition can be too small and VG can be incomplete (only
  1 out of many physical volumes). Some people may have been relying on
  this. The correct behaviour will attempt to delete the zombie VGs by
  asking a question that can be pre-seeded or manually backed out of.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/partman-auto-lvm/+bug/154086/+subscriptions




More information about the foundations-bugs mailing list