Single NFS share with multiple datasets

Constantin.FF

Dabbler
Joined
Apr 6, 2022
Messages
13
Hello everyone

I am running the latest TrueNAS Scale (22.02.0.1)

And I am hitting some error or limitation of NFS shares.
Here is my dataset layout:
— pool
—— media -> re, NFS shared
——— Movies -> rwe
——— Photos -> rwe
——— TV-shows -> rwe
——— Music -> rwe

I am using the basic Permissions and for media dataset Other have permission for Read | Execute
and the child datasets have Read | Write | Execute

And the media dataset is NFS shares

What I expect was to be able to mount the media share, with no access to write into it, but to be able to browse the child folders and write to them.

I mounted the media share and I can see the child datasets, also no write access directly to media
but also I dont get write access inside the child folders.

Do I miss something?

I have tested to give Write access to the media dataset, and I was able to write successfully.
 

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
NFS is fundamentally per-filesystem. That means per dataset in the ZFS context. You need to share and mount each dataset individually.
 

Constantin.FF

Dabbler
Joined
Apr 6, 2022
Messages
13
I have created only the media dataset with read, execute permissions
and created the child folders with
Code:
mkdir Movies && chmod 777 Movies


It got the expected result, but dont know if there might be some unexpected problems
 

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
No - folders can be shared with a single NFS share. No problems to be expected. Only that you cannot snapshot/replicate/etc. your folders individually, since all these ZFS features also work on the dataset level.
 
Top