HP-UX Reference (11i v1 05/09) - 1M System Administration Commands N-Z (vol 4)

n
nfsd(1M) nfsd(1M)
NAME
nfsd, biod - NFS daemons
SYNOPSIS
/usr/sbin/nfsd
[ -a ][-p protocol ][-t
device ][num_nfsd]
/usr/sbin/biod
[num_nfsiod]
DESCRIPTION
nfsd starts the NFS server daemons that handle client file system requests (see nfs(7)). num_nfsd is the
suggested number of file system request daemons that will start. One daemon will be started to support
the kernel threads servicing TCP requests, and multiple additional daemons will be started to service UDP
requests. At system boot time, num_nfsd is defined by the
NUM_NFSD variable in the
/etc/rc.config.d/nfsconf
file. When the UDP
nfsds are launched, the kernel will automati-
cally round-up num_nfsd to be a multiple of the number of active CPU’s in the system.
A previously invoked
nfsd daemon started with or without options must be stopped before invoking
another nfsd command.
biod starts num_nfsiod asynchronous block I/O daemons. These daemons are used on the NFS client to
improve I/O performance by caching asynchronous read-ahead and write-behind requests. At system boot
time, num_nfsiod is defined by the NUM_NFSIOD variable in the /etc/rc.config.d/nfsconf
file.
The number of active CPU’s on the system does not affect the number of
biod
daemons started.
Options
nfsd recognizes the following options:
-a Start a NFS daemon over all supported connectionless and connection-oriented tran-
sports, including UDP and TCP.
-p protocol Start a NFS daemon over the specified protocol.
-t device Start a NFS daemon for the transport specified by the given device.
num_nfsd num_nfsd is the suggested number of file system request daemons that will start. The
actual number of daemons started will be one daemon to support kernel TCP threads
plus a number of UDP daemons. The number of UDP daemons started will be the
value of num_nfsd rounded up to a multiple of the number of active CPU’s in the sys-
tem.
biod recognizes the following options:
num_nfsiod num_nfsiod is the number of asynchronous block I/O daemons that will start. The
number of active CPU’s in the system does not affect the number of
biod daemons
started.
APPLICATION USAGE
If the nfs_portmon variable is set to 1, then clients are required to use privileged ports (ports <
IPPORT_RESERVED) in order to get NFS services. The default value of nfs_portmon on HP-UX systems
is 0.
This variable can be modified by either patching the vmunix file, or patching the kernel image in memory.
To patch the vmunix file (survives a reboot), use the command:
echo "nfs_portmon?w 1" | adb -w /stand/vmunix /dev/kmem
To patch the in-memory kernel (does not survive a reboot), use the command:
echo "nfs_portmon/w 1" | adb -w /stand/vmunix /dev/kmem
To unset the variable use the command:
echo "nfs_portmon?w 0" | adb -w /stand/vmunix /dev/kmem
EXAMPLE
On a system with 16 active CPU’s the following command:
/usr/sbin/nfsd 30
will result in a total 33 nfsds being launched. For UDP requests, the kernel rounds-up the requested
num_nfsd value to be a multiple of the number of active CPU’s in the system, resulting in 32 UDP
HP-UX 11i Version 1: September 2005 1 Hewlett-Packard Company Section 1M593