I am struggling since a while with a problem and I couldn't find any help in mainline wiki, so I hope somebody in the forum can help me.
I am using as a family NAS a PP4 with 4x2TB RAID5 (using an external Sata box) which is holding all the data (the root fs is on an SD card), and I am exporting in NFS some sub-directories below the mount-point of the RAID (e.g. the RAID5 is mounted on /mnt and I want to export /mnt/Video and /mnt/Pictures).
What happens is that, when I reboot the PP4, it takes too long to mount the RAID 5 and when nfsd starts it doesn't find the subdirectories and returns an error message. As a consequence, every time I reboot the machine, I need to remember to log in afterwards and restarts the nfsd daemon.
I am pretty sure there is probably a way to explain systemd to delay the start up of nfsd daemon until the RAID5 is mounted, but I couldn't find it myself.
Any help is much appreciated.
Regards
Guido