Add unique VG name to avoid activating multiple VGs with the same name from multiple disk drives

Bug #2023970 reported by David Hedlund
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubiquity (Ubuntu)
New
Undecided
Unassigned

Bug Description

The default volume group (VG) name in both Ubuntu, and Ubuntu Server is: ubuntu-vg

###########################
Boot issue
* You cannot boot an Ubuntu (or Ubuntu Server) disk drive, if you have another disk drive attached with Ubuntu (or Ubuntu Server) installed.

###########################
Disk mount issue in other distros

* In other distros that are usign other VG names: If you attach other disk drives that have identical VG names, they will not be mounted. And only one disk drive will be mounted if you are trying to mount them:

$ sudo apt-get install lvm2
$ reboot

Then:
$ sudo modprobe dm-mod
$ sudo vgchange -a y
  WARNING: VG name ubuntu-vg is used by VGs HW3PiJ-YN4Z-YlBb-IQin-CE00-1xnq-YKwsbc and 2afQMx-nuzj-xw8I-dEkY-n969-jM5v-zn1MSg.
  Fix duplicate VG names with vgrename uuid, a device filter, or system IDs.
  WARNING: activating multiple VGs with the same name is dangerous and may fail.
  1 logical volume(s) in volume group "ubuntu-vg" now active
  WARNING: activating multiple VGs with the same name is dangerous and may fail.
  device-mapper: create ioctl on ubuntu--vg-ubuntu--lv LVM-2afQMxnuzjxw8IdEkYn969jM5vzn1MSgnfgWV7d1tEfHHYXR33JuS7XxqMRcPgiB failed: Device or resource busy
  0 logical volume(s) in volume group "ubuntu-vg" now active

#########################
Solution

* Universally Unique Identifiers, or UUIDS, are 128 bit numbers.
* Logical volume names must be unique system wide and can range from 1 to 15 characters

Proposed solution: Extend "ubuntu-vg" to "ubuntu-vg-<four first characters of its UUID>

David Hedlund (g-public)
affects: ubuntu → ubiquity
information type: Public → Public Security
Colin Watson (cjwatson)
affects: ubiquity → ubiquity (Ubuntu)
Revision history for this message
David Hedlund (g-public) wrote :
Revision history for this message
Dan Bungert (dbungert) wrote :

Hi there, thanks for the report.

This looks like a regular bug, not security, so I'm moving this back to a Public information type bug.

information type: Public Security → Public
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.