System information
$ l smo d | g rep nfs_l ayo ut_nfsv4 1_fi l es
Another way to verify a successful NFSv4.1 mount is with the mo unt command. The mount entry in
the output should contain mi no rversi o n= 1.
Important
The protocol allows for three possible pNFS layout types: files, objects, and blocks. However
the Red Hat Enterprise Linux 6.4 client only supports the files layout type, so will use pNFS
only when the server also supports the files layout type.
For more information on pNFS, refer to: http://www.pnfs.com.
9.3. NFS Client Configurat ion
The mo unt command mounts NFS shares on the client side. Its format is as follows:
# mo unt -t nfs -o options host: /remote/export /local/directory
This command uses the following variables:
options
A comma-delimited list of mount options; refer to Section 9.5, “Common NFS Mount
Options” for details on valid NFS mount options.
server
The hostname, IP address, or fully qualified domain name of the server exporting the file
system you wish to mount
/remote/export
The file system or directory being exported from the server, that is, the directory you wish to
mount
/local/directory
The client location where /remote/export is mounted
The NFS protocol version used in Red Hat Enterprise Linux 6 is identified by the mo unt options
nfsvers or vers. By default, mo unt will use NFSv4 with mo unt -t nfs. If the server does not
support NFSv4, the client will automatically step down to a version supported by the server. If the
nfsvers/vers option is used to pass a particular version not supported by the server, the mount will
fail. The file system type nfs4 is also available for legacy reasons; this is equivalent to running mo unt
-t nfs -o nfsvers= 4 host: /remote/export /local/directory.
Refer to man mo unt for more details.
If an NFS share was mounted manually, the share will not be automatically mounted upon reboot.
Red Hat Enterprise Linux offers two methods for mounting remote file systems automatically at boot
time: the /etc/fstab file and the auto fs service. Refer to Section 9.3.1, “ Mounting NFS File
Systems using /etc/fstab” and Section 9.4, “ auto fs” for more information.
Chapt er 9 . Net work File Syst em (NFS)
53