A folder which is
available in host1 called " /data" is to be shared in
network and host2 machine on network
want to mount the "/data" folder which is shared in host1 as a
local file resource.
Step : 1
Share the "/data" folder in host1.
Edit the file /etc/dfs/dfstab for permanent sharing
share -F
nfs /data
Step : 2
Start
the NFS Server daemons on NFS server (
host1)
# /etc/init.d/nfs.server
start
Step : 3
Verify the folder "/data" is shared in host1
# dfshares
Step : 4
Create a Local mounting point in
host2 .
Step : 5
Mounting the "/data" in NFS client ( host2 ) .
Edit the file /etc/vfstab for permanent entry
host1:/data
-
/data
nfs
-
yes
soft,bg
Step : 6
Restart host2 and verify it is mounted
# mount
More
: Sharing a
Software using NFS
( Solaris
Topics)