Artix Linux Forum

General Category => Discussion about Artix => Topic started by: fire on 02 June 2022, 02:18:07

Title: MDADM RAID1 Array Broke when Upgrading Kernel 5.18
Post by: fire on 02 June 2022, 02:18:07
I setup a software (mdadm) RAID1 array on kernel 5.15 following the archwiki guide. Since upgrading to kernel 5.18 the virtual drive fails to mount on boot and the 'md#' partitions are gone when I run lsblk.

Predictably,
# mdadm --assemble --scan
prints: mdadm: unexpected failure opening /dev/md127

I thought maybe adding 'mdadm_udev' to the mkinitcpio.conf hooks and regenerating initramfs might help but it did nothing.

I'd expect I could downgrade my kernel and modules but was wondering if it looks like I did anything wrong or there was something else I could do.

Any help is appreciated.
Title: Re: MDADM RAID1 Array Broke when Upgrading Kernel 5.18
Post by: fire on 02 June 2022, 02:29:50
I'm not sure if this is relevant, Ive removed nvidia-bl and regenerated initramfs.

From '/var/log/pacman.log'
[2022-06-01T18:08:30-0400] [ALPM] running '70-dkms-install.hook'...
[2022-06-01T18:08:30-0400] [ALPM-SCRIPTLET] ==> dkms install --no-depmod nvidia-bl/18.11.0 -k 5.18.0-artix1-1
[2022-06-01T18:08:32-0400] [ALPM-SCRIPTLET] Error! Bad return status for module build on kernel: 5.18.0-artix1-1 (x86_64)
[2022-06-01T18:08:32-0400] [ALPM-SCRIPTLET] Consult /var/lib/dkms/nvidia-bl/18.11.0/build/make.log for more information.
[2022-06-01T18:08:32-0400] [ALPM-SCRIPTLET] ==> WARNING: `dkms install --no-depmod nvidia-bl/18.11.0 -k 5.18.0-artix1-1' exited 10
[2022-06-01T18:08:32-0400] [ALPM-SCRIPTLET] ==> dkms install --no-depmod nvidia/470.129.06 -k 5.18.0-artix1-1
[2022-06-01T18:09:49-0400] [ALPM-SCRIPTLET] ==> depmod 5.18.0-artix1-1
Title: Re: MDADM RAID1 Array Broke when Upgrading Kernel 5.18
Post by: cat herders of linux on 02 June 2022, 02:37:45
clearly dkms doesn't like the new kernel
Title: Re: MDADM RAID1 Array Broke when Upgrading Kernel 5.18
Post by: fire on 02 June 2022, 02:49:24
I should have checked before posting, unfortunately I was getting those errors in 5.17 while RAID was working.
Title: Re: MDADM RAID1 Array Broke when Upgrading Kernel 5.18
Post by: rayburn on 02 June 2022, 09:54:12

If it is any help, I have a similar RAID 1 setup and report no issues with the 5.18.0 kernel, just the standard kernel that is,
Title: Re: MDADM RAID1 Array Broke when Upgrading Kernel 5.18
Post by: gripped on 02 June 2022, 11:21:58
Unless you have time to spare trying to debug / investigate this I'd suggest just downgrading for now and trying again later. 
I've downgraded back to 5.17 myself for now. For me it's nvidia-vulkan-dkms (AUR) which failed to build with the new kernel.
The reason I'm using that is it's the only way I could find to get Far Cry 6 running with my Nvidia card. 

Saw the problem and just downgraded straight away and added linux and linux-headers to IgnorePkg in /etc/pacman.conf
Code: [Select]
IgnorePkg   = linux linux-headers
You get a warning every time you do a system update so eventually I'll get round to trying the newer kernel again. I imagine nvidia-vulkan-dkms just needs a patch so I'll monitor that.

TLDR:
Downgrade for now. Life's too short.
Title: Re: MDADM RAID1 Array Broke when Upgrading Kernel 5.18
Post by: fire on 02 June 2022, 18:26:17
If it is any help, I have a similar RAID 1 setup and report no issues with the 5.18.0 kernel, just the standard kernel that is,
Interesting thanks.

TLDR:
Downgrade for now. Life's too short.
Thanks I've downgraded for now too.