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
The new sharemgr(1M) is your friend. To use your example, you'd just have to:
sharemgr share -F nfs -p /export/home1Thats 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 #