NFS
From pressy's brainbackup
NFS@11.1+
With Solaris 11.1 the NFS share syntax and property names were changed.
# zfs create -o mountpoint=/sharetest \ > -o share.nfs=on \ > -o share.nfs.anon=0 \ > -o share.auto=on \ > data/sharetest # share IPC$ smb - Remote IPC data_sharetest /sharetest nfs anon=0,sec=sys,rw
# zfs share=name=SHARE,\ > desc="SHARE",\ > path=/SHARE,\ > prot=nfs,anon=0,sec=sys,rw=@10.126.123.123:@10.126.123.124 \ > storage_pool/SHARE # zfs set share.nfs=on storage_pool/SHARE
NFS @ 10 & 11 with ZFS
since the NFS sharing is now a part of ZFS, you will also have to set the share options on the filesystem:
# zfs create rpool/export/downloads # zfs set share=zfs set share=name=downloads,path=/downloads,prot=nfs,anon=0 rpool/export/downloads name=downloads,path=/downloads,prot=nfs,anon=0 # zfs set sharenfs=on rpool/export/downloads # share downloads /downloads nfs anon=0,sec=sys,rw ------remove------- # zfs get share rpool/export/downloads NAME PROPERTY VALUE SOURCE rpool/export/downloads share name=downloads,path=/downloads,prot=nfs,anon=0 local rpool/export/downloads share.nfs on local # zfs set sharenfs=off pool/export/downloads # zfs set -c share=name=downloads rpool/export/downloads share 'downloads' was removed. # share # zfs get share,sharenfs rpool/export/downloads NAME PROPERTY VALUE SOURCE rpool/export/downloads share.nfs off local #
Setting up the Server Version
# svcprop svc:/network/nfs/server:default|grep versm nfs-props/server_versmax integer 4 nfs-props/server_versmin integer 2 # sharectl set -p server_versmax=3 nfs # sharectl set -p server_versmin=3 nfs # sharectl set -p client_versmax=3 nfs # sharectl set -p client_versmin=3 nfs # svcadm refresh svc:/network/nfs/server:default # svcprop svc:/network/nfs/server:default|grep versm nfs-props/server_versmin integer 3 nfs-props/server_versmax integer 3 # <client># cd /net/192.168.56.10/downloads <client># nfsstat -m `pwd` /net/192.168.56.10/downloads from 192.168.56.10:/downloads Flags: vers=3,proto=tcp,sec=sys,hard,intr,link,symlink,acl,rsize=32768,wsize=32768,retrans=5,timeo=600 Attr cache: acregmin=3,acregmax=60,acdirmin=30,acdirmax=60