| United States-English |
|
|
|
![]() |
NFS Services Administrator's Guide: HP-UX 11i version 2 > Chapter 2 Configuring
and Administering NFS ServicesNFS Client and Server Transport Connections |
|
NFS runs over both UDP and TCP transport protocols. The default transport protocol is TCP. Using the TCP protocol increases dependability on wide-area networks. Packets are successfully delivered more consistently. TCP provides congestion control and error recovery. NFS over TCP works with NFS version 2 and version 3. An NFS client has a maximum number of connections for each server. By default the maximum number of connections is one. The total maximum number of connections on the client is the number of NFS servers multiplied by the maximum number of connections allowed for each server. For example, if the maximum number of connections allowed for client1 is two, and if the network environment allowed client1 access to five servers, the total number of connections allowed for client1 is 10: two on each server. An NFS client remains connected to the NFS server until the client becomes inactive: idle or disconnected by the client. By default, idle time is 5 minutes. This means that there is no outbound request for more than 5 minutes. NFS supports 32K transfer sizes across both TCP and UDP transport. By default, NFS transfers 8K sizes. To specify 32K transfer sizes, set the mount option for read and write size to 32K. mount -F nfs -o rsize=32768, w=32768 Using the mount command from the client with no protocol specified, NFS will first try to perform the mount using TCP. If that fails, then it will try to mount the file system using UDP. You can tell NFS to establish ONLY a TCP connection using the following command: mount -o proto=tcp If TCP is not available on the server, the mount fails.You can tell NFS to use ONLY UDP by using the following command: mount -o proto=udp If UDP is not available on the server, the mount fails. On the NFS server, to ensure that a request for a TCP connection will be successful, the service must be advertised in the /etc/services name database file. This database advertises the availability of TCP on the server through port 2049. The entry appears in the /etc/services name database file. There is also an entry for UDP. They are as follows: nfsd 2049/tcp #NFS remote file system
The NFS server daemons (nfsd) handle client file system requests. For NFS over UDP transport, the default number of nfsd processes is defined by the NUM_NFSD variable in the /etc/rc.config.d/nfsconf file. This default number of nfsd processes over UDP is a suggested number for the HP-UX kernel. At the system boot time, the kernel reads this default number and it automatically rounds up the number of NFS server daemons (nfsds) to be a multiple of the number of active CPUs in the system. For NFS over TCP transport, only one additional nfsd daemon is started to service TCP requests.
You can start a daemon for either transport type or both. Here is a list of ways you can specify the NFS server daemon:
The server connection is terminated by nfsd when one of the following occurs:
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||