Skip to contentSkip to conversation

try tcp first; then udp

DISCUSSION Oren Held 2 participants 2 messages Nov 1, 2003 – Nov 3, 2003

Subsystems (2)
lore
Share & tools
lore

Oren Held

author
#0 lore raw

Hi,

I wonder if there's a way to mount an nfs share without specifying tcp or udp mount. I think that this is how Solaris behaves: it tries first tcp, if it's not good, then it tries udp.

I've been looking for such a mount option and found none; I think it can be really useful when one has hetrogenous nfs servers (some use tcp, some use udp) - in the case I just want it to work and don't care which protocol it'll use.

Is there a way to do it with the current kernel/mount versions?

10x

- Oren

-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here: http://sourceforge.net/donate/
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs

#1 lore raw

I asked this question a little why ago - Trond Myklebust has a patch that does lots of other things, but can be easily modified to try tcp first, then udp (by default his patch does udp first) see:

http://marc.theaimsgroup.com/?l=linux-nfs&m=105111029228592&w=2

I had to make a couple of other changes to the patch to get it to compile with the RedHat version of the mount (util-linux) source RPM I'm using - I've put my modified patch at:

ftp://ftp.moving-picture/private/james/util-linux-2.11n-tcpmount.patch.gz

I also had a minor problem on older RH7.1 machines that also need the following patch:

ftp://ftp.moving-picture/private/james/util-linux-2.11n-cbuf.patch.gz

I've been using this modified mount for a few months without problems.

James Pearson

Quoted 18 lines · Oren Held

Hi,

I wonder if there's a way to mount an nfs share without specifying tcp or udp mount. I think that this is how Solaris behaves: it tries first tcp, if it's not good, then it tries udp.

I've been looking for such a mount option and found none; I think it can be really useful when one has hetrogenous nfs servers (some use tcp, some use udp) - in the case I just want it to work and don't care which protocol it'll use.

Is there a way to do it with the current kernel/mount versions?

10x

- Oren

Quoted 8 lines

-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here: http://sourceforge.net/donate/
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs

-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here: http://sourceforge.net/donate/
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs