From owner-freebsd-questions@FreeBSD.ORG Wed Nov 23 02:18:29 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 B2A3516A41F for ; Wed, 23 Nov 2005 02:18:29 +0000 (GMT) (envelope-from nb_root@videotron.ca) Received: from relais.videotron.ca (relais.videotron.ca [24.201.245.36]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8DF6D43D64 for ; Wed, 23 Nov 2005 02:18:28 +0000 (GMT) (envelope-from nb_root@videotron.ca) Received: from clk01a ([66.130.198.54]) by VL-MO-MR004.ip.videotron.ca (Sun Java System Messaging Server 6.2-2.05 (built Apr 28 2005)) with ESMTP id <0IQD00B5LYEQ6S10@VL-MO-MR004.ip.videotron.ca> for freebsd-questions@freebsd.org; Tue, 22 Nov 2005 21:18:26 -0500 (EST) Date: Tue, 22 Nov 2005 21:18:01 -0500 From: Nicolas Blais In-reply-to: <4383CE63.6000700@mykitchentable.net> To: freebsd-questions@freebsd.org Message-id: <200511222118.05677.nb_root@videotron.ca> MIME-version: 1.0 Content-type: multipart/signed; boundary=nextPart1421544.57oTGSqWL0; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-transfer-encoding: 7bit References: <4383CE63.6000700@mykitchentable.net> User-Agent: KMail/1.8.3 Cc: Drew Tomlinson Subject: Re: How To Monitor Disk Errors? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Nov 2005 02:18:29 -0000 --nextPart1421544.57oTGSqWL0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On November 22, 2005 09:05 pm, Drew Tomlinson wrote: > I have an old machine running 4.11. It died sometime last night from > what I think was a disk problem. The machine was still running and > still passing packets (it is my firewall) but I could not log in via the > console, ssh, or telnet. I powered the machine off/on and heard the > "click of death" coming from one of the internal IDE drives. By some > miracle, the machine did finally boot and is running again. > > I'm sure I'm on borrowed time here. However I would like to find some > way to monitor drive errors so I know which drive is failing so replace > the correct drive. I have two in the machine. I've checked > /var/log/messages but see no entries there regarding the drive. Is > there some utility that will let me see the current number of errors > since boot? > > Thanks, > > Drew Check out /sysutils/smartmontools in the ports. It could be what you need. When installed, a simple smartctl -H /dev/*disk* like : smartctl -H /dev/ad0 will tell you if your drive is healthy or not. =20 You can also set up the smartd which will check your drives at certain=20 intervals. Nicolas =2D-=20 =46reeBSD 7.0-CURRENT #1: Sat Nov 19 12:36:29 EST 2005 =20 root@clk01a:/usr/obj/usr/src/sys/CLK01A=20 PGP? (updated 16 Nov 05) : http://www.clkroot.net/security/nb_root.asc --nextPart1421544.57oTGSqWL0 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQBDg9Fd4wTBlvcsbJURAqB9AKCPM6dITpEn3II3by6b3xznvs+i3QCfXqNK NoWCMTXJpMA1qzHvrTPWScU= =ExjA -----END PGP SIGNATURE----- --nextPart1421544.57oTGSqWL0--