2004-06-02 18:43:52

by Enils Bashi

[permalink] [raw]
Subject: nfs over tcp problem on Redhat 9

Hi All,



I have done a lot of reading about this but could not find a solution. Maybe
I will find a solution here. Here is what the problem is.

I want to establish nfs over tcp. Here is my auto.nfs file:



#/etc/auto.nfs

model
-fstype=nfs,rw,hard,sync,intr,rsize=32768,wsize=32768,nfsvers=3,proto=tcp
server:/model

home
-fstype=nfs,rw,hard,sync,intr,rsize=32768,wsize=32768,nfsvers=3,proto=tcp
server:/home

usr_local_bin
-fstype=nfs,rw,hard,sync,intr,rsize=32768,wsize=32768,nfsvers=3,proto=tcp
server:/usr/local/bin

usr_opt
-fstype=nfs,rw,hard,sync,intr,rsize=32768,wsize=32768,nfsvers=3,proto=tcp
server:/usr/opt



here is the auto.master file:

# auto.master

/nfs /etc/auto.nfs --timeout 600



Here is the message from the log files:



May 28 08:30:54 <clientName> automount[8709]: attempting to mount entry
/nfs/home

May 28 08:30:54 <clientName> automount[8719]: >> nfs server reported service
unavailable: Address already in use

May 28 08:30:54 <clientName> automount[8719]: mount(nfs): nfs: mount failure
tautog:/home on /nfs/home

May 28 08:33:02 <clientName> automount[8709]: shutting down, path = /nfs



I am running Redhat 9 Kernel 2.4.20-31.9 smp and nfs-utils-1.0.1-3.9. I
have done all updates.

I am assuming that there is tcp support for the kernel and version of nfs I
am using, since I get the following from rcpinfo:



[root@client ~]# rpcinfo -p server

program vers proto port

100000 2 tcp 111 portmapper

100000 2 udp 111 portmapper

100024 1 udp 32768 status

100024 1 tcp 32768 status

391002 2 tcp 32769 sgi_fam

100011 1 udp 748 rquotad

100011 2 udp 748 rquotad

100011 1 tcp 751 rquotad

100011 2 tcp 751 rquotad

100003 2 udp 2049 nfs

100003 3 udp 2049 nfs

100021 1 udp 32875 nlockmgr

100021 3 udp 32875 nlockmgr

100021 4 udp 32875 nlockmgr

100005 1 udp 32877 mountd

100005 1 tcp 38996 mountd

100005 2 udp 32877 mountd

100005 2 tcp 38996 mountd

100005 3 udp 32877 mountd

100005 3 tcp 38996 mountd





Any and all help would be greatly appreciated.





--

Enils Bashi

Programmer

Chesapeake Bay Program

Annapolis MD 21403

410-267-9833


2004-06-02 19:04:57

by Trond Myklebust

[permalink] [raw]
Subject: Re: nfs over tcp problem on Redhat 9

P=E5 on , 02/06/2004 klokka 11:43, skreiv Enils Bashi:

> 100003 2 udp 2049 nfs
>=20
> 100003 3 udp 2049 nfs

Here's the problem. RedHat unfortunately only recently enabled TCP
support for knfsd. Your kernel appears to be one of the older versions
that only supports UDP.

Cheers,
Trond


-------------------------------------------------------
This SF.Net email is sponsored by the new InstallShield X.