From owner-freebsd-stable@FreeBSD.ORG Tue Nov 6 21:05:07 2007 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1754A16A419 for ; Tue, 6 Nov 2007 21:05:07 +0000 (UTC) (envelope-from jdc@parodius.com) Received: from mx01.sc1.parodius.com (mx01.sc1.parodius.com [72.20.106.3]) by mx1.freebsd.org (Postfix) with ESMTP id 09B0513C4B3 for ; Tue, 6 Nov 2007 21:05:07 +0000 (UTC) (envelope-from jdc@parodius.com) Received: by mx01.sc1.parodius.com (Postfix, from userid 1000) id F10991CC041; Tue, 6 Nov 2007 13:05:06 -0800 (PST) Date: Tue, 6 Nov 2007 13:05:06 -0800 From: Jeremy Chadwick To: Artem Kuchin Message-ID: <20071106210506.GA1704@eos.sc1.parodius.com> References: <048101c820b0$a4507b90$0c00a8c0@Artem> <4730D080.6050502@ibctech.ca> <04d201c820b7$ea1f1a30$0c00a8c0@Artem> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <04d201c820b7$ea1f1a30$0c00a8c0@Artem> User-Agent: Mutt/1.5.16 (2007-06-09) Cc: Steve Bertrand , freebsd-stable@freebsd.org Subject: Re: How to verify a mirror raid using atacontrol? X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Nov 2007 21:05:07 -0000 On Tue, Nov 06, 2007 at 11:59:21PM +0300, Artem Kuchin wrote: > Steve Bertrand wrote: >> Artem Kuchin wrote: >>> I have a mirror raid on Promise controller >>> supported by atacontrol. >>> How can i verify it? >> [snip] > > No, no. i meant completelly verify raid data, that is > that bother drive match and no bad blocks on any of them. > There is a special VERIFY raid command on 3ware and > HPT and other, but i don't see it on atacontrol. The feature you want is called "scrubbing" or "disk scrubbing". The best options you have that I know of are using dd to scan the entire disk, or a program that comes with the base system (but compiled/installed through the ports system) called diskcheckd (which more or less does what you want, but it does not appear to work exactly as described; I have an open PR on it: ports/115853) Otherwise, ZFS offers exactly what you want. Case in point: icarus# zpool list NAME SIZE USED AVAIL CAP HEALTH ALTROOT storage 928G 97.3G 831G 10% ONLINE - icarus# zpool scrub storage icarus# zpool status pool: storage state: ONLINE scrub: scrub in progress, 0.16% done, 0h20m to go config: NAME STATE READ WRITE CKSUM storage ONLINE 0 0 0 ad4 ONLINE 0 0 0 ad6 ONLINE 0 0 0 errors: No known data errors icarus# zpool status | egrep 'scrub|errors' scrub: scrub in progress, 7.21% done, 0h12m to go errors: No known data errors -- | Jeremy Chadwick jdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB |