[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: NFS mount very very slow



James Sinnamon wrote:

Dear John et al,

On Fri, 25 Jun 2004 09:48 pm, John Summerfield wrote:
James Sinnamon wrote:
Dear list subscribers,

At first I thought my command:

mount -t nfs 192.168.0.6:/etc /mnt/nfs

... had failed.
<snip/>
Eventually, I found, to my surprise, that that the 'mount' command
had not only withstood all my attempts to smother it, but it also
succeeded after all.  I don't know whether it took 15 minutes
or two hours, but whatever  the time lag was, it it had taken far too
long.  can anyone tell me how to work out what the problem could be?

The entry in 192.168.0.6:/etc/exports is:

/etc  192.168.0.2(ro)

.... where 192.168.0.2 is the nfs client.
Probably, lockd isn't running on 0.6. lockd  handles locking, and if
it's not responding you get these enormous timeouts.
I suppgest you find out why, but since you're mounting ro then this is
acceptable too:


mount -t nfs -o nolock 192.168.0.6:/etc /mnt/nfs

The option '-o nolock' works fine, but I will need write access also.

lockd not the problem?
--------------------------------
I installed the package, nfs_common, which contains rpc.lockd, only to to find out that rpc.lockd was NOT necessary because my kernel

Well, I don't have the problem and
 579 ?        S      0:00 [nfsd]
 588 ?        S      0:00 [lockd]
 589 ?        S      0:00 [rpciod]
 592 ?        Ss     0:00 /usr/sbin/rpc.mountd
and
ns:~# uname -r
2.6.3-1-686
ns:~#

which is greater than 2.4. I think.

I've had lockd running as long as I can remember (which might not be always but it could date back before RHL 5.0), and I remember seeing (and hearing about) the problem on RHL.

I can't through any light on why you don't have lockd running: I did nothing special, and AFAIK it is required. I


(version 2.4.25-1) had a version number greater than 2.4. the nfs_common script doesn not start rpc.lockd.

So do I need to enable the kernel's lockd capability or is something
else cause the nfs mount to be slow?

I will try running rpc.mount and nfs.mountd with verbose flags turned on, but any other suggestions would be welcome.

The entry in 192.168.0.6:/etc/exports is still :
  /etc  192.168.0.2(ro)

That's how I knew you were mounting ro:-)



--

Cheers
John

-- spambait
1aaaaaaa@computerdatasafe.com.au  Z1aaaaaaa@computerdatasafe.com.au



Reply to: