All this programs are provided under the GPL.
Bug reports and suggestions are welcome: <frederic.jolly@ext.bull.net>
RedHat 9.0 init scripts
showmount4
exportfsvia
nfsdebug
WebMin: Mount module
RedHat 9.0 init scripts
The RedHat 9.0 init scripts have been updated for NFSv4:
- New daemons rpc.svcgssd, rpc.idmapd, rpc.gssd
- The both filesystems rpc pipe fs and /proc/fs/nfsd are created and automatically mounted
Installation:
- cd / && tar zxvf nfsv4_init_scripts.tgz
- All the configuration is made in the file /etc/sysconfig/nfs
- To make the daemons start at every boot: chkconfig --add rpcgssd ; chkconfig --add rpcsvcgssd ; chkconfig --add rpcidmapd
showmount4
showmount4 lists the directories exported by a NFSv4 server.
It emulates the comportement of showmount --export on a NFSv3
server.
Usage:
- showmount4 SERVER_NAME|IP
exportfsvia
exportfsvia is a wrapper to exportfs which has a NFSv3-like-behavior.
It exports the pseudofilesystem (with the fsid=0 option) then every directories mounted with --bind.
Usage:
- exportfsvia [-h] [-v] [-o options,...] [host:/path] [--through /pfsdir/path2] exports path to host through /pfsdir/path2.
- exportfsvia -u [-v] host:/path unexportfs path from host.
nfsdebug / nfsddebug / rpcdebug
rpcdebug makes easier the debugging process of modules using RPC: it offers a more intuitive interface to update the /proc/sys/sunrpc/ files.
It has been updated for NFSv4.
Apply the rpcdebug.patch to the package nfs-utils-1.0.6.
nfsdebug and nfsddebug are links to rpcdebug.
Usage:
- rpcdebug [-v] [-h] [-m module] [-s flags...|-c flags...]
set or cancel debug flags for the specified module.
- rpcdebug -vh gives the list of modules and valid debug flags.
- nfsdebug | nfsddebug [-v] [-h] [-s flags...|-c flags...]
set or cancel debug flags for nfs or nfsd.
WebMin: Mount module
The Mount module is now updated for NFSv4.
Apply this webmin-mount.patch to the version 1.155 of WebMin.
Changelog:
- Added the options rsize and wsize (v3 and v4)
- Added options for the choice of the authentication mode (v4 option, backported to v3)
- Updated and corrected lang/fr. This file is now complete, encoded to HTML-Entities
- Added the online help (help/*.html and help/*.fr.html, encoded to HTML-Entities)
- Displays more precisely which options are filesystem-specific
- Added Javascript to grey out some fields (UDP is disabled for NFSv4 ; there is no security level for the SYS authentication). Of course if Javascript is disabled on the user's browser, the module is still usable. The options are checked later (but there is no error messages. For example, if UDP is chosen for NFSV4, it is quietly modified to TCP)
- Updated for NFSv4:
- In NFSv4, you should always mount '/' (all the exported directories are in this pseudofilesystem). If the NFS server supports NFSv4 (checked with rpcinfo), '/' is added to the list of the exported directories. The others directories are displayed in case of an NFSv3 mount
- NFSv4 is a filesystem type for the mount command (nfs4). The nfsvers option is used only in NFSv3. The webmin code is common to the nfs and nfs4 filesystems. An NFSv3 directory can be remount in v4 (and a v4 one in v3)