How to share a directory on Solaris ? (Mounting a Solaris directory)

How to create a shared directory in Solaris to be accessible from other nodes in the network ?
Or
How to mount a directory to be accessible from other machines ?
Log in to Solaris machine where you want to share a directory.
In the below example you want to  share "/export/home/builds" directory located on 172.22.23.58.And once is shared you are mounting it on to "/share" directory of another machine.
Note : We have to create an empty directory named "share" under "/" on the machine where we are running the mount to command.
  • Share the directory in the local system
Open the /etc/dfs/dfstab file 

enter: share -F nfs -o rw,anon=0 /export/home/builds

save and exit
  • Execute shareall command
  • Use share command to check the directories shared               
  • Restart the nfs server(Not mandatory)
/etc/init.d/nfs.server stop
       /etc/init.d/nfs.server start
  • Open other system where you need to mount 
  • Execute mount -F nfs 172.22.23.58:/export/home/builds /share command (to mount the /export/home/builds folder in /space) 
Useful links [1] [2] [3] [4]


0 comments to "How to share a directory on Solaris ? (Mounting a Solaris directory)"

Post a Comment

Whoever writes Inappropriate/Vulgar comments to context, generally want to be anonymous …So I hope U r not the one like that?
For lazy logs, u can at least use Name/URL option which doesn’t even require any sign-in, The good thing is that it can accept your lovely nick name also and the URL is not mandatory too.
Thanks for your patience
~Krishna(I love "Transparency")

Popular Posts

Enter your email address:

Buffs ...

Tags


Powered by WidgetsForFree

Archives