Sign in with Facebook
FeedGoogleFacebookTwitterLinkedinTechnorati
Home Tech How To Unix & Linux How to Configure NFS on HP-UX
How to Configure NFS on HP-UX
How to - Linux
Posted by Anand Kahaly in Linux on December 15, 2009  |  0 Comments

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.

side effectsbuy cialis online online viagra generic vs brand buy cialis overnight delivery
argaiv1238

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.

Syntax:- share -F nfs -o rw -d “shared directory” /shared_directory
Prompt:/> share -F nfs -o rw -d “base” /base

The file is read only so we have to change the permissions to read/write using the command:-

Prompt:/> chmod 755 /etc/dfs/dfstab

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.

Prompt:/> /sbin/init.d/nfs.server stop

To start the NFS service type the following at the prompt.

Prompt:/> /sbin/init.d/nfs.server start

Now mount the datasource from the node from which you want to access data on the server.

Syntax:- mount -F nfs server:/shared_directory /mount_directory
Prompt:/> mount -F nfs 10.168.0.70:/base /mount

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.



rssfeed If you found this article helpful, please consider subscribing to Technodope Newsletter.

Enter your email address:

Delivered by FeedBurner

Email Drucken Favoriten Twitter Facebook Myspace Stumbleupon Digg MR. Wong Technorati aol blogger google reddit YahooWebSzenario
 

Subscribe to Technodope Newsletter

Enter your email address:

Delivered by FeedBurner

Post a Job Here for only $10 !!!

 

Sponsored Links

Chronological Archive

Powered by mod LCA