NFS Sharing resources from the server
Thursday, December 20, 2007
1. Make sure the share resources is configure in /etc/df/dfstab
# vi /etc/df/dfstab
Edit the files to include the share point of the resources.
Example you are sharing /cdrom/dvd1, the file in /etc/df/dfstab should include
share -F nfs /cdrom/dvd1
Affter editing the file run this command.
# shareall
2. At the remote machine that is accessing the share resources …
To list all the share resources from main server
# dfshares
or alternatively, to show all shared mount point from NFS server
# showmount -e
Mount the share resources
# mount:/cdrom/dvd1 /mount/point/location
example
# mount taufikserver:/cdrom/dvd1 /mnt
3. To unmount dfshare
note: only apply if you could not unmount it.
# /etc/init.d/nfs.server stop
# umount /nfs/share
4. Mount nfs on vfstab
This example take from http://www.scit.wlv.ac.uk/cgi-bin/mansec?4+vfstab
The following are vfstab entries for various file system types supported in the Solaris operating environment.
Example 1: NFS and UFS Mounts
The following entry invokes NFS to automatically mount the directory /usr/local of the server example1 on the client's /usr/local directory with read-only permission:
example1:/usr/local - /usr/local nfs - yes ro
The following example assumes a small departmental mail setup, in which clients mount /var/mail from a server mailsvr. The following entry would be listed in each client's vfstab:
mailsvr:/var/mail - /var/mail nfs - yes intr,bg
# vi /etc/df/dfstab
Edit the files to include the share point of the resources.
Example you are sharing /cdrom/dvd1, the file in /etc/df/dfstab should include
share -F nfs /cdrom/dvd1
Affter editing the file run this command.
# shareall
2. At the remote machine that is accessing the share resources …
To list all the share resources from main server
# dfshares
or alternatively, to show all shared mount point from NFS server
# showmount -e
Mount the share resources
# mount
example
# mount taufikserver:/cdrom/dvd1 /mnt
3. To unmount dfshare
note: only apply if you could not unmount it.
# /etc/init.d/nfs.server stop
# umount /nfs/share
4. Mount nfs on vfstab
This example take from http://www.scit.wlv.ac.uk/cgi-bin/mansec?4+vfstab
The following are vfstab entries for various file system types supported in the Solaris operating environment.
Example 1: NFS and UFS Mounts
The following entry invokes NFS to automatically mount the directory /usr/local of the server example1 on the client's /usr/local directory with read-only permission:
example1:/usr/local - /usr/local nfs - yes ro
The following example assumes a small departmental mail setup, in which clients mount /var/mail from a server mailsvr. The following entry would be listed in each client's vfstab:
mailsvr:/var/mail - /var/mail nfs - yes intr,bg
