Increasing number of NFS servers on Sun Cluster

By default Solaris 10 starts 16 NFS servers to handle NFS requests. You can tune this by editing /etc/default/nfs file.

```terminal# Maximum number of concurrent NFS requests.

Equivalent to last numeric argument on nfsd command line.


Changing above variables did not seem to have any effects on how many NFS server Sun Cluster started. Poking around I found _nfs_start_daemons_ script which is part of _SUNWscnfs_ package. In my case it was in _/opt/SUNWscnfs/bin_ directory. It turns out that this script is looking at pre-Solaris 10 _nfs.server_ init script to determine if more than 16 NFS servers are supposed to be started. In Solaris 10 NFS server as most of the services is handled by SMF. The _/etc/init.d/nfs.server_ script is still present, probably due to legacy reasons, but it simply calls _svcadm_ command to start NFS. Here is the relevant section of _nfs_start_daemons_ script:

```terminalDEFAULT_NFSDCMD="/usr/lib/nfs/nfsd -a 16"
if [ -f /etc/init.d/nfs.server ]; then
NFSDCMD="`egrep '^[^#]*/usr/lib/nfs/nfsd' \
/etc/init.d/nfs.server \
2>/dev/null | head -1`"

In order to increase number of NFS server that get started by Sun Cluster, you must change the number 16 above to something higher like 1024.