Operating System - HP-UX
1832609 Members
2395 Online
110043 Solutions
New Discussion

NFS serives running via udp / tcp

 
SOLVED
Go to solution
Aslam Ghumra_2
Frequent Advisor

NFS serives running via udp / tcp

Hi All

I have several HP-UX 11.11 servers which use NFS to mount filesystem from a NAS server (NAS9000 - windows based ). After running nfsstat -m on each machine I noticed one machine using the protocol udp whereas the others are using tcp.

I would like to change it so that all my machines were using tcp as the protocol. Does anyone know how to do this.

The /etc/rc.config.d/nfsconf file on all the servers sre identical.

I have also downloaded the white paper by David Olkey, and am going through this as well.

However any help will be most appreciated.

Cheers, Aslam
12 REPLIES 12
Peter Godron
Honored Contributor

Re: NFS serives running via udp / tcp

Aslam,
when you start the nfsd service you can specify the protocol with the -p option.
Also have a look at the /etc/services file for nfsd
RAC_1
Honored Contributor
Solution

Re: NFS serives running via udp / tcp

How do you mount them? If manually, then you need to specify option -o proto=tcp on command line. If you are mounting through /etc/fstab at boot, you can specifiy in /etc/rc.config.f/nfsconf file. In MOUNTD_OPTIONS. If you are using automounter, then you can specifiy in master map.
There is no substitute to HARDWORK
Aslam Ghumra_2
Frequent Advisor

Re: NFS serives running via udp / tcp

Thnaks for the quick reply's.

The filesystems are mounted via fstab, and I am not using AUTOMOUNT.
Aslam Ghumra_2
Frequent Advisor

Re: NFS serives running via udp / tcp

Peter,

In my /etc/services file I have the following :

# grep -i nfs /etc/services
nfsd-keepalive 1110/udp # Client status info
nfsd-status 1110/tcp # Cluster status info
nfsd 2049/udp # NFS remote file system
nfsd 2049/tcp # NFS remote file system

But I am mounting these file system via fstab. However I'm dont understand why this particular server is mounting using udp whereas the others are mounting via tcp

Cheers, Aslam
Aslam Ghumra_2
Frequent Advisor

Re: NFS serives running via udp / tcp

RAC,

sorry for not reading your response correctly.

In my /etc/rc.config.d/nfsconf file
my current daemon values are :

LOCKD_OPTIONS=""
STATD_OPTIONS=""
MOUNTD_OPTIONS=""

Your suggestion is to change it to

LOCKD_OPTIONS=""
STATD_OPTIONS=""
MOUNTD_OPTIONS="o proto=tcp"

Is this correct ?

Cheers, Aslam

Arunvijai_4
Honored Contributor

Re: NFS serives running via udp / tcp

Hi Aslam,

You can add NFS_TCP=1 in /etc/rc.config.d/nfsconf

-Arun

"A ship in the harbor is safe, but that is not what ships are built for"
RAC_1
Honored Contributor

Re: NFS serives running via udp / tcp

NFS_TCP=1
or
MOUNTD_OPTIONS="-o proto=tcp"

Should do it.
There is no substitute to HARDWORK
Muthukumar_5
Honored Contributor

Re: NFS serives running via udp / tcp

Read this:

http://unix.derkeiler.com/Mailing-Lists/HP-UX-Admin/2004-09/0045.html

--
Muthu
Easy to suggest when don't know about the problem!
Aslam Ghumra_2
Frequent Advisor

Re: NFS serives running via udp / tcp

Thanks a lot everyone,

I'll add in the NFS_TCP = 1 option in my nfsconf file, and see what happens when I reboot around Easter.

HOwever I am still unsure as to why this machine out of several others wanted to the protocol to be udp instead of tcp.

As long as its fixed, that all that counts now.

thank you to all.

Aslam
Arunvijai_4
Honored Contributor

Re: NFS serives running via udp / tcp

Hi Aslam,

You may need to take a look at these threads,

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=895314
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=717905&admit=-682735245+1142938130810+28353475

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Aslam Ghumra_2
Frequent Advisor

Re: NFS serives running via udp / tcp

Thanks to all who had a look and / or replied.
Dave Olker
Neighborhood Moderator

Re: NFS serives running via udp / tcp

Hello Aslam,

I know this thread is closed, but I wanted to offer to help if I can.

Some of the suggestions I've seen in this thread are incorrect, like adding NFS_TCP in the nfsconf file or changing the MOUNTD_OPTIONS to add TCP.

Adding NFS_TCP to the nfsconf file is not necessary at 11.11 because TCP is pre-enabled on 11.11 and it is the default transport used by NFS. The fact that you have any filesystems mounting via TCP on this system means TCP is enabled.

The MOUNTD_OPTIONS field is used to pass parameters to the rpc.mountd daemon - which has nothing to do with mounting a filesystem via UDP or TCP.

In a case like this there is likely something else going on and hopefully it's not something you should have to reboot your system to resolve.

I'd be happy to help you get this working if you wish. Since this thread is closed, you can either open a new thread or you can email me directly at: dave.olker@hp.com.

Regards,

Dave


I work at HPE
HPE Support Center offers support for your HPE services and products when and how you need it. Get started with HPE Support Center today.
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]
Accept or Kudo