On 16/02/18 10:17, Sean Caron wrote:
It's interesting that everyone has reported nested mdadm arrays
starting automatically. Is there something special in mdadm.conf to
enable this? I was starting to suspect mdadm only does a single pass
when trying to auto-start arrays, but everyone's reports make me
wonder if I'm just not configuring something quite right.
I've just checked onne of my Ubuntu 14 VMs and it still uses
initramfs-utils. Try this :
Boot with break=top on the kernel cmd line. That'll drop you into the
initramfs at the point where all your modules should be loaded but the
scripts in /scripts/local-top/ haven't been executed yet. You can then
run them manually (in the order specified in the ORDER file). Run the
mdadm script with sh -x mdadm and watch what it does.
I'm using a Devuan Jessie (so basically a Debian Jessie without systemd)
system on my test box.
test:/# mdadm --version
mdadm - v3.3.2 - 21st August 2014
Here's the current mdadm.conf :
test:/# cat /etc/mdadm/mdadm.conf
ARRAY /dev/md/1 metadata=1.0 name=unset:1
UUID=ab86019d:ffa93771:2091569f:726abaae
ARRAY /dev/md3 metadata=1.2 name=test:3
UUID=dbbca7b5:327751b1:895f8f11:443f6ecb
ARRAY /dev/md4 metadata=1.2 name=test:4
UUID=1153a2e1:dc24b66d:45e319b3:333b6285
ARRAY /dev/md/2 metadata=1.2 name=unset:2
UUID=84c30044:f3e879cd:6e492af6:f192b576
MAILADDR root
test:/# cat /proc/mdstat
Personalities : [linear] [raid0] [raid1] [raid10] [raid6] [raid5] [raid4]
md2 : active raid1 md4[2](W) nvme0n1[3]
243542016 blocks super 1.2 [2/2] [UU]
bitmap: 1/2 pages [4KB], 65536KB chunk
md4 : active raid0 sdf[0]
249927680 blocks super 1.2 512k chunks
md3 : active raid6 sdg[0] sdm[8] sdc[7] sde[6] sdi[5] sdk[4] sdl[3]
sdj[2] sdh[1]
13673684416 blocks super 1.2 level 6, 64k chunk, algorithm 2
[9/9] [UUUUUUUUU]
bitmap: 0/15 pages [0KB], 65536KB chunk
md1 : active raid1 sdb1[2] sda1[3]
524224 blocks super 1.0 [2/2] [UU]
So md2 is a RAID1 made from md4 (a RAID0) and an nvme drive.
I will say over the years I've made some pretty pathological test
configurations with multiple stacks as far as 4 md devices deep and I've
never had an issue with them starting in sequence.
Trace your boot sequence and bring the box up by hand to find out why
it's not auto-starting.
Brad
--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html