Web lists-archives.com

RAID 5 array with journal device does not automatically assemble at boot


I try to get a RAID 5 array to assemble at boot with mdadm:

# mdadm --create /dev/md/test --level=5 --raid-devices=3 --write-journal=/dev/sde1 /dev/sd[bcd]1
mdadm: Defaulting to version 1.2 metadata
mdadm: array /dev/md/test started.
# /usr/share/mdadm/mkconf > /etc/mdadm/mdadm.conf
# update-initramfs -u -k all
update-initramfs: Generating /boot/initrd.img-4.9.0-4-amd64
# reboot

After the reboot:

# mdadm --detail /dev/md/test
mdadm: cannot open /dev/md/test: No such file or directory

This can easily be corrected with:

# mdadm --stop /dev/md127 
mdadm: stopped /dev/md127
# mdadm --assemble --scan
mdadm: /dev/md/test has been started with 3 drives and 1 journal.

The same works as expected when leaving out the journal option "--write-journal=/dev/sde1".

The same issue occurs without a mdadm.conf file:

# rm /etc/mdadm/mdadm.conf
# update-initramfs -u -k all
update-initramfs: Generating /boot/initrd.img-4.9.0-4-amd64

It does not work with the journal option, but it works without.

What am I missing?