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

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.

argaiv1194

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:-


Syntax:- share -F nfs -o rw /shared_directory
Prompt:/> share -F nfs -o rw /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 you have to enable the NFS server by typing the following command:-

Prompt:/> svcadm -v enable -r network/nfs/server

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

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.

Syntax:- server:/shared_directory - /mount_directory nfs - yes rw,soft
Prompt:/> 10.168.0.70:/base - /mount nfs - yes rw,soft

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