LinuxQuestions.org
Review your favorite Linux distribution.
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 06-12-2005, 09:57 AM   #1
Gsee
Member
 
Registered: Mar 2004
Location: Australia
Distribution: FreeBSD, OpenBSD, Gentoo, Debian
Posts: 153

Rep: Reputation: 30
Slow NFS Mount between Gentoo & FreeBSD


Ok, I've been fighting with this one for a while. Google is just about sick of me asking the same question in a number of different ways.

Environment:

I have a FreeBSD 5.3 RELEASE fileserver - from here I share the /usr/ports, /usr/obj /usr/src to my four other FreeBSD boxes using nfs - works fine.

I also share a mount for my OpenBSD router's ports collection - works fine.

My problem lies within the mount for my primary data. This data is located at '/mnt/200Gig' and is accessed by both Windows machines (Samba 3.x) and two Gentoo 2005.0 boxes (using nfs).

Samba is working just fine. I have all my users able to log in and users can only access what they should be able to access. Fantastic.

NFS is a totally different story, and so far it doesn't have a happy ending.

Firstly, the relevant line of my fstab file on one of the Gentoo boxes:
# Network Mounts
fileserver:/mnt/200Gig /mnt/network/fileserver nfs noauto,noatime,user 0 0

Now if I'm to try and do '#mount -t nfs fileserver:/mnt/200Gig /mnt/network/fileserver' as either my everyday user OR as root - the mount can take literally close to 5 minutes. Sure enough, the mount will be successful, but hardly practical in timing. It seems (by google) this is a common problem, but no one else's resolutions seem to be able to help me.

At one stage the Gentoo box would complain something like 'NFS version X failed, trying version Y' and the version Y would work. So, the best option I could find was to recompile my Gentoo kernel with no version X support, theoretically it would no longer try this. Well, the error stopped, but the mount still takes AGES. Im stuck for ideas after this. At this stage neither box is running a firewall until I can get this sorted.

There is another (smaller) problem following this which is related to getting users accessing their respective directories with an nfs mount. I'll hassle with that after this first problem is resolved.

I hope SOMEONE can suggest a resolution for this because I really need nfs mounting to work.

Thanks for your time,

Gsee

My exports file from the server:

/OBSD -alldirs -maproot=root router
/mnt/200Gig -mapall=root 192.168.1.103 laptoo 192.168.1.111 beastie
/usr/ports /usr/src /usr/obj -maproot=root mailserver beastie dnsserver server
/ftp/SeeResults/online -maproot=user42 mailserver

N.B. There is only one space between each hostname in the actual file, I've only increased this for readability in a web browser.

Thanks again.
 
Old 10-02-2005, 11:13 PM   #2
AW4
LQ Newbie
 
Registered: Oct 2005
Posts: 1

Rep: Reputation: 0
The problem may be on the Gentoo side. Check client syslog messages for RPC errors. This may indicate that the portmap service is either not installed or not running.

NFS uses RPC rather frequently, and the fallback alternatives take a long time to negotiate. This should also alleviate long delays for writes and locking. I am not a Gentoo user, but this fixed my problems on Debian/Ubuntu connecting to NFS shares on both FreeBSD as well as NetworkAppliance Filers (nfs2/UDP).

Good luck!
 
Old 10-18-2005, 08:17 AM   #3
acidbrain
LQ Newbie
 
Registered: Oct 2005
Distribution: Gentoo
Posts: 1

Rep: Reputation: 0
Thumbs up

I had exactly the same problem: FreeBSD nfs server, Gentoo client, mounting takes a lot of time.
Starting portmap solved it, the nfs share is mounted immediately.

Thank you!
 
Old 10-23-2006, 04:34 PM   #4
pats
Member
 
Registered: Jul 2005
Distribution: Debian Sarge/Etch, (K)Ubuntu, FC6, AIX5.3, VMWare ESXServer
Posts: 159

Rep: Reputation: 30
Had the same problem between ubuntu (client) and fedora core 5 (server). It seems that portmap is not part of the depenancies for nfs client packages. bit silly cos although not required it does seem to be pointless without.
I assume there are security issues associated with portmap... dunno.
Also to Gsee, you may well run in some trouble with firewalling nfs as it uses dynamic port allocations and (depending on the firewall software/hardware) you need to set the server to use static ports for the 4/5 different services that nfs relies on.

Quote:
Originally Posted by acidbrain
I had exactly the same problem: FreeBSD nfs server, Gentoo client, mounting takes a lot of time.
Starting portmap solved it, the nfs share is mounted immediately.

Thank you!
 
  


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
Extremely slow mount times for NFS wayloud Linux - Networking 2 06-04-2005 12:58 AM
Slow NFS mount, server questions dezza Linux - Networking 1 11-17-2004 02:49 AM
How to make sound works on FreeBSD & mount extended partition & ATI radeon driver Ninja_212 *BSD 3 11-02-2004 06:36 AM
NFS mount very slow Toxe Linux - Networking 5 10-25-2004 10:26 AM
What would make an NFS mount EXTREMELY slow ? lostboy Linux - General 3 06-17-2004 09:20 PM

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

All times are GMT -5. The time now is 12:56 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