Sunday, December 16, 2012

HOW TO SHARE DIRECTORY ON SOLARIS


To minimalize file system usage, usually we share folder contain general file (like source installation, etc) using NFS in order to use in another server.
Below is command that I use in Solaris 10

On NFS Server :
#share -F nfs -o rw,anon=0 /shared_directory
Example :
#share -F nfs -o rw,anon=0 /abcde/test

Verify shared directory
#share

On NFS Client :
First, create directory on NFS Client (another server) then mount sharing directory on local server
# mkdir  new_directory
# mount -F nfs ip_address_of_NFS_Server:/sharing_directory   /directory_on_client

Example :
# mkdir /share_test
# mount -F nfs 10.10.10.10:/abcde/test /share_test

Note : in other case you can specify specific server or user on the NFS client who permit to access sharing folder

No comments:

Post a Comment