LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 11-22-2013, 01:47 PM   #1
brownwrap
Member
 
Registered: Jan 2010
Posts: 121

Rep: Reputation: 16
tcp versus udp nfs


Earlier today I had a request to nfs mount a couple of partitons. When I went to the client, I found the entries in /etc/fstab already:

Code:
store1:/shared/radsm_npp        /radsm_npp      nfs     rw,bg,hard,intr,vers=3,proto=tcp,timeo=600,retrans=2,rsize=32768,wsize=32768,tcp 0 0
store1:/shared/radsm_data_repos /radsm_data_repos nfs   rw,bg,hard,intr,vers=3,proto=tcp,timeo=600,retrans=2,rsize=32768,wsize=32768,tcp 0 0
On the server side I could see the request being made, but the mount wouldn't take place. Someone said the had ran across this problem recently and used udp instead of tcp. I changed ONLY the 2nd tcp entry and it worked:
Code:
store1:/shared/radsm_npp        /radsm_npp      nfs     rw,bg,hard,intr,vers=3,proto=tcp,timeo=600,retrans=2,rsize=32768,wsize=32768,udp 0 0
store1:/shared/radsm_data_repos /radsm_data_repos nfs   rw,bg,hard,intr,vers=3,proto=tcp,timeo=600,retrans=2,rsize=32768,wsize=32768,udp 0 0
The man page talks about tcp and udp, but why would there be two references to the protocol on the same line. And why does changing just one work? I frankly didn't notice the first one, and it was by accident it worked. Should both entries be changed?
 
Old 11-23-2013, 05:23 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
The udp/tcp entry should only appear once.

The full blown way to set it is proto=<proto>, using <proto>, without the proto= part is the short version.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
nfs (tcp & udp) Eileen Linux - Networking 16 08-17-2009 03:11 AM
NFS rhel - tcp/udp ebcdic Linux - Software 1 04-09-2007 09:45 AM
Stale NFS mounts and UDP vs. TCP king0770 Linux - Networking 0 08-07-2006 04:21 PM
nfs client should it use tcp or udp to nfs serve rportmapper andersonas Linux - Networking 2 06-30-2004 12:05 PM
Switching nfs from udp to tcp 850NA Linux - Networking 0 09-01-2003 10:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 05:53 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration