Public bug reported:

This issue is happening with a Bionic VM on Azure.  The VM has a
separate data disk mounted in addition to the root disk.  The separate
data disk is used to hold kernel git repos and is formatted as ext4.

After applying the latest Bionic updates, the kernel was upgraded to
linux 5.3.0-1020-azure from 5.0.0-10365-azure.  Upon reboot the root
disk was found, but the data disk could not be found and therefor not
mounted.

The data disk could not be found because the partition name changed
after booting with the 5.3 kernel.  With the 5.0 kernel, the partition
name (/dev/sdc1) stays the same after every reboot.  However, with the
5.3 kernel, the partition name changes after every reboot.  For example,
the name changes to /dev/sda1, /dev/sdb1, /dev/sdc1, etc.

Mounting of this data disk is configured in the /etc/fstab file with the
following:

jsalisbury@jsalisbury-ubuntu18-04-git-repos:~/$ more /etc/fstab
# CLOUD_IMG: This file was created/modified by the Cloud Image build process
UUID=6004921f-4fdb-4fc8-a409-4a1f079f0150       /        ext4   
defaults,discard        0 0
LABEL=UEFI      /boot/efi       vfat    defaults,discard        0 0
/dev/sdc1       /src     ext4   defaults,discard        0 0


With this configuration, the disk cannot be found when the name changes, which 
happens with the 5.3 kernel.


Here is an example of /proc/partition when booting the 5.3 kernel(On this boot, 
the disk name changed to sdb):
major minor  #blocks  name

   8        0   67108864 sda
   8        1   67107776 sda1
   8       16 1072693248 sdb
   8       17 1072692224 sdb1
   8       32   31457280 sdc
   8       33   31343599 sdc1
   8       46       4096 sdc14
   8       47     108544 sdc15


Here is what happens on every boot with the 5.0 kernel(Note the name is sdc, as 
expected, and always stays sdc):
major minor  #blocks  name

   8        0   31457280 sda
   8        1   31343599 sda1
   8       14       4096 sda14
   8       15     108544 sda15
   8       16   67108864 sdb
   8       17   67107776 sdb1
   8       32 1072693248 sdc
   8       33 1072692224 sdc1

** Affects: linux-azure (Ubuntu)
     Importance: Undecided
         Status: New

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

Title:
  Partition naming regression with linux-azure 5.3 kernel

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux-azure/+bug/1878492/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to