Exporting File Systems Manually - Novell LINUX ENTERPRISE SERVER 11 - ADMINISTRATION Administration Manual

Hide thumbs Also See for LINUX ENTERPRISE SERVER 11 - ADMINISTRATION:
Table of Contents

Advertisement

25.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 command
rcnfsserver restart. This also starts the rpc.idmapd if NFSv4 is configured
in /etc/sysconfig/nfs. The NFS server depends on a running RPC portmapper.
Therefore, also start or restart the portmapper service with rcrpcbind restart.
25.5.1 Exporting File Systems with NFSv4
NFSv4 is the latest version of NFS protocol available on SUSE Linux Enterprise
Server. Configuring the directories for export with NFSv4 differs slightly from the
previous NFS 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,crossmnt)
/export/data 192.168.1.2(rw,bind=/data,sync)
Here the IP address 192.168.1.2 is used to identify the allowed client. You can also
use the name of the host, a wild card indicating a set of hosts (*.abc.com, *, etc.),
or netgroups (@my-hosts).
The directory which specifies fsid=0 is special in that it is the root of the filesystem
that is exported, sometime referred to as the pseudo root filesystem. This directory must
also have the crossmnt for correct operation with NFSv4. All other directories ex-
ported via NFSv4 must be mounted below this point. If you want to export a directory
that is not normally below this exported root, it needs to be bound into the exported
tree. This can be done using the bind= syntax.
356
Administration Guide

Advertisement

Table of Contents
loading

This manual is also suitable for:

Suse linux enterprise server 11

Table of Contents