Sorry we lost some posts because of database errors!

*New 12.1 series Release:
2020-09-01: XigmaNAS 12.1.0.4.7728 - released

*New 11.4 series Release:
2020-08-27: XigmaNAS 11.4.0.4.7718 - released!


We really need "Your" help on XigmaNAS https://translations.launchpad.net/xigmanas translations. Please help today!

Producing and hosting XigmaNAS costs money. Please consider donating for our project so that we can continue to offer you the best.
We need your support! eg: PAYPAL

[solved] Errors acessing zfs share mounted with NFSv4

Network filesystems.
Forum rules
Set-Up GuideFAQsForum Rules
Post Reply
Knappe
experienced User
experienced User
Posts: 76
Joined: 08 May 2015 08:46
Status: Offline

[solved] Errors acessing zfs share mounted with NFSv4

#1

Post by Knappe »

Code: Select all

mount -t nfs -o vers=4 192.168.10.xx/ /Volume/nfs_share
and /var/etc/exports
V4: /mnt/ZFS_Pool -network 192.168.10.0 -mask 255.255.255.0
/mnt/Backup1 -maproot=root -network 192.168.10.0 -mask 255.255.255.0
/mnt/Backup2 -maproot=root -network 192.168.10.0 -mask 255.255.255.0
Create a new file on this share as a user from the client results in
Permission denied
and as a root
Unknown error: 10020
Sharing and accessing a NON ZFS-share via NFSv4 without problems.
Accessing the ZFS share via AFP or SMB also no problem.
No infos in the N4F logs (syslog, daemons, auth...)

So I changed the "Access Restriction" in the ZFS Dataset to group "staff" but without luck.


Any help is appreciated !
Last edited by Knappe on 06 Mar 2017 19:59, edited 1 time in total.

Knappe
experienced User
experienced User
Posts: 76
Joined: 08 May 2015 08:46
Status: Offline

Re: Errors acessing zfs share mounted with NFSv4

#2

Post by Knappe »

[solved]
my mistake was the definition of the "V4: /" row in the "/var/etc/exports".

For accessing an nfs share via an nfs4.1 client it´s only neccessary to create min. 1x "share" as the V4 main/root path.
In the GUI you have to mark the checkbox "Specified path is NFSv4 root directory".
Bildschirmfoto 2017-03-06 um 18.55.18.png
In the above example the root is "/mnt" and is equivalent with "/" in nfs4.1 client.

All definitions of the other shares are made as before (no difference between the nfs versions 3/4).

Accessing the nfs share via nfs4.1 client:

Code: Select all

mount_nfs -o vers=4 192.168.x.xx:/share1 /Volumes/nfs_share1
or nfs3 client:

Code: Select all

mount_nfs -o vers=3 192.168.1.24:/mnt/share1 /Volumes/nfs_share1

To check which version your client is connected to

Code: Select all

nfsstat -m

P.S. the parameter "alldirs" in the gui seems to have no meaning in V4 and is slightly irritating
You do not have the required permissions to view the files attached to this post.

Post Reply

Return to “NFS”