Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 08-07-2006, 04:21 PM   #1
LQ Newbie
Registered: May 2006
Posts: 4

Rep: Reputation: 0
Stale NFS mounts and UDP vs. TCP

Novell Linux: Linux version 2.6.5-7.201-bigsmp (geeko@buildhost) (gcc version 3.3.3 (SuSE Linux)) #2 SMP Thu May 18 16:06:47 MDT 2006

Hello Forum!

I have a problem that I hope you can help me understand.

We have a computer environment that consists of using NIS and AMD. We were having a long standing issue of stale NFS mounts, and as it turns out, we had the following parameter set in our amd.conf file: nfs_proto = udp. We were thinking that if we switch from UDP to TCP, this would help get rid of the stale NFS mounts. The problem we are having is when the Linux machine is rebooted, it fails to automount a critical machine (boise1). After the reboot, in order to mount the machine boise1, we have to run the following command: amq -uf /net/boise1. After running amq, life is good. Here's what I observed.

Is there a reason why boise1 is not being properly automounted after reboot? Any help with this would be greatly appreciated!

From dmesg:

RPC: Can't bind to reserved port (98).
RPC: can't bind to reserved port.
RPC: error 5 connecting to server boise1
nfs_get_root: getattr error = 5
nfs_read_super: get root inode failed

After the amq -uf /net/boise1 command, I can run mount | grep boise1, and I get this:

boise1:/ on /.automount/net/boise1 type nfs (nounmount,vers=3,proto=tcp) boise1:/local on /.automount/net/boise1/local type nfs (nounmount,vers=3,proto=tcp)

Then I am able to cd into /net/boise1.

Here's the output from the rpcinfo:

program vers proto port
100000 2 tcp 111 portmapper
100000 2 udp 111 portmapper
100007 2 udp 894 ypbind
100007 1 udp 894 ypbind
100007 2 tcp 897 ypbind
100007 1 tcp 897 ypbind
300019 1 tcp 859 amd
300019 1 udp 860 amd
100024 1 udp 32770 status
100021 1 udp 32770 nlockmgr
100021 3 udp 32770 nlockmgr
100021 4 udp 32770 nlockmgr
100024 1 tcp 32768 status
100021 1 tcp 32768 nlockmgr
100021 3 tcp 32768 nlockmgr
100021 4 tcp 32768 nlockmgr
100003 2 udp 2049 nfs
100003 3 udp 2049 nfs
100227 3 udp 2049 nfs_acl
100003 2 tcp 2049 nfs
100003 3 tcp 2049 nfs
100227 3 tcp 2049 nfs_acl
100005 1 udp 991 mountd
100005 1 tcp 1006 mountd
100005 2 udp 991 mountd
100005 2 tcp 1006 mountd
100005 3 udp 991 mountd
100005 3 tcp 1006 mountd


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Stale NFS Handle without using NFS? dapsychous Red Hat 5 11-25-2006 08:50 PM
Is NFS performance faster with UDP vs TCP? Thaidog Linux - Networking 1 12-26-2005 02:05 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

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

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