Score:2

Boot fails after upgrading from 20.04 to 22.04 on dmraid device, no partitons

gn flag

After upgrading from Ubuntu 20.04 to Ubuntu 22.04 I go into an initramfs command line, where I see my RAID device but no partitions.

ls -l /dev/mapper/
total 0
crw------- 1 root root  10, 236 Nov 30 09:42 control
brw-rw---- 1 root disk 253,   0 Nov 30 09:40 isw_dbejgbheca_Volume0

Then I run kpartx -a /dev/mapper/isw_dbejgbheca_Volume0 and the partitions appear.

ls -l /dev/mapper/
total 0
crw------- 1 root root  10, 236 Nov 30 09:42 control
brw-rw---- 1 root disk 253,   0 Nov 30 09:40 isw_dbejgbheca_Volume0
lrwxrwxrwx 1 root root        7 Nov 30 09:42 isw_dbejgbheca_Volume0p1 -> ../dm-1
lrwxrwxrwx 1 root root        7 Nov 30 09:42 isw_dbejgbheca_Volume0p2 -> ../dm-2

i can now type exit and the computer will boot Ubuntu.

Brunob avatar
gn flag
i forgot to add , i need to to this everytime i boot, i tried to run update-initramsfs but it did not solve the issue, i think i need to add something in the grub config to make it permanent, any ideas ?
Score:1
pe flag

i upgraded my System on Intel Software Raid yesterday from XUbuntu 20.04 to XUbuntu 22.04 and it came out with the same issue wich you discoverd.

Personally i think it could be a bug in/with dmraid.

I tried different Ubuntu Life Systems (XUbuntu & Ubuntu Mate, 20.04, 18.04, 22.04 & 22.10).

I found out that with Live Systems based on Ubuntu 18.04 or 20.04 my RAID Partitions appear as expected after the boot and are accessible. But not with Live Systems based on 22.04 or 22.10. In this systems i need to run "sudo kpartx -a /dev/mapper/isw_ffiig8ggf_Volume0" in the Terminal. Only after that my RAID Partitions appear and where accessible. A Rescue System based on Porteus OS show also my RAID Partitions after boot, but with the mdadm tool.

I also noticed that the Program "mdadm" (multiple disk administration) seems to be no longer present in Ubuntu Live Versions up from 22.04. I could remember that this Package was installed (parallel to dmraid, i knew dmraid was in use because partitions where listed as /dev/mapper/isw_xxxxpx) on my XUbuntu 20.04 before the upgrade to 22.04. "dpkg -l" shows that this Package was no longer installed on my system after the upgrade. "apt-cache search" shows it as available. So i reinstalled this Package. Initramfs was updated automatic during installation process. Grub needs manual update via "sudo update-grub". "/etc/fstab" needs manual edit to set back to the UUID's of the partition's (some where listed as /dev/mapper/isw_xxxxpx).

After that changes my system starts now as expected. A check via lsbklid and blkid shows up that my system is now fully running on mdadm tool (Partitions shown as /dev/mdxxxpx) and no longer on dmraid.

Score:1
mw flag

After upgrading from kubuntu 20.04 to 22.04 I am facing the same issue with dmraid. Does not enable RAID set automatically. On my PC there are two. After booting, using the command 'dmraid -ay' activates one RAID, but not the other. It is necessary to use the command 'kpartx -a' and then 'dmraid -ay'. There are no error messages and nothing in the logs.

David avatar
cn flag
Not an answer but a new question. Please make a new question to get help with your issue.
Score:0
lt flag

Chris's answer didn't fix the problem in my Ubuntu 22.04.

I had to install mdadm package:

sudo apt install mdadm

During the installation grub and initramfs were updated both, my RAID was somehow converted to be managed by mdadm rather than dmraid. So, finally I successfully booted with my RAID activated and mounted at boot time.

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.