Unable to mount NFS directories created via Datasets GUI
Description
Problem/Justification
Impact
Attachments
Activity

William Gryzbowski September 28, 2023 at 1:17 PM
Each dataset is essentially a different filesystem.
If you wish for a share to have several levels of hierarchy you should use directories and not datasets.

Kyle Stagner September 22, 2023 at 4:35 PM
Hey Andrew
Thank you for your prompt reply. And sorry this is my first time really getting my hands into a TrueNAS OS.
Let me know if I am understanding you correctly,
I have granted “root” access to /mnt/Primary/astroHome so that directory is NFS mountable. Datasets controls permissions for the directory “rocky” and allows for user “pitest” to navigate to (in this case rwx) once they mount the parent directory.
However, based on my configuration of NFS (as the icon indicates in the Datasets pane only /mnt/Primary/astroHome is explicitly shared ) user “pitest” does not have the ability to directly mount /mnt/Primary/astroHome/rocky.
Should I wish for my users home directory to be mounted directly with autofs: kylestagner, rocky, pitest, etc. I would need to stop sharing the parent directory /mnt/Primary/astroHome, and move down into it and share each assigned home directory individually.
If I did not understand you correctly is there an article that you can share that goes into more detail as to what you mean?
Thank you again!
Kyle

Andrew Walker September 22, 2023 at 4:01 PMEdited
It is not expected to be able to access child datasets unless they are explicitly exported. You’re looking at mountpoints.

Kyle Stagner September 22, 2023 at 4:01 PM
Hello,
Attached is the requested debug file

Automation for Jira September 22, 2023 at 3:52 PM
Thank you for submitting this TrueNAS Bug Report! So that we can quickly investigate your issue, please attach a Debug file and any other information related to this issue through our secure and private upload service below. Debug files can be generated in the UI by navigating to System -> Advanced -> Save Debug.
https://ixsystems.atlassian.net/servicedesk/customer/portal/15/group/37/create/153
Details
Details
Assignee

Reporter

Hey Team
After much testing, I narrowed the issue down to datasets created via the GUI will not mount on Rocky 9. However, going through the shell and using mkdir and chown, I can create mountable directories in the same NFS sub folder directory space. Datasets created via the GUI mount on the client with root:root ownership instead of the ownership assigned to them in the GUI and also reported out via the shell with ls -la.