Operating System - HP-UX
1834903 Members
2727 Online
110071 Solutions
New Discussion

Re: NFS fails with RPC timeout during cpio

 
SOLVED
Go to solution

NFS fails with RPC timeout during cpio

I have a K580 with two filesystems NFS mounted to it for that purpose of performing database logging and backups. On only one of the two NFS mounts, we receive the following error from syslog "vmunix: NFS write failed for server : RPC: Timed out"
We get the same message when we try to do a cpio to the directory. The other directory backs up fine and cpio works fine also. The questionable directory has plenty of space in it and both directories have the exact same configuration and permissions, both on the mounts and on the underlying directories. I should mention that this behavior started recently after we had changed the domain settings for this server as well as the server that the filesystems are mounted from. The exports file does have the shortname as well as the FQDN fo the new domain. Any Ideas?
4 REPLIES 4
hpuxrox
Respected Contributor

Re: NFS fails with RPC timeout during cpio

Try Decreasing the values of the wsize and rsize mount options to 4096 or 2048 on the NFS clients.


rsize=n (default=8192) & wsize=n (default=8192)

The number of bytes the NFS client requests from the NFS server in a single read request.If packets are being dropped between the client and the server, decrease rsize and wsize to 4096 or 2048.
pap
Respected Contributor

Re: NFS fails with RPC timeout during cpio

Hi,
You can do following


1. Try reducing the size of read and write buffer (rsize and wzise to 1024)

2. use tcp mount option

mount -F nfs -p tcp

Thanks,
-pap
"Winners don't do different things , they do things differently"

Re: NFS fails with RPC timeout during cpio

Where do I make these modifications to the rsize and wsize?
Jeff Schussele
Honored Contributor
Solution

Re: NFS fails with RPC timeout during cpio

Hi Christopher,

IF you're exporting then these option go on the line in /etc/exports - EX:
/export1 -rsize=2048,wsize=2048

If on import then can be specified on the command line
mount -F nfs host1:/import1 -o rsize=2048,wsize=2048

To make available for boot time mounting or for the mount -a command, they need to be specified in the /etc/fstab - EX
host1:/import1 /mnt_point nfs rsize=2048,wsize=2048 0 0
Of course retain any (hard,soft,etc) options that are already in the fstab line for this NFS mount.

HTH,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!