|How to Configure NFS on Solaris 10|
|How to - Linux|
This post is about configuring NFS datasource on a Solaris 10 system. In NFS, the data is stored in a centralised server called the NFS server and we access the data from NFS client. Here is step by step method of configuring an NFS datasource on Solaris 10.
Its basically about configuring the NFS client and the server.It is similar to configuring NFS datasource on HP-UX, only the commands for starting and stopping the NFS server differs from OS to OS. Suppose we have 3 systems (all Solaris 10 systems) -- one NFS server and 2 NFS clients in the network from which I will access data on the NFS server. First create a directory on the NFS server (shared directory say "base") and a directory on each the NFS clients (mount directory say "mount"). You can create NFS datasource using just 2 systems by configuring the NFS server on one of the 2 machines. But it is not recommended to have the NFS server and client configured on the same system. Now go to /etc/dfs. There is a file called dfstab. Open the file in vi editor and add the line given below and save it:-
The file is read only so we have to change the permissions to read/write using the command:-
Now you have to enable the NFS server by typing the following command:-
Now mount the datasource from the node from which you want to access data on the server.
But this command will not persist after a reboot. For this to be persistent, you need to add the following command in /etc/vfstab and save it.
Just type "mount" and you can see it mounted. Once you mount the mount directory you can access data in the shared directory on the NFS server. If you want to access data from the other node you have to unmount the directory here and similarly mount it from the other node.