Davis' Weblog

       
 

Steps Sharing NFS directories


I have a hard time remembering steps to configure an NFS sharing directory. Every time having a new machine, I have to go back to my note and search for the page which lists the steps below:

1. cd /etc/dfs
2. vi dfstab file and add the sharing directory (eg sharing NFS directory is /export/home1 then the syntax would be)
share -F nfs /export/home1
3. Execute command /usr/sbin/shareall
4. cd /etc/init.d and execute command
./nfs.server stop/start

--------------------------------------------------------------------------------------------------------------

Many thanks to Sean who just told me that all the commands above are being replaced with just one command:
sharemgr share -F nfs -p /export/home1

Posted by davisn @ 02:39 PM PDT [ Comments [1] ]
 
 
 
 
Trackback URL: http://blogs.sun.com/davisn/entry/steps_to_share_nfs_directories
Comments:

You know that _all_ of those commands there are being replaced with just one ?

The new sharemgr(1M) is your friend. To use your example, you'd just have to:

      sharemgr share -F nfs -p /export/home1
Thats it. The editing of dfstab, the starting of nfs server, all done. BTW, using <tt>/etc/init.d/nfs.server</tt> is rather old, you using Solaris 10 ?

Posted by Sean on May 17, 2007 at 03:27 PM PDT #

Post a Comment:

Name:
E-Mail:
URL:

Your Comment:

HTML Syntax: NOT allowed
 
« November 2009
SunMonTueWedThuFriSat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
     
       
Today

[RSS Newsfeed]

Valid XHTML or CSS?

[This is a Roller site]
Theme by Rowell Sotto.
 
© Davis' Weblog