LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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-11-2006, 04:31 PM   #1
Xeratul
Senior Member
 
Registered: Jun 2006
Location: UNIX
Distribution: FreeBSD
Posts: 2,657

Rep: Reputation: 255Reputation: 255Reputation: 255
Slow Nfs server/client


Hi,

Everthg works great under my router (internet, ssh, ftp...) but the Nfs
it's terribly slow
it 's of no way

My server 192.168.123.100 config :
===========
at the startup I mount the folder in /home
this is working greatly !!
with in rc2.d : mount IP:/mnt/hda5/home ;
/etc/fstab:
Quote:
192.168.123.100:/mnt/hda5/home /home nfs hard,rsize=8192,wsize=8192,timeo=14,sync,nolock,in tr 0 0

/etc/hosts.allow:
Quote:
portmap: 192.168.123.100 , 192.168.123.101 , 192.168.123.102 , 192.168.123.103




lockd: 192.168.123.100 , 192.168.123.101 , 192.168.123.102 , 192.168.123.103
rquotad: 192.168.123.100 , 192.168.123.101 , 192.168.123.102 , 192.168.123.103
mountd: 192.168.123.100 , 192.168.123.101 , 192.168.123.102 , 192.168.123.103
statd: 192.168.123.100 , 192.168.123.101 , 192.168.123.102 , 192.168.123.103
nfs: 192.168.123.100 , 192.168.123.101 , 192.168.123.102 , 192.168.123.103
nfsd: 192.168.123.100 , 192.168.123.101 , 192.168.123.102 , 192.168.123.103



/etc/hosts.deny:
Quote:
portmap:ALL

lockd:ALL
mountd:ALL
rquotad:ALL
statd:ALL
nfs:ALL

my rpcinfo:
Quote:
program vers proto port
100000 2 tcp 111 portmapper
100000 2 udp 111 portmapper
100024 1 udp 679 status
100024 1 tcp 682 status
100003 2 udp 2049 nfs
100003 3 udp 2049 nfs
100003 4 udp 2049 nfs
100003 2 tcp 2049 nfs
100003 3 tcp 2049 nfs
100003 4 tcp 2049 nfs
100021 1 udp 32772 nlockmgr
100021 3 udp 32772 nlockmgr
100021 4 udp 32772 nlockmgr
100021 1 tcp 32769 nlockmgr
100021 3 tcp 32769 nlockmgr
100021 4 tcp 32769 nlockmgr
100005 1 udp 823 mountd
100005 1 tcp 826 mountd
100005 2 udp 823 mountd
100005 2 tcp 826 mountd
100005 3 udp 823 mountd
100005 3 tcp 826 mountd


nfs pkg installed:
Quote:
dpkg -l | grep nfs
ii libnfsidmap1 0.8-1 An nfs idmapping library
ii nfs-common 1.0.7-3ubuntu1 NFS support files common to client and serve
ii nfs-kernel-server 1.0.7-3ubuntu1 Kernel NFS server support
rc nfs-user-server 2.2beta47-20 User space NFS server

mount nfo: $mount
Quote:
/dev/hda5 on /mnt/hda5 type ext3 (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
nfsd on /proc/fs/nfsd type nfsd (rw)
192.168.123.100:/mnt/hda5/home on /home type nfs (rw,sync,hard,rsize=8192,wsize=8192,timeo=14,noloc k,intr,addr=192.168.123.100)

/etc/auto.master:
Quote:
cat /etc/auto.master
#
# $Id: auto.master,v 1.3 2003/09/29 08:22:35 raven Exp $
#
# Sample auto.master file
# This is an automounter map and it has the following format
# key [ -mount-options-separated-by-comma ] location
# For details of the format look at autofs(5).
#/misc /etc/auto.misc --timeout=60
#/misc /etc/auto.misc
#/net /etc/auto.net

My Client 192.168.123.101 config :
==========
/etc/fstab
Quote:
192.168.123.100:/mnt/hda5/home /home nfs hard,nolock,rsize=8192,wsize=8192,timeo=14,intr 0 0

/etc/hosts.allow
Quote:
portmap: 192.168.123.100 , 192.168.123.101 , 192.168.123.102



lockd: 192.168.123.100 , 192.168.123.101 , 192.168.123.102 , 192.168.123.103 , 192.168.123.104 , 192.168.123.105
rquotad: 192.168.123.100 , 192.168.123.101 , 192.168.123.102 , 192.168.123.103 , 192.168.123.104 , 192.168.123.105
mountd: 192.168.123.100 , 192.168.123.101 , 192.168.123.102 , 192.168.123.103 , 192.168.123.104 , 192.168.123.105
statd: 192.168.123.100 , 192.168.123.101 , 192.168.123.102 , 192.168.123.103 , 192.168.123.104 , 192.168.123.105

nfs: 192.168.123.100 , 192.168.123.101 , 192.168.123.102 , 192.168.123.103 , 192.168.123.104 , 192.168.123.105



rpcinfo -p
Quote:
winwood@laptop06:~$ rpcinfo -p
program vers proto port
100000 2 tcp 111 portmapper
100000 2 udp 111 portmapper
100024 1 udp 691 status
100024 1 tcp 694 status
100005 1 udp 690 mountd
100005 1 tcp 693 mountd
100005 2 udp 690 mountd
100005 2 tcp 693 mountd
100005 3 udp 690 mountd
100005 3 tcp 693 mountd
100003 2 udp 2049 nfs
100003 3 udp 2049 nfs
100003 4 udp 2049 nfs
100003 2 tcp 2049 nfs
100003 3 tcp 2049 nfs
100003 4 tcp 2049 nfs
100021 1 udp 32768 nlockmgr
100021 3 udp 32768 nlockmgr
100021 4 udp 32768 nlockmgr
100021 1 tcp 32769 nlockmgr
100021 3 tcp 32769 nlockmgr
100021 4 tcp 32769 nlockmgr

/etc/hosts.deny
Quote:
# You may wish to enable this to ensure any programs that don't
# validate looked up hostnames still leave understandable logs. In past
# versions of Debian this has been the default.
# ALL: PARANOID

portmap:ALL

lockd:ALL
mountd:ALL
rquotad:ALL
statd:ALL

My nfs-installed pkg:
Quote:
winwood@laptop06:~$ cat /etc/autonfs.master
cat: /etc/autonfs.master: No such file or directory
winwood@laptop06:~$ dpkg -l |grep nfs
ii libnfsidmap1 0.8-1 An nfs idmapping library
ii nfs-common 1.0.7-3ubuntu1 NFS support files common to client and serve
ii nfs-kernel-server 1.0.7-3ubuntu1 Kernel NFS server support
winwood@laptop06:~$ mount --vers
mount: mount-2.12p
winwood@laptop06:~$



================
I think I have found the problem or not ... (?)

1/I read that server/client non identical FULL / HALF duplex can be the reason ??

2/ that I have to measure my ethernet line
when i did :

ping -s 8192 192.168.123.100
(server)
i get no bytes !! nothing

ping -s 256 192.168.123.100
i get 1ms

ping -s 48 192.168.123.100
i get 0.48ms

What should I do ??

Thank you very much for you help !!
 
Old 06-11-2006, 06:45 PM   #2
Habu
Member
 
Registered: Apr 2005
Location: Malaysia
Distribution: Fedora, Suse
Posts: 108

Rep: Reputation: 15
For the ping, i believe the dest. computer might not reply to large packet sizes. I've seen this happen a few times, but not consistently for every machine. Perhaps it's got to do with os settings, some kind of dos prevention maybe? Not sure.
NFS (the rpc stuff actually) uses random ports. You'll have to set them up to use static ports http://www.linuxquestions.org/questi...d.php?t=294069

Then you'll need to open the appropriate ports in the firewall. I've had this problem as well from way back, even with static ports the damn thing takes ages to mount. After mounting it works fine though. Once upon a time i got it right, and the mounting was fast. Then i had to format the machine and it went back to being slow. Most of the time though, it works if i disable the firewall, so i guess it's got something to do with that. Good luck!
 
  


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
how to mount a nfs mount from linux client to AIX nfs server dennyqian AIX 13 04-11-2016 11:30 PM
SUSE NFS client can't detect an NFS server RedBoot SUSE / openSUSE 4 01-19-2009 11:56 PM
NFS client = Linux, NFS server = Mac OS X Tiger --> Hell of a problem make Linux - Networking 9 03-10-2006 05:16 AM
SuSE 9.0 NFS client with RHL 7.3 NFS server ocjacob Linux - Networking 0 02-01-2005 01:01 PM
NFS Client Server software? neilcpp Linux - Networking 5 02-07-2004 11:59 AM

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

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