NFS mount very slow
Hello world!
I was installing an nfs server the other day and got a strange problem with mounting. When I try mounting an nfs file system from another linux box it takes nearly two minutes to complete. mount just sits there doing nothing and then all of a sudden it returns and the file system is successfully mounted. Only problem is that the mount takes ages to complete. I allready tried tcpdump and watching the traffic but the problem seems to have nothing to do with the server because the server sends all packages to the client. (At least I suppose that the client got all packages - after all I am no NFS expert.) After it got all the packages the client just sits there for two minutes before it finishes the mount. So it seems to be a client-only problem. But none the less I'll post the output of tcpdump here anyways, maybe it may provide some help: Code:
16:22:55.653648 IP 192.168.32.2.707 > 192.168.32.4.111: S 4120504710:4120504710(0) win 5840 <mss 1460,sackOK,timestamp 5605645[|tcp]> I tried mounting the file system with: Code:
mount -t nfs 192.168.32.4:/home foo -o rw,hard,intr Some further information: - NFS server = 192.168.32.4 - NFS client = 192.168.32.2 - Server and client kernel: 2.6.8.1 - nfs-utils: 1.0.6 - util-linux: 2.12 Any ideas or suggestions? |
I use these options to mount nfs partition :
Code:
mount -t nfs 192.168.32.4:/home foo -o rw,sync,rsize=8192,wsize=8192,intr Also I recompiled kernel with nfs feature as built-in, I dunno if it helps though... |
Looks like I could solve the mystery: I have to start portmap on the other box first. After that mount is as fast as it is supposed to be. :)
Who would have guessed... |
@Toxe
Did starting portmap worked or not ! -Akshat |
Portmapp is needed for NFS to work properly.
The portmapper maps a RPC program number with a TCP service port. Without this mapping there are no way for the client to reach the server. The RPC service is a solution used to make certain services available remotely through the TCP/IP protocol. |
Quote:
|
All times are GMT -5. The time now is 11:24 AM. |