Date: Fri, 16 May 2003 16:36:44 +0200 From: Alexander Haderer <alexander.haderer@charite.de> To: "Pranav A. Desai" <pdesai1@cs.uh.edu>, Andy Farkas <andyf@speednet.com.au> Cc: questions@freebsd.org Subject: Re: How to detect hard disk failure ? Message-ID: <5.2.0.9.1.20030516163135.019da890@postamt1.charite.de> In-Reply-To: <Pine.GSO.4.33.0305160917240.18829-100000@themis.cs.uh.edu> References: <20030516092757.A77647-100000@hewey.af.speednet.com.au>
next in thread | previous in thread | raw e-mail | index | archive | help
At 09:27 16.05.2003 -0500, Pranav A. Desai wrote: >.... >The other thing that I thought of doing is to capture /var/log/messages >for any errors regarding disks. But I have two problems with that. >1) I dont know how to do tail -f in shell script. Take a look at fetchlog, it was made just for this kind of job: http://fetchlog.sourceforge.net >2) I am not sure if messages gives all kinds of disk errors. disk error messages appear as kernel messages, and they are part of messages. See /etc/syslog.conf. If you try fetchlog think about a special logfile for kernelmessages only. Again: man syslogd, man syslog.conf, man newsyslog. with best regards, Alexander -- Alexander Haderer Charite Berlin - Germany
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5.2.0.9.1.20030516163135.019da890>