Subject: Re: Nfs clients get frozen when NFS server crashes...
To: Frank van der Linden <fvdl@wasabisystems.com>
From: Sam <sam@epita.fr>
List: netbsd-users
Date: 10/03/2000 18:38:47
On Tue, Oct 03, 2000 at 06:23:13PM +0200, Frank van der Linden wrote:
> Date: Tue, 3 Oct 2000 18:23:13 +0200
> From: Frank van der Linden <fvdl@wasabisystems.com>
> To: Sam <sam@epita.fr>
> Cc: netbsd-users@netbsd.org, tech-kern@netbsd.org
> Subject: Re: Nfs clients get frozen when NFS server crashes...
>
> On Tue, Oct 03, 2000 at 05:05:28PM +0000, Sam wrote:
> >
> > When this hapenns all the netbsd clients that try to access the exported file systems
> > which are not accessible, get stuck, and sometimes get completely frozen.
>
> When this happens, could you, in addition to the other suggestions,
> run a 'ps xl' (as root) on a client that hangs, and report on its
> output? The "WCHAN" field is of importance, it shows what the processes
> are waiting for in the kernel.
>
> - Frank
(rs@gamorreens 2)ps xl
UID PID PPID CPU PRI NI VSZ RSS WCHAN STAT TT TIME COMMAND
0 0 0 0 -18 0 0 16356 schedu DLs ?? 0:00.03 (swapper)
0 1 0 0 10 0 228 144 wait Is ?? 0:00.01 init
0 2 0 0 -18 0 0 16356 daemon DL ?? 0:00.00 (pagedaemon)
0 3 0 0 -18 0 0 16356 reaper DL ?? 0:00.29 (reaper)
0 104 1 0 2 0 96 428 select Is ?? 0:00.20 syslogd
0 108 1 0 2 0 64 444 select Is ?? 0:00.13 portmap -l
0 110 1 0 2 0 396 788 select Is ?? 0:02.22 ypserv
0 123 1 0 2 0 92 456 select Ss ?? 0:01.27 ypbind
0 137 1 0 10 0 16 352 nfsidl IL ?? 0:00.29 nfsiod -n 4
0 138 1 0 10 0 16 352 nfsidl IL ?? 0:00.02 nfsiod -n 4
0 139 1 0 10 0 16 352 nfsidl IL ?? 0:00.00 nfsiod -n 4
0 140 1 0 10 0 16 352 nfsidl IL ?? 0:00.00 nfsiod -n 4
0 166 1 0 18 0 16 336 pause Is ?? 0:01.21 update 30
0 168 1 0 10 0 260 552 nanosl Is ?? 0:00.21 cron
0 170 1 22 2 0 124 512 select Is ?? 0:00.01 lpd
0 173 1 0 2 0 80 532 select Is ?? 0:00.01 inetd -l
0 176 1 0 2 0 168 948 select Is ?? 0:00.02 xdm
0 184 176 0 2 0 6336 20872 select Is ?? 1:14.29 /usr/X11R6/bin/X -bpp 16 -auth /usr/X11R6/lib/X11/xdm/authdir/authfiles/A
0 186 1 0 2 0 208 884 select Is ?? 0:00.68 /usr/pkg/sbin/sshd
0 812 176 0 10 0 276 1556 wait Is ?? 0:00.05 xdm: :0 session
0 868 845 0 2 0 408 1724 select I ?? 0:00.31 xterm
0 905 867 0 2 0 436 1752 select I ?? 0:02.25 xterm
0 921 867 0 2 0 396 1712 select I ?? 0:00.49 xterm
0 923 867 0 2 0 452 1768 select I ?? 0:00.22 xterm
0 4019 186 0 2 0 352 1196 select I ?? 0:00.10 sshd: rn@ttyp4
0 4044 186 0 2 0 344 1184 select S ?? 0:00.06 sshd: rs@ttyp5
0 4020 4019 0 3 0 556 1040 ttyin Is+ p4 0:00.13 -tcsh
0 4025 4020 0 -1 0 64 40 nfsrcv D p4 0:00.00 df
0 4027 4020 0 -1 0 64 40 nfsrcv D p4 0:00.00 df
0 4033 4020 0 -1 0 64 40 nfsrcv D p4 0:00.00 df
0 4035 4020 0 -1 0 64 40 nfsrcv D p4 0:00.00 df
0 4041 4020 0 -1 0 64 40 nfsrcv D p4 0:00.00 df
0 4050 4020 0 -1 0 204 136 nfsrcv D p4 0:00.00 ls /nfs/s3/space
0 4045 4044 0 18 0 608 1100 pause Ss p5 0:00.08 -staff (tcsh)
0 4053 4045 0 28 0 312 220 - R+ p5 0:00.00 ps -xl
0 188 1 0 2 0 100 544 select S E0- 0:00.25 (ns_host_exe)
the df and the ls are hung in nfsrcv state.
----
sam@epita.fr
Admin - Sys
EPITA (Ecole pour l'informatique et les techniques avancees)
Tel: 01 44 08 01 96