I've setup an XU4 with Debian Stretch, established a software RAID 0 (2x WD red 4 TB with USB-SATA adapters). Mount this on boot via fstab with
/dev/md0 /mnt/md0 ext4 defaults,nofail 0 0
and setup a SAMBA server. All works fine.
Until I need to reboot. Then the samba server starts and looks OK (systemctl status smbd shows "Active (running)" and the start time point is shown after the reboot time. But the share is not reachable on the network.
When I do at this point
systemctl restart smbd
the share is available at the same second. In dmesg I have no warning, errors or something related to smbd etc.
nmbd and smbd logs show no errors.
Is it possible that the md0 is not ready when the samba starts? But why doesn't samba simply serve the /mnt/md0 directory?
What can I do to make the samba share come up on reboot automatically? Was never an issue on other samba server (opensuse, raspbian stretch).