Md_mod (SW RAID) module is missing in linux distribution

I have Khadas VIM board with Ubuntu Server Bionic 4.9 arm64 installed.

I want to turn on RAID1 to mirror two drives, but apparently this module is missing:

modprobe: FATAL: Module md_mod not found in directory /lib/modules/4.9.40
mdadm: Fail create md0 when using /sys/module/md_mod/parameters/new_array
mdadm: unexpected failure opening /dev/md0

Is there any way to install this module?

Thanks

Hello x_arrange,

If you are a developer, you can use Fenix to rebuild the kernel with md_mod support.

If not, I will provide you a image to test. I will feedback here.

Thanks.

that would be great, thank you

Hello x_arrange,

Try to update the kernel with RAID support:

khadas@Khadas:~$ wget https://dl.khadas.com/Firmware/test/debs/linux-image-amlogic-4.9_0.4_arm64.deb
khadas@Khadas:~$ sudo dpkg -i linux-image-amlogic-4.9_0.4_arm64.deb
khadas@Khadas:~$ sudo sync
khadas@Khadas:~$ sudo reboot

After reboot you can install the module:

khadas@Khadas:~$ sudo modprobe raid1

Thanks.

2 Likes

That worked amazing. Thanks again!

Would you please consider adding this module by default in future builds

1 Like

Yes, we will add this module by default in future builds.