Power & Source of Big Ideas

RAID support with NanoPI-M4 + SATA HAT

Moderators: chensy, FATechsupport

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

Code: Select all

command on Linux. The issue comes when I try to create the raid device:

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?
khrubby wrote:
I'm not extremely well-versed when it comes to building custom kernels

And that's one of the primary reasons why this project started five years ago. Build system outcome is an improved version of FA image.

Latest version was released yesterday https://twitter.com/armbian/status/1144479420242989057

https://github.com/armbian/build/blob/m ... nfig#L1870
This feature will just work.
Thanks for the help! I'll check it out. My hope is to be able to patch overclocking support into the kernel, I'll see how it goes.

Who is online

In total there are 20 users online :: 0 registered, 0 hidden and 20 guests (based on users active over the past 5 minutes)
Most users ever online was 2865 on Sun Nov 10, 2019 5:27 am

Users browsing this forum: No registered users and 20 guests