Linux Networking, Part 7: Implementing NFS - page 3
Sharing Data Between Machines
The NFS client support is done using the Linux mount application. The following is a sample command line for mounting an NFS directory:
mount -t nfs -o rsize=1024,wsize=1024 client:/mnt/an/nfs/vol /mnt/nfs
This command explicitly declares the type as NFS (-t nfs). The rsize and wsize options specify buffer sizes that should be multiples of 1024. They can be omitted but larger values reserve larger buffers than may improve performance. Other options allow a directory to be specified as read-only or they can prevent applications in the directory or subdirectories from running.
Dismounting a mounted NFS directory is done using the
umount application. The following would dismount the
Mounting a shared directory can also be done when Linux starts up. In this case, an entry, like the following, is added to the
/etc/fstab file. This file is also used for other file systems as well such as Samba file systems:
# device mountpoint fs-type options dump fsckorder client:/mnt/an/nfs/vol /mnt/nfs nfs rsize=1024,wsize=1024 0 0
The linuxconf program can be used to make modifications to the
The NFS status application is named
nfsstat. It provides details about an NFS server's NFS client and server connection information. Running the application without options displays all information.
Solid state disks (SSDs) made a splash in consumer technology, and now the technology has its eyes on the enterprise storage market. Download this eBook to see what SSDs can do for your infrastructure and review the pros and cons of this potentially game-changing storage technology.
- 1Linux Top 3: Linux Mint Olivia, Fedora 19's Cat and Ubuntu's Mission Accomplished Moment
- 2Linux Top 3: Linux 3.10 Goes Long, Linux 3.11 Advances as LXDE Merges
- 3Why Linux is Super (Computing)
- 4Linux 3.10 Improves Multi-tasking and SSD Caching
- 5Linux Top 3: Linus Lashes out, Linux 3.14 Gets PIE and Ubuntu One is Done.