|
Solaris 10 NFS server (daemon) configuration for sharing directories and files across the network.
First thing to do is make sure the NFS server is running: # svcs network/nfs/server
If it's not running (STATE is offline) then:
# svcadm enable -r nfs/network/server # svcadm enable -s nfs/network/server # svcadm restart nfs/network/server
Check it again with: # svcs network/nfs/server
Now, you will need to add the share to the /etc/dfs/dfstab file: # edit /etc/dfs/dfstab

This will drop you at the end of the file, so go into insert mode (press i), add the line:
:share -F /vol1/shared <ENTER> . <ENTER>
That last line is a dot (period) by itself. Now to save and quit: :wq <ENTER>

Alert the NFS server to look at the dfstab file with: # share -F nfs
You can check the active exported directories with: # share
Done.
|