From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,ef3c48e54bdcd824,start X-Google-Attributes: gidfa528,public From: syl@alcor.concordia.ca (Sylvain Robitaille) Subject: HEADS-UP: syslogd might lose log data Date: 2000/07/06 Message-ID: <8k2dgk$qud$1@newsflash.concordia.ca>#1/1 X-Deja-AN: 643119070 Organization: Concordia University, Montreal, Canada User-Agent: slrn/0.9.5.7 (UNIX) NNTP-Posting-User: syl Newsgroups: comp.unix.tru64 This message is meant as a "heads-up" to fellow system administrators. It has also been sent to the Tru64-Unix-Managers' mailing list. I noticed a couple of months ago that the (serial) console on one of my Alpha systems was locked up (someone had accidentally pressed the key to send output to the attached printer, but there was no printer attached; eventually a buffer filled up and the console stopped responding). This seems a pretty simple situation, which should be mostly harmless, right? This system sends the "mark" logs and emergency log messages to the console, as well as sending various other logging information, via syslog, to local files and a remote logging host. There is where the problem comes in. When the console's buffer filled, syslogd was no longer able to write to it, and blocked indefinitely, resulting in large amounts of lost log data. Since syslogd was using blocking writes, nothing was being logged at all to any of the log targets. I reported this to Compaq Technical Support, as the resulting data loss could potentially be a serious problem. It took some persistence and effort on my part, but I did finally convince them to produce a syslogd binary which does non-blocking writes. However I don't get the impression that Compaq will produce an official patch for this. I strongly urge anyone who is concerned about losing syslog data to test their own systems to see if syslogd blocks. It looks like the replacement syslogd binary I was sent contains some older source revisions than the stock binary on my system (4.0e), so I suspect that some versions will not exhibit that behaviour. If your syslogd does block, and you're concerned that it may result in lost data, I recommend you contact your local Compaq Technical Support branch and request a fixed syslogd. Hopefully after a number of people present this as a problem, Compaq will see fit to release an official patch. -- ---------------------------------------------------------------------- Sylvain Robitaille syl@alcor.concordia.ca Systems analyst Concordia University Instructional & Information Technology Montreal, Quebec, Canada ----------------------------------------------------------------------