Operating System - HP-UX
1830062 Members
2208 Online
109998 Solutions
New Discussion

what nfs mount options and version of nfs with hpux10.2

 
SOLVED
Go to solution
Steve Post
Trusted Contributor

what nfs mount options and version of nfs with hpux10.2

I have an old HP9000 running as a client to nfs mount a file system from a hpux11 server.

It is having a little bit of trouble because of occasional network loads between the two machines.

Through the web sites here (and the man pages), I have NOT found answers to these 2 questions....so I guess I'll ask them here.

1. How can I tell what version of NFS I am running? There was a lot of talk about version 2 vs 3.
2. What are the mount options for an NFS mount, that I would put into the /etc/fstab file? (one document said to use "timeo", but I would like to see documentation on it.

That's it. Thanks if you can help.
STeve ^_^
10 REPLIES 10
Mark Greene_1
Honored Contributor

Re: what nfs mount options and version of nfs with hpux10.2

I ran the following:
strings /usr/sbin/nfsd|grep 2
):$Revision: 92453-07 linker linker crt0.o B.10.60 970821 $
@(#)nfsd daemon PHNE_22642
0123456789abcdef

doing a search on PHNE_22642 on hp's site ultimately lead me to this:

http://us-support3.external.hp.com/wpsl/bin/doc.pl/screen=wpslDisplayPatch/sid=587d7d3e1701f591ae?PACH_NAM=PHNE_24909&HW=s800&OS=11.00

which appears to be the latest patch for nfsd for 11.00, so you may want to give loading this a shot and see if your nfs performance does not improve.

--
mark
the future will be a lot like now, only later
Tom Dawson
Regular Advisor

Re: what nfs mount options and version of nfs with hpux10.2

This is a /etc/fstab example from one of our 10.20 servers that mount a nfs drive exported from another 10.20 server:

flo1q01.mydomain.com:/nfs_flo1q02_a /u5 nfs rw,suid 0 0

"/u5" has an Oracle db file on it so we don't try to do any timeouts.

I think I saw somewhere that the nfs that comes with 10.20 is version 3, but I wouldn't bet my paycheck on it.
Uday_S_Ankolekar
Honored Contributor

Re: what nfs mount options and version of nfs with hpux10.2

Hi,

On client nfsstat -m will show the NFS version for each mount point.

On server rpcinfo -p|egrep "service|nfs" will show the available NFS
versions.

mount -p would show you timeo option.

here is the doc..

http://us-support2.external.hp.com/cki/bin/doc.pl/sid=adfe960a0a8a51fdb2/screen=ckiDisplayDocument?docId=200000006445114

Goodluck

-USA..

Good Luck..
Uday_S_Ankolekar
Honored Contributor

Re: what nfs mount options and version of nfs with hpux10.2

Hi,

Some more info on timeo...

timeo=n The value in tenths of a second before
sending the first retransmission after an
RPC timeout. The default value is 7 tenths
of a second. After the first timeout
the
timeout is doubled after each successive
timeout until a maximum timeout of 60 sec-
onds is reached or the enough retransmis-
sions have occured to cause a major time-
out. Then
if the filesystem is hard
mounted
each new timeout cascade restarts
at twice the initial value of the previous
cascade
again doubling at each retransmis-
sion. The maximum timeout is always 60
seconds. Better overall performance may be
achieved by increasing the timeout when
mounting on a busy network
to a slow
server
or through several routers or gate-
ways.

-USA..
Good Luck..
Sanjay_6
Honored Contributor

Re: what nfs mount options and version of nfs with hpux10.2

Steve Post
Trusted Contributor

Re: what nfs mount options and version of nfs with hpux10.2

Mark, I ran strings "/usr/sbin/nfsd | grep 2"
I got a lot of numbers and versions. But no NFS version 2 or 3. I did not get a patch listed. But I am not allowed to load patches on this klunker anyway.

Tom, I also looked at /etc/fstab. I didn't see any timeout options either.

U.S.A,
nfsstat -m shows nothing. I bet my software here is too old.
rpcinfo -p | egrep "service|nfs" shows nothing either. ....Old.
mount -p shows the nfs mount is taking "defaults" But I don't know the defaults (or the options).
OLD OLD OLD software. ;)
So far what I would do is:
unmount /spot2
vi /etc/fstab
server:/spot1 /spot2 nfs rw,suid,timeo=50 0 0

And hope this fixes the timeout problem. But, I'm not going to do that until I can really find the options and defaults for THIS version of NFS.
On a simple ping, I can see delays of up to .9 seconds (900 milliseconds).
Sanjay_6
Honored Contributor
Steve Post
Trusted Contributor

Re: what nfs mount options and version of nfs with hpux10.2

ok Sanjay. I ran "rpcinfo -u nfs 2"
No response
I ran "rpcinfo -u nfs 3"
No response.
I ran "ps -ef | grep nfs "
No response.
....I scratched my head. You see the disk has been nfs mounted since last August. Obviously nfs is running. Something's a little odd there. I'll have to dig into it.

So I looked at the nfs options. Those are good. Then (20-20 hindsight) I went to sam, so see if these options are there. They are.
Ok. Using sam, I changed the timeo option from 7 to 21. I see it changed the /etc/fstab file. Before I made the change, I verified no processes were running on /spot2 just in case sam tries to unmount it.

I printed out all of the information. I'll dig into it all. Thanks. I don't know if my problem is solved. But at least I have documentation that may help.

STeve
Sanjay_6
Honored Contributor

Re: what nfs mount options and version of nfs with hpux10.2

Hi Steve,

Try,

rpcinfo -p host_name |grep nfs

If the result shows,
100003 2 UDP 2049 nfs
100003 3 UDP 2049 nfs

Then you are running both version 2 and 3 of nfs.

Hope this helps.

Regds
Steve Post
Trusted Contributor

Re: what nfs mount options and version of nfs with hpux10.2

Nope.
I have these things running....
portmapper,status,nlockmgr,llockmgr,cmsd, and ttdbserver.
I bet one of these is the nfs (since it's working). This is an old box. Like circa 1992.

In the meantime, I saw that the nfs mount had about 4000 timeout errors since the last reboot (about 3 weeks ago). I got 100 nfs errors in the syslog.log since last reboot. I know how to fix it if it happens again. But I'm hoping that timeo variable will fix it.

Apparently when people send huge emails, etc over this network connection, the nfs mount suffers. I wouldn't mind it suffering as long as it does not get stuck.
Thanks for you help. ^_^