Exporting File Systems Manually - Novell LINUX ENTERPRISE SERVER 10 - INSTALLATION AND ADMINISTRATION 11-05-2007 Installation Manual

Table of Contents

Advertisement

38.5 Exporting File Systems Manually

The configuration files for the NFS export service are /etc/exports and /etc/
sysconfig/nfs. In addition to these files, /etc/idmapd.conf is needed for
the NFSv4 server configuration. To start or restart the services, run the commands
rcnfsserver restart and rcidmapd restart. The NFS server depends on
a running RPC portmapper. Therefore, also start or restart the portmapper service with
rcportmap restart.
38.5.1 Exporting File Systems with NFSv4
NFSv4 is the latest version of NFS protocol available on SUSE Linux Enterprise 10.
Configuring the directories for export with NFSv4 differs slightly from the previous
versions.
The /etc/exports File
This file contains a list of entries. Each entry indicates a directory that is shared and
how it is shared. A typical entry in /etc/exports consists of:
/shared/directory host(option_list)
For example:
/export 192.168.1.2(rw,fsid=0,sync)
/data 192.168.1.2(rw,bind=/export/data,sync)
Those directories for which fsid=0 is specified in the option list are called pseudo
root file systems. Here, the IP address 192.168.1.2 is used. You can use the name of
the host, a wild card indicating a set of hosts (*.abc.com, *, etc.), or netgroups.
For a fixed set of clients, there are only two types of directories that can be NFSv4 ex-
ported:
• A single directory that is chosen as the pseudo root file system. In this example,
/exports is the pseudo root directory because fsid=0 is specified in the option
list for this entry.
• Directories that are chosen to be bound to some an existing subdirectory of the
pseudo file system. In the example entries above, /data is such a directory that
720
Installation and Administration

Advertisement

Table of Contents
loading

This manual is also suitable for:

Suse linux enterprise server 10

Table of Contents