I decided to build up my own fileserver rather than using one of the packaged ones. It runs 10.2 with the default filesystem for the o/s and a 3-way ZFS mirror for the files that are served.
Now I want to add NFS, but there seems to be a lot of confusion about how to do that when ZFS is in the mix.
Am I right in thinking that I can simply ignore the "zfs-ness" and put all the export information into /etc/exports, e.g.
/foo -allfiles 192.168.0.
where foo is the ZFS subtree to be shared, and 192.168.0. is the subnet that can attach it.
Do I have to do anything more exciting than that? I'm intentionally not doing maproot at this point, and I have /etc/rc.conf set up with
Now I want to add NFS, but there seems to be a lot of confusion about how to do that when ZFS is in the mix.
Am I right in thinking that I can simply ignore the "zfs-ness" and put all the export information into /etc/exports, e.g.
/foo -allfiles 192.168.0.
where foo is the ZFS subtree to be shared, and 192.168.0. is the subnet that can attach it.
Do I have to do anything more exciting than that? I'm intentionally not doing maproot at this point, and I have /etc/rc.conf set up with
Code:
rpcbind_enable="YES"
nfs_server_enable="YES"
nfs_client_enable="YES"
mountd_enable="YES"
mountd_flags="-r"