All of lore.kernel.org
 help / color / mirror / Atom feed
* logging to NFS-mounted files seems to cause hangs when NFS dies
@ 2001-11-29 16:07 Christopher Friesen
  2001-11-29 16:43 ` Andreas Dilger
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Christopher Friesen @ 2001-11-29 16:07 UTC (permalink / raw)
  To: linux-kernel


I'm working on an embedded platform and we seem to be having a problem with
syslog and logging to NFS-mounted files.

We have syslog logging to NFS and also logging to a server on another machine. 
The desired behaviour is that if the NFS server or the net connection conks out,
the logs are silently dropped.  (Critical logs are also logged in memory that
isn't wiped out on reboot.)

Currently,  /var/log is mounted with the following options:
rw,rsize=4096,wsize=4096,timeo=7,retrans=3,bg,soft,intr

We started off with hard mounts due to the warnings about soft mounts, but that
led to boxes totally hanging when the network connections were pulled or the NFS
server was taken down.  In this scenario we are even unable to login as root at
the console.  This forced us to go to soft mounts in an attempt to fix this
behaviour.\x13

The problem we are seeing is that if we lose the network connection or the NFS
mount (which immediately causes an attempt to log the problem), it seems that
syslog gets stuck in NFS code in the kernel and other stuff can be delayed for a
substantial amount of time (many tens of seconds).  Just for kicks we tried
logging to ramdisk, and everything works beautifully.

Now I'm a bit unclear as to why other processes are being delayed--does anyone
have any ideas?  My current theories are that either the nfs client code has a
bug, or syslog() calls are\x13 somehow blocking if syslogd can't write the file
out.  I've just started looking at the syslog code, but its pretty rough going
as there are very few comments.

Help?  We're running a customized 2.2.17 kernel and syslog 1.4.1.

Thanks,

Chris Friesen


-- 
Chris Friesen                    | MailStop: 043/33/F10  
Nortel Networks                  | work: (613) 765-0557
3500 Carling Avenue              | fax:  (613) 765-2986
Nepean, ON K2H 8E9 Canada        | email: cfriesen@nortelnetworks.com

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2001-11-29 22:42 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-11-29 16:07 logging to NFS-mounted files seems to cause hangs when NFS dies Christopher Friesen
2001-11-29 16:43 ` Andreas Dilger
2001-11-29 21:08   ` Peter Wächtler
2001-11-29 21:01 ` Peter Wächtler
2001-11-29 22:42 ` Jesse Pollard

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.