[Bug 1167834] Re: LVM volume name (hostname derived) can conflict with devices names

Colin Watson cjwatson at canonical.com
Wed Dec 11 11:57:25 UTC 2013


*** This bug is a duplicate of bug 812162 ***
    https://bugs.launchpad.net/bugs/812162

** This bug has been marked a duplicate of bug 812162
   guided lvm creation fails with certain hostnames in alternate installer

-- 
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/1167834

Title:
  LVM volume name (hostname derived) can conflict with devices names

Status in “partman-auto-lvm” package in Ubuntu:
  Triaged

Bug description:
  When installing 12.04 server (amd64, but shouldn't matter), and one
  selects "Guided - use entire disk and setup LVM", the default logical
  volume name uses the hostname. For instance, if I use the hostname
  "core", this causes problems: when selecting write changes to disk,
  the error appears:

  "Unexpected error while creating volume group" 
  "Autopartitioning using LVM failed because an error occurred while creating the volume group"
  "Check /var/log/syslog ..."

  Output from syslog:

  Apr 11 09:49:35 partman:   Reading all physical volumes.  This may take a while...
  Apr 11 09:49:35 partman-lvm:
  Apr 11 09:49:35 partman-lvm: No volume groups found
  Apr 11 09:49:35 partman-lvm:
  Apr 11 09:50:19 partman-lvm:   Physical volume "/dev/sda5" successfully created
  Apr 11 09:50:19 partman-lvm:
  Apr 11 09:50:19 partman-lvm: /dev/core: already exists in filesystem
  Apr 11 09:50:19 partman-lvm:
  Apr 11 09:50:19 partman-lvm:
  Apr 11 09:50:19 partman-lvm: New volume group name "core" is invalid
  Apr 11 09:50:19 partman-lvm:
  Apr 11 09:50:19 partman-lvm:
  Apr 11 09:50:19 partman-lvm: Run `vgcreate --help' for more information.

  Of course, since /dev/core already exists, it fails.

  
  This breaks installation, but isn't clear to the user why it is happening. It's especially confusing as it is the default
  recommended choice during install.

  A solution - the volume name selection should append something
  distinct to avoid conflicting with the device name, for instance: -vg
  or -lv.

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



More information about the foundations-bugs mailing list