The Network File System (NFS) was developed to allow machines to mount a disk partition on a remote machine as if it were on a local hard drive. This allows for fast, seamless sharing of files across a network.
The advantage of NFS today is that it is mature, standard, well understood, and supported robustly across a variety of platforms.
directory machine1(option11,option12) machine2(option21,option22)
| directory | the directory that you want to share. It may be an entire volume though it need not be. If you share a directory, then all directories under it within the same file system will be shared as well. |
|---|---|
| machine | client machines that will have access to the directory. The machines may be listed by their IP address or their DNS address (e.g., machine.company.com or 192.168.0.8). Using IP addresses is more reliable and more secure. |
| option |
|
Caution
/usr/local 192.168.0.1(ro) 192.168.0.2(ro)
/home 192.168.0.0/255.255.255.0(rw)
/share *.mydomain.bt(rw)
/etc/init.d/nfs restart
# ntsysv
The mount point directory on local machine (/mnt/local in the above example) must exist.
# mount shadowman:/mnt/export /mnt/local
The mount point /pub must exist on your machine. After adding this line to /etc/fstab, you can type the command mount /pub at a shell prompt, and the mount point /pub will be mounted from the server.
# device mountpoint fs-type options dump fsckorder
...
server:/usr/local/pub /pub nfs rw 0 0
Copyright © [- SroNey / JohN -]. All rights reserved