I have one large pool shared as NFS. It is mounted on my computer and I can create directories. In the pool I have a ‘media’ dataset with folders ‘movies’ and ‘tvshows’. This media dataset I use to mount to my jellyfin.
Anyways, when I navigate to using ssh/terminal to the media file, my directories ‘movies’ and ‘tvshows’ are not there, When I created a test.txt file using in the terminal, it doesnt show up in the nfs mounted storage. Why is this? I wanted to allow additional users to sftp and add media to my media dataset but now I can’t.
I have read that each dataset is its own file system, so it sorta makes sense. It just is very unintuitive how I can navigate to same directory either in the nfs mounted share or the cli and have completely different file structure.
For examples I can create a test.txt using the cli in pool/dataset/
but if I go to my nfs share which is mounted from pool, I will never see it.
Is there a source you could point me to that explains this more in depth?
Put simply, an NFS mount does not mount child datasets.
Thus you see directories that are in the parent dataset, not actually the child dataset, and the confusion comes from those directories being overlayed/obscured by the child dataset on the truenas host.
If you have nested datasets, and you are NFS mounting the parent dataset, you need to export each dataset as a separate nfs share, and mount each nfs share separately.