Hi T-Daemon,
just wanted to let you know that your advice to invoke the-o nfsv4
fixed the peskyerror, and replaced it withCode:RPCPROG_MNT: RPC: Timed out
Code:mount_nfs: nmount: /mnt: Permission denied
I will try to figure it out; just to reiterate my steps, in case someone spots whether I am making any other moronic error:
The server has an IP address XXX.XXX.XXX.111. To allow mounting only on a client with IP address XXX.XXX.XXX.110, I set:zfs set sharenfs='rw=XXX.XXX.XXX.110' pool/filesystem
on the server, and verify that the property was set:zfs get sharenfs pool/filesystem
Then on the client I issue (as a root):mount -t nfs -o nfsv4 XXX.XXX.XXX.111:/pool/filesystem /mnt
, and promptly receive the aforementioned error.
Kindest regards,
M
You are getting the error because you haven't set a NFSv4 root point, and are using the incorrect mount path for the NFS share.
I'm speaking here for ZFS "sharenfs" set file systems (data sets).
There are two required configurations to set for using NFSv4 on FreeBSD to export ZFS file systems (data sets).
1 - Set in /etc/rc.conf
Code:
nfs_server_enable="YES"
nfsv4_server_enable="YES
# optional
# nfsv4_server_only="YES"
2 - A single NFSv4 root point in the local file system for the exported ZFS file system, set in /etc/exports
From nfsv4(4):
The NFSv4 protocol does not use a separate mount protocol and assumes
that the server provides a single file system tree structure, rooted at
the point in the local file system tree specified by one or more
V4: <rootdir> [-sec=secflavors] [host(s) or net]
Example: The zroot/sharenfs/share1 ZFS file system (data set) mounted on /sharenfs/share1 should be exported, then the root point of the NFSv4 share must be set in /etc/exports as:
Code:
V4: /sharenfs
After editing the file, depending if you have
mountd_enable="YES"
set, execute service mountd restart|onerestart
Note: ZFS "sharenfs" doesn't require mountd(8) set in rc.conf, we restart or onerestart it to reread /etc/exports.
To export the ZFS file system:
zfs set sharenfs="x.x.x.110" zroot/sharenfs/share1
To mount from client:
mount -o nfsv4 x.x.x.111:/share1 /mnt
Notice the /path in server:/path is set relative to the NFSv4 root point /sharenfs.