To share an nfs share in Solaris 10 modify the /etc/dfs/dfstab file and add the following share command
share -F nfs ro=192.168.111.10/32 /dir/to/share
You can specify and IP/netmask to share. In this case we are sharing nfs read only in solaris 10. After adding this to the /etc/dfs/dfstab file you will need to restart the nfs service
svcadm restart nfs/server
You can verify the service is online and no mistakes were made by performing
svcs | grep "nfs/server"
Now you can see the nfs share is being shared by doing
cat /etc/dfs/sharetab
It should be listed in that file and exported.
Leave a Reply
You must be logged in to post a comment.