Nfs Server Configuration - Red Hat ENTERPRISE LINUX 3 Reference Manual

Hide thumbs Also See for ENTERPRISE LINUX 3:
Table of Contents

Advertisement

116
/sbin/service nfs start
To stop the server, as root type:
/sbin/service nfs stop
The
option is a shorthand way of stopping and then starting NFS. This is the most efficient
restart
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
(conditional restart) option only starts
condrestart
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
up at boot time, use an initscript utility, such as
Configuration Tool program. Refer to the chapter titled Controlling Access to Services in Red Hat
Enterprise Linux System Administration Guide for more information regarding these tools.
9.3. NFS Server Configuration
There are three ways to configure an NFS server under Red Hat Enterprise Linux: using the NFS
Server Configuration Tool (
(
), or using the
/etc/exports
For instructions on using NFS Server Configuration Tool, refer to the chapter titled Network File
System (NFS) in the Red Hat Enterprise Linux System Administration Guide. The remainder of this
section discusses manually editing
to export NFS file systems.
9.3.1. NFS Server Configuration File
The
/etc/exports
tions. Blank lines are ignored, comments can be made by starting a line with the hash mark (
long lines can be wrapped with a backslash (
vidual line, and any lists of authorized hosts placed after an exported file system must be separated by
space characters. Options for each of the hosts must be placed in parentheses directly after the host
identifier, without any spaces separating the host and the first parenthesis.
A line for an exported file system has the following structure:
export
host1 ( options )
In this structure, replace
host or network to which the export is being shared, and replace ( options
that host or network. Additional hosts can be specified in a space separated list.
The following methods can be used to specify host names:
service does not start automatically at boot time. To configure the NFS to start
redhat-config-nfs
/usr/sbin/exportfs
/etc/exports
file controls which file systems are exported to remote hosts and specifies op-
hostN ( options )...
with the directory being exported, replace
export
Chapter 9. Network File System (NFS)
if it is currently running. This option
nfs
/sbin/chkconfig
), manually editing its configuration file
command.
and using the
). Each exported file system should be on its own indi-
\
, /sbin/ntsysv, or the Services
/usr/sbin/exportfs
host1
with the options for
command
), and
#
with the

Advertisement

Table of Contents
loading

Table of Contents