View this PageEdit this PageUploads to this PageVersions of this PageHomeRecent ChangesSearchHelp Guide

Configuración del servidor NFS en Solaris

  • Exportar el directorio /home/metro/ControlId por NFS a todo el mundo. Esto se hace añadiendo esta línea al fichero /etc/dfs/dfstab.
    • share -F nfs -o rw /home/metro/ControlId

  • Para comprobar si es el servidor NFS arranca correctamente:
    • /etc/init.d/nfs.server start
    • rpcinfo -p
    • share
    • cat /etc/dfs/sharetab

  • Para que el servidor NFS arranque al inicio es necesario modificar el script “/home/metro/.openwin-init.metro” en Solaris 7,8 o "/home/metro/.autoarranque" en Solaris 9 incluyendo dos comandos, uno para parar el servidor y otro parar arrancarlo:
    • distsh2 "/etc/init.d/nfs.server stop"
    • distsh2 "/etc/init.d/nfs.server start"

Problemas en NFS

http://www.groupsrv.com/linux/ptopic18779.html
Depending on the number of LINUX clients, you may need to increase
the thread count on the Solaris NFS server. I have seen this type
of problem before at client sites where the default NFSD count was used.
The default is 1, which is VERY low.

You can set these by (from www.sun.com)

Solaris 8 and prior
The script /etc/init.d/nfs.server sets the maximum number of nfsd
server threads that can run at nce.

For Solaris 9 and subsequent releases
The maximum number of nfsd server threads is configured using the
parameter NFSD_SERVERS in the /etc/default/nfs file.Those threads are
created and destroyed dynamically. They each
consume 16K of kernel stack and most likely handle one NFS filesystem
block. They also run at a higher priority than the timeshare class.

Since the memory requirement is cheap and dynamic, there are no big
drawbacks to setting this value much higher on an NFS server
(a conservative nfsd thread value = num_of_cpus128).

For Solaris 8, edit /etc/init.d/nfs.server :
/usr/lib/nfs/nfsd -a 1024

For Solaris 9, edit /etc/default/nfs:
NFSD_SERVERS=1024

Then kill and restart the daemon
/etc/init.d/nfs.server stop
/etc/init.d/nfs.server start

Notes :
NFS server threads run at a high priority. With a really high number
of threads they may potentially starve other non-NFS related work. In
this case, Solaris 9 - Solaris Resource Manager (SRM) may be used
to limit the CPU time allotted to NFS.

Tim Sesow
tsesow@nsllc.com

Link to this Page