OpenWrt Forum Archive

Topic: trying to compile and run mdadm

The content of this topic has been archived on 27 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hi! I'm a noob wrt OpenWrt

I've been working on this for more than my wife will let me and I'm stuck. I'm trying to run mdadm on my TL-WDR3600 (ar71xx arch, CC from imagebuilder)

I have a couple of questions:
- I compiled mdadm using trunk, it compiled successfully (ipk was generated), but failed when making package/index because of a missing host dependency (usign) I'm hoping that will be OK and that the default CC version doesn't expect signed packages.
- When I installed the package on the router. It installed "successfully". Binary is there. But I can't seem to run it:

root@OpenWrt:~# which mdadm
/sbin/mdadm
root@OpenWrt:~# `which mdadm`
-ash: /sbin/mdadm: not found
root@OpenWrt:~# ls -l `which mdadm`
-rwxr-xr-x    1 root     root        228901 Jan 16 12:15 /sbin/mdadm
root@OpenWrt:~# 

My theories are:
- mdadm expect some kernel module that's not installed
- I somehow screw things up when building.

Any help is welcome smile

Ytrium wrote:

- mdadm expect some kernel module that's not installed

It does, easily a dozen and counting.

$ lsmod
[...]
async_raid6_recov       5702  1 raid456
async_memcpy            1918  2 raid456,async_raid6_recov
async_pq                4996  2 raid456,async_raid6_recov
async_xor               3617  3 async_pq,raid456,async_raid6_recov
async_tx                2134  5 async_xor,async_pq,raid456,async_memcpy,async_raid6_recov
xor                    10424  1 async_xor
raid6_pq              100416  3 async_pq,raid456,async_raid6_recov
libcrc32c               1298  1 raid456
[...]
raid0                   6697  0
multipath               5879  0
linear                  3512  0
dm_mod                 89153  37
raid1                  27652  1
md_mod                105487  7 raid1,raid10,multipath,linear,raid0,raid456
[...]

Awesome...will try that.

The discussion might have continued from here.