[Bug 1929213] Re: Ubuntu server LVM creates clone partitions and crash installation

Michael Hudson-Doyle 1929213 at bugs.launchpad.net
Tue May 25 10:38:09 UTC 2021


Argh what is going on here is that you have two distinct drives with the
same WWN. From the UdevDB from the crash report:

 P: /devices/pci0000:00/0000:00:11.0/ata1/host0/target0:0:0/0:0:0:0/block/sda
 N: sda
...
 E: ID_WWN=0x5000000000000000
...
 E: ID_SERIAL=SSDPR-CX400-256-G2_GXA062868

 P: /devices/pci0000:00/0000:00:11.0/ata2/host1/target1:0:0/1:0:0:0/block/sdb
 N: sdb
...
 E: ID_WWN=0x5000000000000000
...
 E: ID_SERIAL=SSDPR-CX400-256-G2_GXA062866

Distinct serial but same wwn. These values end up in the curtin config:

     -   id: disk-sda
         path: /dev/sda
         ptable: gpt
         serial: SSDPR-CX400-256-G2_GXA062868
         type: disk
         wwn: '0x5000000000000000'
     -   id: disk-sdb
         path: /dev/sdb
         ptable: gpt
         serial: SSDPR-CX400-256-G2_GXA062866
         type: disk
         wwn: '0x5000000000000000'

curtin looks up by wwn first (if present) so when processing the action
for /dev/sda it actually (at least in the run I looked at) ended up
clearing users from /dev/sdb instead. So the vg named "vg0" that was on
sda didn't get cleared and then when it tried to create a new vg called
vg0, things blew up.

I'm not going to bother trying to think of why some of your attempts
failed and some succeeded. Your comment "even when only single drive was
selected, somehow second(sdb) had clones of partitions from sda." does
make sense given this though!

What we should do is be more robust to this behaviour (it's not the
first time we've seen it). Something needs to notice when drives with
the same WWN have different serials and ignore the wwn if that happens,
or something along those lines.

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

Title:
  Ubuntu server LVM creates clone partitions and crash installation

Status in subiquity package in Ubuntu:
  New

Bug description:
  #I've already sent crash report from installer, but since I'm not
  quite sure how #it's handled, might as well follow up with this.

  #I've been tinkering with ubuntu server and some old HW. Long story short, since #I'm not used to CLI/text like install and missed that installer reverse order of #HDDs I ended up with disk setup where /boot, /boot/efi along with LVM handling #root were on /sdb
  #To be precise:
  #sdb:
  #/boot
  #/boot/efi
  #/lvm/root

  #sda:
  #/lvm/root

  #This failed at some point with message refering boot/grub could not be found on #/dev/sda1:
  #
  #"could not get path to dev from kname sda1"
  #
  #If I set up everything on sda it works fine.

  https://bugs.launchpad.net/ubuntu/+source/subiquity/+bug/1929213/comments/5

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/subiquity/+bug/1929213/+subscriptions



More information about the foundations-bugs mailing list