Senior Member
Registered: Jun 2006
Location: UNIX
Distribution: FreeBSD
Posts: 2,657
|
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 !!
|