You are not logged in.

#1 2017-04-01 01:21:57

khouli
Member
Registered: 2014-12-14
Posts: 70

[SOLVED] 'mdadm: RUN_ARRAY failed: Invalid argument', creating RAID0

I'm trying to create a RAID0 from two identical hard disks. The disks are /dev/sdc and /dev/sdg.

I partitioned each disk with gdisk. This is the partition table print:

Disk /dev/sdc: 976773168 sectors, 465.8 GiB
Logical sector size: 512 bytes
Disk identifier (GUID): 34188C22-446D-4BE5-9E25-A03A9603EC33
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 976773134
Partitions will be aligned on 2048-sector boundaries
Total free space is 2014 sectors (1007.0 KiB)

Number  Start (sector)    End (sector)  Size       Code  Name
   1            2048       976773134   465.8 GiB   FD00  Linux RAID

Here's how I'm trying to create the array.

Zero superblock on each disk:

mdadm --zero-superblock /dev/sdc1
mdadm --zero-superblock /dev/sdg1

Create the array:

mdadm --create --verbose --level=0 --metadata=1.2 --raid-devices=2 /dev/md1 /dev/sdc1 /dev/sdg1

But mdadm reports errors:

mdadm: chunk size defaults to 512K
mdadm: Defaulting to version 1.2 metadata
mdadm: RUN_ARRAY failed: Invalid argument

I do still end up with a device at /dev/md1 (doesn't seem like I can activate it) so in between attempts I remove it:

mdadm --stop /dev/md1
mdadm --remove /dev/md1

The only advice I can find online is:

If you receive an error, such as:

"mdadm: RUN_ARRAY failed: Invalid argument"

make sure your kernel supports (either via a module or by being directly compiled in) the raid mode you are trying to utilize.

I'm using a 'stock' arch kernel and I believe it does support RAID0 but I don't know how to verify that.

Thoughts? Other info I should share?

Thanks.

EDIT: Cross-posted on stackoverflow: http://unix.stackexchange.com/q/355895/67136

Last edited by khouli (2017-04-04 16:03:22)

Offline

#2 2017-04-04 16:07:59

khouli
Member
Registered: 2014-12-14
Posts: 70

Re: [SOLVED] 'mdadm: RUN_ARRAY failed: Invalid argument', creating RAID0

The directory '/lib/module/$(uname -r)' was missing so the RAID0 module couldn't load. I'm not sure, but maybe a kernel update caused this by removing the module directory for the still running kernel?

Offline

Board footer

Powered by FluxBB