To enable the NFS service run the following command
# svcadm -v enable -r network/nfs/server
To share /packages directory
# share -F nfs -o rw /packages
The above command is mainly used fro temporary sharing and it will not persist on reboot. To make the share persist on the reboot do the following.
# nano /etc/dfs/dfstab
share -F nfs -o rw /packages
save the file
To mount the share from a remote machine.
Login to the client
# mount -t your nfsserver:/package /mnt
##########To restart the NFS server################
# /etc/init.d/nfs.server stop
# /etc/init.d/nfs.server start
######## To disable NFS server#####################
# svcadm -v disable -st network/nfs/server
No comments:
Post a Comment