Saturday, April 16, 2011

NFS Server files

Files that make up NFS server 


Server1:/root# svcs -a | grep /network/nfs/server
online         Mar_20   svc:/network/nfs/server:default
Server1:/root#


1. /etc/dfs/dfstab Lists the local resources to share at boot time.


Server1:/root# cat /etc/dfs/dfstab


#       Place share(1M) commands here for automatic execution
#       on entering init state 3.
#
#       Issue the command 'svcadm enable network/nfs/server' to
#       run the NFS daemon processes and the share commands, after adding
#       the very first entry to this file.
#
#       share [-F fstype] [ -o options] [-d ""] [resource]
#       .e.g,
#       share  -F nfs  -o rw=engineering  -d "home dirs"  /export/home2
Server1:/root#




2. /etc/dfs/sharetab Lists the local resources currently being shared by the NFS server. 


Server1:/root# cat /etc/dfs/sharetab
/zones/zone21/root/data1/archive   -       nfs     rw
/zones/zone22/root/opt/boms     -       nfs     rw
/zones/zone22/root/opt/cd1/interface/audittool/output      -       nfs     rw
/zones/zone22/root/opt/risk/data/ebl/p2p/output     -       nfs     rw
/zones/zone21/root/data1/archive   -       nfs     rw
Server1:/root#


3. /etc/dfs/fstypes Lists the default file system types for remote file systems.


Server1:/root# cat /etc/dfs/fstypes
nfs NFS Utilities
autofs AUTOFS Utilities
cachefs CACHEFS Utilities
Server1:/root#


4. /etc/rmtab Lists file systems remotely mounted by NFS clients. 


Server1:/root# cat  /etc/rmtab
ip-zone29.domain.network.com:/zones/zone21/root/data1/archive/EXPORT/SMSC
Server1:/root#


5. /etc/nfs/nfslog.conf Lists information defining the location of configuration logs used for NFS server logging.


Server1:/root# cat /etc/nfs/nfslog.conf
#ident  "@(#)nfslog.conf        1.5     99/02/21 SMI"
#
# Copyright (c) 1999 by Sun Microsystems, Inc.
# All rights reserved.
#
# NFS server log configuration file.
#
# [ defaultdir= ] \
#       [ log= ] [ fhtable= ] \
#       [ buffer= ] [ logformat=basic|extended ]
#


global  defaultdir=/var/nfs \
        log=nfslog fhtable=fhtable buffer=nfslog_workbuffer
Server1:/root#


6. /etc/default/nfslogd Lists configuration information describing the behavior of the nfslogd daemon for NFSv2/3.


Server1:/root# cat /etc/default/nfslogd
#
#ident  "@(#)nfslogd.dfl        1.8     99/02/27 SMI"
#
# Copyright (c) 1999 by Sun Microsystems, Inc.
# All rights reserved.
#


# Specify the maximum number of logs to preserve.
#
# MAX_LOGS_PRESERVE=10


# Minimum size buffer should reach before processing.
#
# MIN_PROCESSING_SIZE=524288


# Number of seconds the daemon should sleep waiting for more work.
#
# IDLE_TIME=300


# CYCLE_FREQUENCY specifies the frequency (in hours) with which the
# log buffers should be cycled.
#
# CYCLE_FREQUENCY=24


# Use UMASK for the creation of logs and file handle mapping tables.
#
# UMASK=0137
Server1:/root#


7. /etc/default/nfs Contains parameter values for NFS protocols and NFS daemons.


Server1:/root# cat /etc/default/nfs
# ident "@(#)nfs        1.10    04/09/01 SMI"
#
# Copyright 2004 Sun Microsystems, Inc.  All rights reserved.
# Use is subject to license terms.
#


# Sets the maximum number of concurrent connection oriented connections.
# Default is unlimited and is obtained by not setting NFSD_MAX_CONNECTIONS.
# Equivalent to -c.
#NFSD_MAX_CONNECTIONS=


# Set connection queue length for the NFS over a connection-oriented
# transport. The default value is 32 entries.
# Equivalent to -l.
NFSD_LISTEN_BACKLOG=32


# Start NFS daemon over the specified protocol only.
# Equivalent to -p, ALL is equivalent to -a on the nfsd command line.
# Mutually exclusive with NFSD_DEVICE.
NFSD_PROTOCOL=ALL


# Start NFS daemon for the transport specified by the given device only.
# Equivalent to -t.
# Mutually exclusive with setting NFSD_PROTOCOL.
#NFSD_DEVICE=


# Maximum number of concurrent NFS requests.
# Equivalent to last numeric argument on nfsd command line.
NFSD_SERVERS=16


# Set connection queue length for lockd over a connection-oriented transport.
# Default and minimum value is 32.
LOCKD_LISTEN_BACKLOG=32


# Maximum number of concurrent lockd requests.
# Default is 20.
LOCKD_SERVERS=20


# Retransmit Timeout before lockd tries again.
# Default is 5.
LOCKD_RETRANSMIT_TIMEOUT=5


# Grace period in seconds that all clients (both NLM & NFSv4) have to
# reclaim locks after a server reboot. Also controls the NFSv4 lease
# interval.
# Overrides the deprecated setting LOCKD_GRACE_PERIOD.
# Default is 90 seconds.
GRACE_PERIOD=90


# Deprecated.
# As for GRACE_PERIOD, above.
# Default is 90 seconds.
#LOCKD_GRACE_PERIOD=90


# Sets the minimum version of the NFS protocol that will be registered
# and offered by the server.  The default is 2.
#NFS_SERVER_VERSMIN=2


# Sets the maximum version of the NFS protocol that will be registered
# and offered by the server.  The default is 4.
#NFS_SERVER_VERSMAX=4


# Sets the minimum version of the NFS protocol that will be used by
# the NFS client.  Can be overridden by the "vers=" NFS mount option.
# The default is 2.
#NFS_CLIENT_VERSMIN=2


# Sets the maximum version of the NFS protocol that will be used by
# the NFS client.  Can be overridden by the "vers=" NFS mount option.
# If "vers=" is not specified for an NFS mount, this is the version
# that will be attempted first.  The default is 4.
#NFS_CLIENT_VERSMAX=4


# Determines if the NFS version 4 delegation feature will be enabled
# for the server.  If it is enabled, the server will attempt to
# provide delegations to the NFS version 4 client. The default is on.
#NFS_SERVER_DELEGATION=on


# Specifies to nfsmapid daemon that it is to override its default
# behavior of using the DNS domain, and that it is to use 'domain' as
# the domain to append to outbound attribute strings, and that it is to
# use 'domain' to compare against inbound attribute strings.
#NFSMAPID_DOMAIN=domain
Server1:/root#

No comments:

Post a Comment