Bull GNU/Linux NFSv4 project |
![]() |
Administration of NFS and NFSv4 for Linux |
![]() |
| Version Number | Date of Revision |
| 0.1 | 2004/03/24 |
| 0.2 | 2004/04/22 |
| 0.3 | 2004/04/30 |
Gerrit Huizenga <gerrit@us.ibm.com>
Bruce Allan <bruce.allan@us.ibm.com>
Patrice Romand <Patrice.Romand@bull.net>
Gilles Quillard <gilles.quillard@bull.net>
Bruce Fields <bfields@fieldses.org>
IETF standard:
http://www.ietf.org/rfc/rfc3530.txt?number=3530
IETF NFSv4 Mailing list:
http://www1.ietf.org/mail-archive/working-groups/nfsv4/current/maillist.html
SourceForge NFS Mailling list:
http://sourceforge.net/mailarchive/forum.php?forum_id=4930
CITI NFS version 4 Implementation:
http://www.citi.umich.edu/projects/nfsv4/linux/
Man Pages
This document deals with the administration of NFS (version 3) and NFS Version 4 on GNU/Linux.
It aims to simplify the installation and the administration of NFSv4.
The goals of this project are:
The work is based on the kernel 2.6.
It does not target a specific Linux distribution: the init scripts are standard ones, and will have to be modified for each distribution.
When designing an administration command, the following rules must be observed:
The GNU/Linux commands are in the following packages:
(N.B.: on RedHat, mount is not in the util-linux package but in its own package)
exportfs is used to maintain the list of the NFS exported filesystems.
This list is kept in the file:
/var/lib/nfs/xtab
exportfs can export, unexport or reexport filesystems, according to either the file /etc/exports or to the arguments.
The notation is:
client:/path
where client can be a hostname (abbreviated name or fqdn), a NIS netgroup, an IP address (IPv4 or IPv6), an IP subnetwork, or even nothing, which means every hosts.
Usefull options:
mount mounts a filesystem.
The type of the filesystem is specified with the option -t (for example, nfs or nfs4).
Usefull options:
Specific NFSv4 option:
umount unmounts filesystems.
Usefull options:
automount configures the mount points for autofs, the automounter.
It uses the file:
/etc/auto.master
For both the client and the server, credentials need to be created.
There is currently no command nor script to fill in the file:
/etc/krb5.keytab
The structure of this file willl be discussed later.
rpcinfo -p shows if the nfs daemon is running, which version are supported (2, 3, 4), and with which protocol (udp, tcp).
nfsstat displays statistics about both NFS client and server activity.
It uses the files /proc/net/rpc/nfsd (for the server statistics) and /proc/net/rpc/nfs (for the client).
showmount -a lists the clients hostname and the mounted filesystems on a server.
showmount -e lists the filesystems exported by a server.
exportfs lists the exported file system for NFS.
It uses the following files:
/var/lib/nfs/etab to show what filesystems should be exported to whom at the moment
/var/lib/nfs/rmtab lists which filesystems are actually mounted by certain clients at the moment
/proc/fs/nfs/exports (it is the same file as /var/lib/nfs/xtab, which is unused, unless /proc doesn't exist) contains informations about what filesystems are exported to actual client
On the client, mount shows which filesystems are currently mounted.
It can also be accessible by /proc/mounts.
Prior to the use of NFSv4, daemons need to be started, via their corresponding init scripts.
For the server:
For the client:
idmapd needs to be configured with the file:
/etc/idmapd.conf
Here are the currently commands and scripts that need to be done, in order of priority:
/etc/rc.d/init.d/nfsshowmount command will no more be used, because '/' can always be mounted.showmount is used to list the exported directories, a new command which will mount '/', list the directories and then unmount '/' can be useful to list the exported directories.nfsstat has not been modified, it doesn't show anything really reliable about nfsv4.rpc.svcgssd and rpc.gssd, to, for example, precise the path of the rpc_pipefs filesystem.echo 8 > /proc/sys/sunrpc/nfs_debugOther missing commands or options?
CIM standards are made by the DMTF: http://www.dmtf.org/standards/cim/
The current CIM schema, version 2.8.1, deals only with NFSv3 (16 attributes).
A IBM opensource project, SBLIM (Gareth S. Bestor, IBM LTC Beaverton), has delivered recently (begining of April) a package providing only exports for NFSv3 and NFSv4 : http://oss.software.ibm.com/developerworks/projects/sblim/
The tasks about NFSv4 can be divided in three parts:
==> rpc.nfsd, rpc.mountd
==> nfsstat, ...?
==> rpcinfo, /var/log/messages (grep nfsd and knfsd), results of the commands, ...?
==> rpc.svcgssd, rpc_pipefs filesystem
==> To be defined
==> To be defined
==> To be defined
==> rpc.idmapd, /etc/idmapd.conf
==> /var/lib/nfs/etab, /var/lib/nfs/rmtab
/export and to mount in this directory all the other directories which need to be exported, with a mount --bind==> exportfs, mount --bind
==> exportfs, umount
The properties are:
==> /etc/exports
==> /etc/idmapd.conf
==> rpc.gssd, rpc_pipefs filesystem
==> automount, /etc/auto.master==> supermount (enable/disable)
==> rpc.idmapd, /etc/idmapd.conf
showmount shows the directories exported by a server.==> showmount (v3), mount (v4)
==> mount
==> umount
The properties are:
On linux, there is no usual GUI to administrate NFS (there is actually no usual GUI to administrate Linux...)
The most commonly used administration tool is WebMin. It provides many usefull features, including the management of the filesystems.
Two other tools can be added to WebMin: Nagios, which provides the monitoring features, and MRTG, which provides the reports features.
Creation from scratch of a new GUI (in GTK for example) or WebMin+Nagios will be enough?
WebMin is a web-based interface for system administration.
It has several modules, and two of them need to be modified to support NFSv4:
Both modules are standard modules, made by the creator of WebMin, Jamie Cameron.
Requirements for the new modules: maybe supermount?
It could be useful to administrate several hosts at the same time...
Nagios is a host and network monitoring daemon.
It runs intermittent checks on hosts and services. It has currently no NFS specific plugin.
http://people.ee.ethz.ch/~oetiker/webtools/mrtg/
MRTG plots graphs to monitor the traffic load on a network.
The distribution specific tools and init scripts are under the responsability of each distribution maintainers. They won't be discussed here.
redhat-config-nfsdkpg-reconfigure?yast?drakconf?There is no tool, neither on KDE nor on Gnome, to configure a NFS client or server.
The following tools can be used to monitor partitions usage:
| Page maintained by: Frederic Jolly |
|
Accessed |