|How to Configure NFS on HP-UX|
|How to - Linux|
This tutorial is all about configuring a NFS datasource on HP-UX. In NFS, the data is stored in a centralised server called the NFS server and we access the data from the NFS client by mounting a disk of the NFS server on the NFS client. Here is step by step method of configuring an NFS datasource on HP-UX.
Here "node" means a system/PC. Suppose we have 3 systems (all HP-UX systems) -- one NFS server and 2 nodes 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 nodes (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 following line and save it.
The file is read only so we have to change the permissions to read/write using the command:-
Now we have to stop and start the NFS service on the server for the changes to take effect. Go to the NFS server and type the following commands.
To stop the NFS service type the following at the prompt.
To start the NFS service type the following at the prompt.
Now mount the datasource from the node from which you want to access data on the server.
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.