LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 03-26-2005, 04:46 PM   #1
Graf-Zahl
LQ Newbie
 
Registered: Feb 2005
Location: Munich, Germany
Distribution: Fedora Core 1
Posts: 5

Rep: Reputation: 0
Unhappy RPC timeout with umount/renewed mount


Hello!

I have set up the most simple nfs-server configuration (I can imagine) and it shows funny behaviour:

Facts which seem relevant to me in this context:
0. I'm running on Fedora Core 1 (somewhat outdated, but well)
1. My nfs-server gets the IP via DHCP from a DSL Router via wireless lan. (192.168.1.11)
Its name "Vigor11" seems to come from the Router also because I configured it nowhere.
2. The /etc/exports looks like this:

"/misc *(rw)"

rpcinfo -p yields:
<snip>
100000 2 tcp 111 portmapper
100000 2 udp 111 portmapper
100024 1 udp 32768 status
100024 1 tcp 32770 status
391002 2 tcp 32771 sgi_fam
100011 1 udp 616 rquotad
100011 2 udp 616 rquotad
100011 1 tcp 619 rquotad
100011 2 tcp 619 rquotad
100003 2 udp 2049 nfs
100003 3 udp 2049 nfs
100003 2 tcp 2049 nfs
100003 3 tcp 2049 nfs
100021 1 udp 32807 nlockmgr
100021 3 udp 32807 nlockmgr
100021 4 udp 32807 nlockmgr
100021 1 tcp 32788 nlockmgr
100021 3 tcp 32788 nlockmgr
100021 4 tcp 32788 nlockmgr
100005 1 udp 634 mountd
100005 1 tcp 637 mountd
100005 2 udp 634 mountd
100005 2 tcp 637 mountd
100005 3 udp 634 mountd
100005 3 tcp 637 mountd
</snip>

4. exportfs yields:
"/misc <world>"

5. My /etc/hosts file looks like this (I currently work with IPs exclusively - if I get this
to work I will start using names):
"127.0.0.1 localhost.localdomain localhost"


Observations:
1. When I boot the server it takes several minutes to start the NFS-service (but it works!)
2. Directly after boot-up I get these lines regarding nfs in /var/log/messages:

<snip>
Mar 26 22:45:52 Vigor11 nfs: rpc.mountd shutdown failed
Mar 26 22:45:52 Vigor11 nfs: nfsd shutdown failed
Mar 26 22:45:52 Vigor11 nfs: rpc.rquotad shutdown failed
Mar 26 22:45:52 Vigor11 nfs: Shutting down NFS services: succeeded
Mar 26 22:45:52 Vigor11 exportfs[3122]: /etc/exports [1]: No 'sync' or 'async' option specified for export "*:/misc". Assuming default behaviour ('sync'). NOTE: this default has changed from previous versions
Mar 26 22:45:52 Vigor11 exportfs: exportfs: /etc/exports [1]: No 'sync' or 'async' option specified for export "*:/misc".
Mar 26 22:45:52 Vigor11 exportfs: Assuming default behaviour ('sync').
Mar 26 22:45:52 Vigor11 exportfs: NOTE: this default has changed from previous versions
Mar 26 22:47:12 Vigor11 kernel: Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
Mar 26 22:47:12 Vigor11 nfs: Starting NFS services: succeeded
Mar 26 22:47:13 Vigor11 nfs: rpc.rquotad startup succeeded
Mar 26 22:47:13 Vigor11 nfs: rpc.nfsd startup succeeded
Mar 26 22:47:13 Vigor11 nfs: rpc.mountd startup succeeded
</snip>

This tells me that I probably should not do "nfs REstart" but "nfs start" in /etc/rc.d/rc.local but nothing more...

3. When I su and do this on the server itself :

-- mount 192.168.1.11:/misc tmp/

it takes long (almost a minute) but it works

If I try to mount the same share from a client now I get a
"mount: RPC: Timed out"

4. When I do then (on the server)

-- umount tmp/

It again takes quite a while and I get this:

"Bad UMNT PBC: RPC: Timed out"

but the mount is gone! (so far so good)

5. When I try to remount (on the server) the same way as in 3. I get after apropriate waiting time again a

"RPC: RPC Timed out"

If I restart the nfs-server (takes long but works) I can mount the share again on the client or on the server but only on one machine at a time.

Grateful for advice!

Tassilo
 
Old 03-27-2005, 10:34 AM   #2
Graf-Zahl
LQ Newbie
 
Registered: Feb 2005
Location: Munich, Germany
Distribution: Fedora Core 1
Posts: 5

Original Poster
Rep: Reputation: 0
Smile

Seems I solved this one...

The hangup was gone after I added lines for client and server to my /etc/hosts file and restarted nfs. Obviously a name-resolution thing. (Not that I really understand it - so anyone with an explanation is welcome to advise me).
 
Old 07-31-2005, 06:31 PM   #3
DanielTan
Member
 
Registered: Sep 2004
Location: Malaysia
Distribution: FC6, Solaris
Posts: 340

Rep: Reputation: 30
Graf, i noticed you have solved this problem. I'm also facing this issue, would you please tell me how you solved it ? Thanks

Regards
Daniel


Quote:
Originally posted by Graf-Zahl
Seems I solved this one...

The hangup was gone after I added lines for client and server to my /etc/hosts file and restarted nfs. Obviously a name-resolution thing. (Not that I really understand it - so anyone with an explanation is welcome to advise me).
 
Old 08-01-2005, 02:48 AM   #4
Graf-Zahl
LQ Newbie
 
Registered: Feb 2005
Location: Munich, Germany
Distribution: Fedora Core 1
Posts: 5

Original Poster
Rep: Reputation: 0
Hi Daniel,

did you check that the lines I mentioned in my fix for /etc/hosts are present in yours? (For server and client vice versa)
That was pretty much all I did and then it worked. Good luck!

Tassilo
 
Old 08-01-2005, 11:07 AM   #5
DanielTan
Member
 
Registered: Sep 2004
Location: Malaysia
Distribution: FC6, Solaris
Posts: 340

Rep: Reputation: 30
Graf, yes in the server and client , i have /etc/hosts file and inside has 127.0.0.1 localhost.localdomain xxx localhost. also i put /etc/hosts.allow for the server hostname and ip. Correct ? Could you pls step by step list out what have you done ? Just want to reconfirm. Thanks alot.

Regards
Daniel




Quote:
Originally posted by Graf-Zahl
Hi Daniel,

did you check that the lines I mentioned in my fix for /etc/hosts are present in yours? (For server and client vice versa)
That was pretty much all I did and then it worked. Good luck!

Tassilo
 
  


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
Mount :RPC timed out DanielTan Linux - Networking 2 08-01-2005 06:24 PM
RPC Mount Timed Out BarryT Linux - General 4 03-15-2004 08:45 AM
mount/umount devit Linux - General 4 02-19-2004 12:37 PM
mount: RPC: Timed out tommyclee Linux - Networking 11 11-21-2003 12:34 AM
mount and umount wr3ck3d Linux - Newbie 4 12-14-2002 04:04 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:27 AM.

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