21.02.2013 Views

AIX 5L Problem Determination - IBM Redbooks

AIX 5L Problem Determination - IBM Redbooks

AIX 5L Problem Determination - IBM Redbooks

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

► Slow mounts from <strong>AIX</strong> Version 4.2.1 or later, clients running NFS Version 3 to<br />

<strong>AIX</strong> Version 4.1.5 or earlier and other non-<strong>AIX</strong> servers running NFS<br />

Version 2. NFS Version 3 uses TCP by default, while NFS Version 2 uses<br />

UDP only. This means that the initial client mount request using TCP will fail.<br />

To provide backwards compatibility, the mount is retried using UDP, but this<br />

only occurs after a timeout. To avoid this problem, NFS Version 3 provides<br />

the proto and vers parameters with the mount command. These parameters<br />

are used with the -o option to hard wire the protocol and version for a specific<br />

mount. The following example forces the use of UDP and NFS Version 2 for<br />

the mount request:<br />

# mount -o proto=udp,vers=2,soft,retry=1 platypus:/test /mnt<br />

► Older non-<strong>AIX</strong> clients can also incur mount problems. If your environment has<br />

such clients, you need to start mountd with the -n option:<br />

# stopsrc -s rpc.mountd<br />

# startsrc -s rpc.mountd -n<br />

► Another mount problem that can occur with older non-<strong>AIX</strong> clients is when a<br />

user who requests a mount is in more than eight groups. The only<br />

work-around for this is to decrease the number of groups the user is in or<br />

mount using a different user.<br />

8.4.3 Increasing NFS Socket Buffer Size<br />

You may find that the netstat -s command indicates a significant number of<br />

UDP socket buffer overflows. As with ordinary UDP tuning, increase the sb_max<br />

value. You also need to increase the value of nfs_socketsize, which specifies the<br />

size of the NFS socket buffer. The following is an example:<br />

# no -o sb_max=131072<br />

# nfso -o nfs_socketsize=130972<br />

Note: In <strong>AIX</strong> Version 4, the socket size is set dynamically. Configurations<br />

using the no and nfso commands must be repeated every time the machine is<br />

booted. Add them in the /etc/rc.net or /etc/rc.nfs file immediately before the<br />

nfsd daemons are started and after the biod daemons are started. The<br />

position is crucial.<br />

8.4.4 The biod and nfsd daemons<br />

Starting with <strong>AIX</strong> 4.2.1, there is a single nfsd daemon and a single biod daemon,<br />

each of which is multi-threaded (multiple kernel threads within the process). Also,<br />

the number of threads is self-tuning in that it creates additional threads as<br />

needed. You can, however, tune the maximum number of nfsd threads by using<br />

Chapter 8. Network problem determination 191

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!