Setup NFS on Solaris 10
What is NFS?
NFS stands for Network File System, a file system developed by Sun Microsystems, Inc. It is a client/server system that allows users to access files across a network and treat them as if they resided in a local file directory.
Suppose you want to share a directroy in Solaris 10. suppose it is /data directory. Following is the procedure to share that directory.
1. Start the NFS service on the server
# svcadm -v enable -r network/nfs/server
2. Run the command to share the /data directory
# share -F nfs -o rw /data
3.This will not work after reboot. In order to make it work after reboot we have to edit /etc/dfs/dfstab
# vi /etc/dfs/dfstab
share -F nfs rw /data
Save and quit
4. Next run the command from client to mount the directory
# mkdir /data
# mount -F nfs server:/data /data
So now you are ready to access the /data directory.
5 . This will not work after reboot. In order to make it work after reboot edit /etc/vfstab file
# vi /etc/vfstab
server:/data – /data nfs – yes rw,soft
Save and quit.

Leave a Reply