Information Technology Reference
In-Depth Information
can be specified in the configuration file. The default configuration, which
has the tag global can be modified or additional configurations can be spec-
ified. The /etc/nfs/nsflog.conf file can be used to set the following NFS
logging parameters:
buffer —Specifies location of working buffer.
defaultdir —Specifies the default directory of files. If specified, this
path is added to the beginning of other parameters that are used to spec-
ify the location of files.
fhtable —Specifies location of the file handle to pathname mapping
database.
log —Specifies location of log files.
logformat —Specifies either basic (default) or extended logging.
The following listing shows the default contents of the
/etc/nfs/nfslog.conf file:
#ident “@(#)nfslog.conf 1.5 99/02/21 SMI”
#
# Copyright (c) 1999 by Sun Microsystems, Inc.
# All rights reserved.
#
# NFS server log configuration file.
#
# <tag> [ defaultdir=<dir_path> ] \
# [ log=<logfile_path> ] [ fhtable=<table_path> ] \
# [ buffer=<bufferfile_path> ] [ logformat=basic|extended ]
#
global defaultdir=/var/nfs \
log=nfslog fhtable=fhtable buffer=nfslog_workbuffer
$
Enabling NFS Server Logging
If neither the NFS server nor NFS Logging Daemon is running, you can
start NFS using the /etc/init.d/nfs.server start command.
Logging is enabled on a per-share (file system/directory) basis, by adding the
-o log option to the share(1M) command associated with the share. If the
share is currently shared, you must unshare it first. Then modify the share
command associated with the share in the /etc/dfs/dfstab file (and execute
shareall ) or enter it at the command line.
Search WWH ::




Custom Search