Nfs Server Configuration - Red Hat ENTERPRISE LINUX 5 - DEPLOYMENT Deployment Manual

Hide thumbs Also See for ENTERPRISE LINUX 5 - DEPLOYMENT:
Table of Contents

Advertisement

Chapter 19. Network File System (NFS)
If the portmap service is running, then the nfs service can be started. To start an NFS server, as root
type:
/sbin/service nfs start
Note
nfslock also has to be started for both the NFS client and server to function properly.
To start NFS locking as root type: /sbin/service nfslock start. If NFS is set to
start at boot, please ensure that nfslock also starts by running chkconfig --list
nfslock. If nfslock is not set to on, this implies that you will need to manually run the
/sbin/service nfslock start each time the computer starts. To set nfslock
to automatically start on boot, type the following command in a terminal chkconfig
nfslock on.
To stop the server, as root, type:
/sbin/service nfs stop
The restart option is a shorthand way of stopping and then starting NFS. This is the most efficient
way to make configuration changes take effect after editing the configuration file for NFS.
To restart the server, as root, type:
/sbin/service nfs restart
The condrestart (conditional restart) option only starts nfs if it is currently running. This option is
useful for scripts, because it does not start the daemon if it is not running.
To conditionally restart the server, as root, type:
/sbin/service nfs condrestart
To reload the NFS server configuration file without restarting the service, as root, type:
/sbin/service nfs reload
By default, the nfs service does not start automatically at boot time. To configure the NFS to start
up at boot time, use an initscript utility, such as /sbin/chkconfig, /usr/sbin/ntsysv, or the
Services Configuration Tool program. Refer to
information regarding these tools.

19.6. NFS Server Configuration

There are three ways to configure an NFS server under Red Hat Enterprise Linux: using the NFS
Server Configuration Tool (system-config-nfs), manually editing its configuration file (/etc/
exports), or using the /usr/sbin/exportfs command.
250
Chapter 16, Controlling Access to Services
for more

Advertisement

Table of Contents
loading

Table of Contents