Unix Technical Forum

nfs mount hangs

This is a discussion on nfs mount hangs within the Gentoo Linux Support forums, part of the Unix Operating Systems category; --> I have created two nfs mount points on my debian box and I can see them (as root) on ...


Go Back   Unix Technical Forum > Unix Operating Systems > Gentoo Linux Support

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-21-2008, 09:12 AM
ken
 
Posts: n/a
Default nfs mount hangs

I have created two nfs mount points on my debian box and I can
see them (as root) on my gentoo box with "showmount -e 192.168.0.3"
(that's the debian box'es net addr).

If I try and mount one of these exports the mount command hangs
and I have to kill both it and the bash shell to recover the
xterm or the vt login. A ps ax doesn't seem to show portmap
running, that may be my problem. If so How do I start portmap?
I DO seem to have portmap installed.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-21-2008, 09:12 AM
Sybren Stuvel
 
Posts: n/a
Default Re: nfs mount hangs

ken enlightened us with:
> A ps ax doesn't seem to show portmap running, that may be my
> problem. If so How do I start portmap?


Make sure you have done

$ rc-update add nfs default

Then do /etc/init.d/nfs start.

Sybren
--
The problem with the world is stupidity. Not saying there should be a
capital punishment for stupidity, but why don't we just take the
safety labels off of everything and let the problem solve itself?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-21-2008, 09:13 AM
ken
 
Posts: n/a
Default Re: nfs mount hangs

Sybren Stuvel wrote:

> ken enlightened us with:
>> A ps ax doesn't seem to show portmap running, that may be my
>> problem. If so How do I start portmap?

>
> Make sure you have done
>
> $ rc-update add nfs default
>
> Then do /etc/init.d/nfs start.
>
> Sybren

Thanks, that seems to have started portmap. BTW can you (or someone) point
me to a url with good documentation on managing Gentoo's rc files? This is
the kind of stuff I am always scratching my head about when installing new
system pacakges.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-21-2008, 09:13 AM
Sybren Stuvel
 
Posts: n/a
Default Re: nfs mount hangs

ken enlightened us with:
> BTW can you (or someone) point me to a url with good documentation
> on managing Gentoo's rc files? This is the kind of stuff I am
> always scratching my head about when installing new system pacakges.


Just do 'rc-update' without any arguments. Also check out rc-status.
Google for them to find more.

Sybren
--
The problem with the world is stupidity. Not saying there should be a
capital punishment for stupidity, but why don't we just take the
safety labels off of everything and let the problem solve itself?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-21-2008, 09:13 AM
Blake
 
Posts: n/a
Default Re: nfs mount hangs

ken wrote:

> If I try and mount one of these exports the mount command hangs
> and I have to kill both it and the bash shell to recover the


Did you use the 'tcp' option when you mounted it? The default is udp, which
didn't work for me.

Blake
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 02-21-2008, 09:13 AM
Claes Wikstrom
 
Posts: n/a
Default Re: nfs mount hangs

On 2005-02-08, Blake <bleverett@pants.att.net> wrote:
> ken wrote:
>
>> If I try and mount one of these exports the mount command hangs
>> and I have to kill both it and the bash shell to recover the

>
> Did you use the 'tcp' option when you mounted it?
> The default is udp, which
> didn't work for me.
>


If nfs/tcp works but normal nfs, it is a typical indication
of a packetloss/NIC problem.
Try with ping (or other better tools ???) if you have
packetloss.


/klacke

--
Claes Wikstrom -- Caps lock is nowhere and
http://www.hyber.org -- everything is under control
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 02-21-2008, 09:13 AM
Blake
 
Posts: n/a
Default Re: nfs mount hangs

Claes Wikstrom wrote:

> On 2005-02-08, Blake <bleverett@pants.att.net> wrote:
>> Did you use the 'tcp' option when you mounted it?
>> The default is udp, which
>> didn't work for me.
>>

>
> If nfs/tcp works but normal nfs, it is a typical indication
> of a packetloss/NIC problem.
> Try with ping (or other better tools ???) if you have
> packetloss.
>
>
> /klacke
>


I don't think it was packet loss. I checked with ifconfig and another
program, and found no bad packets. So I don't think that it was a hardware
problem. Ping -f loses zero packets between the two machines.

The symptom I had was that NFS traffic would slow to a crawl when doing a
big transfer, and only in one direction. I could xfer from my old Mandrake
system to my new Gentoo system just fine (NFS drives exported from the
Gentoo system). But when moving the other way, the file transfer would
work fine for a while (10 secs to 1 minute), then it would slow to a crawl,
going from about 10MB/sec to 40KB/sec. It would be really slow until the
xfer was done. A new xfer would always work at high speed until it went
nutty, then crawl for the remainder of the transfer. The file transfer
always worked, but very slowly.

After a ton of research I saw a suggestion to use the TCP mount flag, which
has made NFS pretty solid for me.

Blake

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 10:05 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com