From owner-freebsd-questions@FreeBSD.ORG Fri May 16 07:40:55 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D73A737B401 for ; Fri, 16 May 2003 07:40:55 -0700 (PDT) Received: from hauptpostamt.charite.de (hauptpostamt.charite.de [193.175.66.220]) by mx1.FreeBSD.org (Postfix) with ESMTP id ACE0143FA3 for ; Fri, 16 May 2003 07:40:54 -0700 (PDT) (envelope-from alexander.haderer@charite.de) Received: from postamt1.charite.de (postamt1.charite.de [193.175.66.246]) by hauptpostamt.charite.de (Postfix) with ESMTP id 5124C15C016; Fri, 16 May 2003 16:40:50 +0200 (CEST) Received: from chaplin.charite.de (chaplin.str.charite.de [192.168.202.88]) by postamt1.charite.de (Postfix) with ESMTP id 2651B633B3; Fri, 16 May 2003 16:40:50 +0200 (CEST) Message-Id: <5.2.0.9.1.20030516163135.019da890@postamt1.charite.de> X-Sender: afrika@postamt1.charite.de X-Mailer: QUALCOMM Windows Eudora Version 5.2.0.9 Date: Fri, 16 May 2003 16:36:44 +0200 To: "Pranav A. Desai" , Andy Farkas From: Alexander Haderer In-Reply-To: References: <20030516092757.A77647-100000@hewey.af.speednet.com.au> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Virus-Scanned: by amavisd-new at charite.de cc: questions@freebsd.org Subject: Re: How to detect hard disk failure ? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 May 2003 14:40:56 -0000 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