Quick post on NFS and sharing filesystem from one server to another.
Key files and commands for this activity:
- /etc/dfs/dfstab
- share (command)
- shareall
The only problem I got in following the below instruction is Permission denied on the shared directory/filesystem from the remote Solaris server.
Temporary fix chmod to 777.. check for security later 🙂
To be able to share a remote filesystem you have to share the remote filesystem.
To share the remote filesystem you need to modify
the /etc/dfs/dfstab file withshare -F nfs -o rw /var/tmp/oracle
also modify the /etc/dfs/sharetab with
/var/tmp/oracle nfs rw
then issue
shareallmake sure nfs daemon are running of the server
you could check by isseingps -ef | grep nfs
if it is not running you could start nfsd by issuing /etc/init.d/nfs.server start
svcadm enable nfs
on the client side, that is the side with no disk space
you need to mount the remote filesystem you could do this by issuingmount (remote server):/usr/local /mount_point
Note:
/var/tmp/oracle will be the filesytem you intend to share eg / /usr/local, /var, /export/homeso if you intend to share /usr/local your /etc/dfs/dfstab will look like
share -F nfs -o rw /usr/local
and /etc/dfs/sharetab will look like
/usr/local nfs rw