NFS sharing permission issue with child dataset?

whc2001

Cadet
Joined
Mar 2, 2023
Messages
3
I have a dataset with two child datasets running on TrueNAS-13.0-U4. The parent and child datasets have the same user/group and ACL settings. When I share the parent dataset by SMB, the two child datasets appear to be two standard directories, and I can read and write them without problem when authenticating with the user in the ACL. However, when I export the parent dataset with NFS and mount it from another machine running Debian, there is a permission issue regarding the two child datasets.

When I log in with root on the client, the mounted directory is all good, just like with SMB. And the two child dataset directories are functional. I also have another regular account on that machine, which is the account that will be using the mounted data. When I run ls -la from the mount directory under that account, however, all the information regarding the two child dataset directories becomes all question marks and cannot be accessed.

I wonder if that's some limitation of NFS? Should I just use SMB instead?

Here are some images of the settings and the permissions:

1677814497740.png


1677814223178.png
 

Attachments

  • 1677814265967.png
    1677814265967.png
    4.2 KB · Views: 98
  • 1677814464987.png
    1677814464987.png
    5.8 KB · Views: 130

whc2001

Cadet
Joined
Mar 2, 2023
Messages
3
Well seems like no one is being helpful at all and I eventually figured this out. Firstly NFS won't work if NFSv4 is turned on so turn off it in the service config. After that each pool (including sub pool) need a separate NFS share. Finally on the target machine each NFS share need a separate fstab entry.
 

whc2001

Cadet
Joined
Mar 2, 2023
Messages
3
Something like this, not sure why the group ID is 9000 but it works.
 

Attachments

  • 1680283843843.png
    1680283843843.png
    8.4 KB · Views: 142
  • 1680283874286.png
    1680283874286.png
    6.3 KB · Views: 138
  • 1680283892185.png
    1680283892185.png
    6.8 KB · Views: 127
Top