I use OMV to host applications and TrueNAS to host storage.
I know this is not as simple as would be ideal, But I love the way the docker compose OMV add in works. Similarly I love the maturity of the ZFS storage options in TrueNAS. Apps need access to the storage, and NFS is usually the way to go for remote storage with linux to linux, thus I am trying to remotely mount TrueNAS NFS shared in OMV via the remote mount plugin.
on the TrueNAS side the folder structure looks like this (stolen from best practices guides)
/mnt/hddpool/data/ is the root and I have three folders inside it.
/mnt/hddpool/data/usenet
/mnt/hddpool/data/torrents
/mnt/hddpool/data/media
inside each of these folders is a a series of other folder such as
/mnt/hddpool/data/media/tv
/mnt/hddpool/data/media/music
the important folders here are
/mnt/hddpool/data is media:media drwxrwxr-x
/mnt/hddpool/data/torrents is qbittorrent:media drwxrwxr-x
/mnt/hddpool/data/usenet is sabnzbd:media drwxrwxr-x
/mnt/hddpool/data/media is media:media drwxrwxr-x
/mnt/hddpool/data/media/books is media:media drwxrwxr-x
/mnt/hddpool/data/media/tv is sonarr:media drwxrwxr-x
/mnt/hddpool/data/media/music lidarr:media drwxrwxr-x
I have NFS shares on trueNAS created for ALL of these folders and as far as I can see created equally. I did this for troubleshooting and to get working. in the end I want to claw it back to only what is actually required.
from the OMV side
if I remote mount /mnt/hddpool/data All I see is three empty folder (media,torrents,usenet)
if I remote mount /mnt/hddpool/data/torrents I see the full folder structure, all files and folders that exist there
if I remote mount /mnt/hddpool/data/usenet I see the full folder structure, all files and folders that exist there
if I remote mount /mnt/hddpool/data/media/books I see the full folder structure, all files and folders that exist there
if I remote mount /mnt/hddpool/data/media/tv I see the full folder structure, all files and folders that exist there
if I remote mount .... anything .... other than the /data root .. I have access
since I use the same ID from the OMV side .... I don't understand how this can be explained by permissions to be honest.