Linux NFS client hangs

Linux NFS client hangs

Post by Eu » Wed, 14 Jun 2000 04:00:00



Greetings,

I've installed SuSE 6.4 in two machines connected by Ethernet
and I'm now trying to setup a NFS filesystem, to no success.
The network works perfectly, I can telnet between them with no
problems, but I can't access files on the server through NFS.
The problem is :

-I can mount the NFS filesystem on the client.
-I can navigate (cd, ls, dir) through the directories on the NFS
filesystem
-When I try to either read or write a file on the NFS then the
process (not the system) hangs indefinitly (well I only waited
for 5 minutes...)
-The only way to resume operation on the hung console is to,
using another virtual console, do a kill -9 on the rpciod
process running on the client.

This is a typical scenario : I mount the NFS, cd to some
directory in it, use emacs to create a new file; when I try to
save it emacs hangs. I change to another virtual console, log on
to the client, telnet to the server and everything works, but
emacs still is hung.
Another scenario : I mount the NFS, cd to some directory (any
inside the NFS filesystem), do a cat to a existing file and it
hangs. But again both system respond and I can work on both of
them.

The server is running Apache, Samba and obviously a NFS server
(userspace). The client is running Samba.

The relevant file are :

- Contents of EXPORTS on server --------------------------------

/       192.168.0.1(rw,no_root_squash)

- RPCINFO -p on server -----------------------------------------

   program vers proto   port
    100000    2   tcp    111  portmapper
    100000    2   udp    111  portmapper
    100005    1   udp    856  mountd
    100005    2   udp    856  mountd
    100005    1   tcp    859  mountd
    100005    2   tcp    859  mountd
    100003    2   udp   2049  nfs
    100003    2   tcp   2049  nfs

- FSTAB file on client (clipped) -------------------------------

192.168.0.10:/  /mnt/nfs                  nfs
hard,intr,user,rw,dev,exec,suid,noauto 0   0

- MOUNT command on client --------------------------------------

mount 192.168.0.10:/ /mnt/nfs

The server is an AMD5x86/133 with 16 MB and the client is an
Athlon 500 with 128 MB (the server is a 'leftover system').

Thanks in advance,

Carlos A. R. Azevedo

Got questions?  Get answers over the phone at Keen.com.
Up to 100 minutes free!
http://www.keen.com

 
 
 

Linux NFS client hangs

Post by Eu » Fri, 16 Jun 2000 04:00:00


Never mind, I've found a fix : rsize = wsize = 1024.

Carlos A. R. Azevedo

* Sent from RemarQ http://www.remarq.com The Internet's Discussion Network *
The fastest and easiest way to search and participate in Usenet - Free!

 
 
 

1. NFS clients hang redhat linux 7.3 and limbo clients accessing auspex ns2000

We are using an Auspex ns2000 at the office for serving a lot
of different directories including our home directories.  The
mounting is controlled with amd getting maps from nis.  This
has worked reasonably well for all of our UNIX boxes and Linux
boxes... until I upgraded my desktop to RedHat 7.3 and an adv.
development box to Limbo (kernel version 2.4.18-5 and 2.4.18-5.58
respectively).

Processes on both of these boxes routinely hang when reading or
writing large files on the Auspex.  Things like ls work fine most
of the time.  Until I started to experience this problem we did
not mount with intr, that meant that when it happened, I couldn't
even kill the processes.  I've fixed that, but I can not get the
hangs to stop.  The mount parameters are:

    opts:=rw,nosuid,nodev,intr

I have messed around with using a smaller rsize and wsize, but that
results in the message

    NFS: short packet in readdir reply!

and does not fix the hang.  I read some discussion that the above
message indicates that the reply is packet is bigger than the buffer
the client has set aside to read it.  The adminstrators of the Auspex
say that they were instructed, by Auspex, to set the rsize and wsize
on the server to 32768.

Any suggestions on what will resolve this problem?  Do I need to tweak
my settings or get the Auspex admins to tweak theirs?  Or do some
surgery?

Thanks much!

--
Dick Schoeller

880 Winter St., Bldg 4 http://schoeller.ne.client2.attbi.com/
Waltham, MA 02454      781.663.4507

"Er ist ein Narr, der meint, es sei nicht schad, das Kind
auszuschtten mit dem Bad"         - Thomas Murner 1512

2. Has anyone set up a Syquest SparQ under Linux?

3. solaris NFS hangs on linux client

4. backup by inode and inconsistencies questions

5. NFS locks hang, FreeBSD 5.0 client, Linux server

6. X vs. XFree (What's the diff?)

7. NFS client locking hangs for period

8. usage of crontab?

9. NFS client hangs when the server goes down

10. NFS client locking hangs for period

11. Poor NFS write performance from Linux clients to NFS Ver 3 servers.

12. NFS client hangs

13. NFS writes hang: client on 100MB, server on 10MB segment