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: RHEL 6.7, BackBox Linux 4.3 and RoboLinux 8.1
- 2Linux Top 3: SLES 11 SP4, Chromixium OS 1.5 and Canonical Licensing
- 3Linux Top 3: VirtualBox 5, Point Linux 3.0 and OpenSUSE Leap 42.x
- 4Linux Top 3: Linux 4.2 rc1, 4MLinux 13 and antiX15
- 5Linux Top 3: Linux Mint Rafaela, OpenMandriva Lx 2014.2 and VectorLinux 7.1