RAID support with NanoPI-M4 + SATA HAT
Posted: Fri Jun 28, 2019 8:43 am
I recently got my hands on the SATA HAT, and I tried creating a software raid using two 2TB drives. However, I quickly ran into some issues with the command on Linux. The issue comes when I try to create the raid device:
The core issue is that the md_mod module is not included in the kernel supplied with FriendlyCore. Has anyone else encountered this problem, and managed to solve it? I'm not extremely well-versed when it comes to building custom kernels, but if that is the way to go I could look into it. Is there another way to create software raid on NanoPI-M4?
Code: Select all
mdadm
Code: Select all
sudo mdadm --create --verbose /dev/md0 --level=0 --raid-devices=2 /dev/sda1 /dev/sdb1
mdadm: chunk size defaults to 512K
modprobe: FATAL: Module md_mod not found in directory /lib/modules/4.4.143
mdadm: Fail create md0 when using /sys/module/md_mod/parameters/new_array
mdadm: unexpected failure opening /dev/md0
The core issue is that the md_mod module is not included in the kernel supplied with FriendlyCore. Has anyone else encountered this problem, and managed to solve it? I'm not extremely well-versed when it comes to building custom kernels, but if that is the way to go I could look into it. Is there another way to create software raid on NanoPI-M4?