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: GNOME 3.12 and New Betas for Ubuntu 14.04 and OpenMandriva Lx 2014.0
- 2Linux Top 3: Linus Lashes out, Linux 3.14 Gets PIE and Ubuntu One is Done.
- 3Linux Top 3: Ubuntu 14.04, Debian Gives Squeeze More Life and Red Hat Goes Atomic
- 4Linux Top 3: CoreOS, Oracle Enterprise Linux 7 and Ubuntu 14.10
- 5Linux Top 3: Debian Gives Up on Upstart, Ubuntu and Linux Kernel Updates