From owner-freebsd-questions@FreeBSD.ORG Fri Nov 23 14:27:40 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9268316A41B for ; Fri, 23 Nov 2007 14:27:40 +0000 (UTC) (envelope-from wmoran@potentialtech.com) Received: from mail.potentialtech.com (internet.potentialtech.com [66.167.251.6]) by mx1.freebsd.org (Postfix) with ESMTP id 243A613C4CE for ; Fri, 23 Nov 2007 14:27:40 +0000 (UTC) (envelope-from wmoran@potentialtech.com) Received: from working (c-71-60-127-199.hsd1.pa.comcast.net [71.60.127.199]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.potentialtech.com (Postfix) with ESMTP id 16B01EBC3B; Fri, 23 Nov 2007 09:27:34 -0500 (EST) Date: Fri, 23 Nov 2007 09:27:33 -0500 From: Bill Moran To: "Jan Catrysse" Message-Id: <20071123092733.3e47283b.wmoran@potentialtech.com> In-Reply-To: <20071123092146.E0E1B2878E@smtp.proximedia.com> References: <20071122155640.fa7e0536.wmoran@potentialtech.com> <20071123092146.E0E1B2878E@smtp.proximedia.com> X-Mailer: Sylpheed 2.4.7 (GTK+ 2.12.1; i386-portbld-freebsd6.2) Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: freebsd-questions@freebsd.org Subject: Re: RAID1 synchronisation - howto OR not necessary? 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: Fri, 23 Nov 2007 14:27:40 -0000 "Jan Catrysse" wrote: > > > From: Bill Moran [mailto:wmoran@potentialtech.com] > > > > "Jan Catrysse" wrote: > > > > > > Dear subscribers, > > > > > > I am currently running a production server: > > > FreeBSD 6.2 STABLE > > > Onboard Intel ICH8R Raid 1 with 2x SATA300 500GB HDD Using ATA for > > > Raid1 > > > > > > On Windows systems it is an absolute must to do a Raid > > Synchronisation > > > every once and a while to maintain data consistency. > > > > Wow. Any RAID controller with that requirement is junk. > > Where did you get the information from that you had to > > synchronize? Does it say so in the manual? Does it actually > > say "every once and a while" or does it give a specific schedule. > > > > I suspect that you have wrong information ... but if your > > information is correct, I'd get a refund on that RAID controller. > > > > > I am some what disturbed that that kind of command / tool seems not > > > available on FreeBSD. > > > > There is not, because such a thing should not be necessary. > > > > > Are there other methods to do the synchronisation? > > > 1) Maybe atacontrol detach & atacontrol addspare & > > atacontrol rebuild? > > > 2) Maybe data consistency is always maintained automatically by the > > > driver? > > > 3) Maybe I have to panic and urgently make backups? > > > > If resyncing your raid on a regular basis is truly a > > requirement, I'd do > > #3 at least, followed by getting my money back. > > Hi Bill, > > Thank you for your input. > > I assumed this was common knowledge, but I can be wrong? > I've checked some other RAID controllers in the company and all of > them have the need to be verified/synchronized once and a while. No. There is a _world_ of difference between "verify" and "synchronize". Periodically verifying the health of a RAID array is good practice. Re-synchronizing it periodically is stupid. If you have to do that, then you wasted money on a RAID card. > This > happens in the BIOS for the more expensive cards (> 600€) and with a > utility/driver for the low budget cards... Depends on what you're talking about. Yes, expensive cards do both health checking and resyncing in the BIOS without the need of operator intervention. Low-end hot-swappable cards will automatically do the resynchronizing if they detect a HDD change, but often don't do periodic health checking. Low-end cards do neither. However, you have to power the machine down to replace a failed drive, so you're also accepting the burden of waiting for the BIOS to resync. It's part of the cost trade-off. > This is what I found in a 3Ware manual: > Verification can provide early warning of a disk drive problem or failure. > ...verification once every 24 hours... > Not verifying the unit periodically can lead to an unstable array unit and may cause data loss. > It is strongly recommended that you schedule a verify at least 1 time per week. Nice documentation ... Do you verify every 24 hours or once a week? In any event, the availability of such a utility for FreeBSD depends on the driver and the (possible) availability of third-party (or even vendor-supplied) utilities. For example, LSI provides the megaraid utility. It's designed for Linux but works on FreeBSD and allows total control over the RAID card, including verifications. Reading the man page for the driver being used may turn up something. I don't know if one exists for your specific card, but keep in mind that the driver you're using may also work with high-end RAID systems that don't need it, so the absence of one is possible. I suggest you reformat/repost your question with a subject line more along the lines of "Looking for a control utility for ICH8R RAID" It's quite possible that the people who know a lot about that hardware missed the original conversation thread. If there is no such utility, I suggest looking into something like samhain, which will continually validate that the files on your system are uncorrupted. This has the added advantage of warning you if someone has cracked your system and installed a trojan. Also consider the benefit of spending the extra $$ on a high-end RAID card. There are very good reasons that people are willing to pay more for them. Personally, I wouldn't use a low-end RAID card ... GEOM would be just as good if not better, IMHO. -- Bill Moran http://www.potentialtech.com