Nfs Client Configuration Files - Red Hat ENTERPRISE LINUX 4.5.0 Reference Manual

Table of Contents

Advertisement

— Ignores
-i
/etc/exports
exported file systems.
— Unexports all shared directories. The command
-u
NFS file sharing while keeping all NFS daemons up. To re-enable NFS sharing, type
.
exportfs -r
— Verbose operation, where the file systems being exported or unexported are displayed
-v
in greater detail when the
If no options are passed to the
exported file systems.
For more information about the
page.
3.2.1. Using
exportfs
Since NFSv4 no longer utilizes the
mounting of file systems has changed.
An NFSv4 client now has the ability to see all of the exports served by the NFSv4 server as a
single file system, called the NFSv4 pseudo-file system. On Red Hat Enterprise Linux, the
pseudo-file system is identified as a single, real file system, identified at export with the
option.
For example, the following commands could be executed on an NFSv4 server:
mkdir /exports mkdir /exports/opt mkdir /exports/etc mount --bind
/usr/local/opt /exports/opt mount --bind /usr/local/etc /exports/etc
exportfs -o fsid=0,insecure,no_subtree_check gss/krb5p:/exports exportfs -o
rw,nohide,insecure,no_subtree_check gss/krb5p:/exports/opt exportfs -o
rw,nohide,insecure,no_subtree_check gss/krb5p:/exports/etc
In this example, clients are provided with multiple file systems to mount, by using the
option.

4. NFS Client Configuration Files

NFS shares are mounted on the client side using the
command is as follows:
mount -t <nfs-type> -o <options><host>:</remote/export></local/directory>
Replace
with either
<nfs-type>
Replace
with a comma separated list of options for the NFS file system (refer to
<options>
Section 4.3, "Common NFS Mount Options"
; only options given from the command line are used to define
command is executed.
exportfs
/usr/sbin/exportfs
/usr/sbin/exportfs
with NFSv4
protocol as was used in NFSv2 and NFSv3, the
rpc.mountd
for NFSv2 or NFSv3 servers, or
nfs
for details). Replace
NFS Client Configuration Files
/usr/sbin/exportfs -ua
command, it displays a list of currently
command, refer to the
command. The format of the
mount
for NFSv4 servers.
nfs4
with the remote host,
<host>
suspends
man
exportfs
fsid=0
--bind
139

Advertisement

Table of Contents
loading

Table of Contents