From owner-freebsd-questions@FreeBSD.ORG Wed Nov 22 23:18:30 2006 Return-Path: X-Original-To: questions@freebsd.org Delivered-To: freebsd-questions@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 8ECDD16A407 for ; Wed, 22 Nov 2006 23:18:30 +0000 (UTC) (envelope-from hakmi@rogers.com) Received: from smtp106.rog.mail.re2.yahoo.com (smtp106.rog.mail.re2.yahoo.com [68.142.225.204]) by mx1.FreeBSD.org (Postfix) with SMTP id D87AE43D55 for ; Wed, 22 Nov 2006 23:17:58 +0000 (GMT) (envelope-from hakmi@rogers.com) Received: (qmail 53163 invoked from network); 22 Nov 2006 23:18:28 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=rogers.com; h=Received:X-YMail-OSG:From:To:Subject:Date:MIME-Version:Content-Type:Content-Transfer-Encoding:X-Mailer:In-Reply-To:X-MimeOLE:Thread-Index; b=rnagGb0dkf/JA5IJ6rIPhij5W/hA8pBQUQ3HJqRZtvOVezXiztOdFG+4qPH7GOVVGHHYCgaSdvVi3FbOjBQaI/cbI4OM8dVW34nc05Gpgquf1Zi3kOm+HaT0ZJbEZ9EUAnYjkoM/3K6RlOikXMn+TXff501aOwzfNbN6H4ijaXA= ; Received: from unknown (HELO tamouh) (hakmi@rogers.com@70.27.160.99 with login) by smtp106.rog.mail.re2.yahoo.com with SMTP; 22 Nov 2006 23:18:28 -0000 X-YMail-OSG: iGOAmgMVM1kGJoNuhginbypz03jhWeKH_Y.hPbU_4HFwE7RyTOL6XLH9bBJwUbA64tRrPgrBQVLaWlUff8mQXqCr_HAONsZDbSg32eOiiNRyfxBFh2JDTA-- From: "Tamouh H." To: "'Toomas Aas'" , Date: Wed, 22 Nov 2006 18:16:21 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Office Outlook, Build 11.0.6353 In-Reply-To: <4564D667.4000507@raad.tartu.ee> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 Thread-Index: AccOigjYVNwMOUH1RGupHkoETW8WJgAAZh/A Message-Id: <20061122231758.D87AE43D55@mx1.FreeBSD.org> Cc: Subject: RE: ICH7 SATA RAID (LSI MegaRAID) 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, 22 Nov 2006 23:18:30 -0000 =20 >=20 > Hello! >=20 > I've bought a small server with Intel SE7230NH1 motherboard,=20 > which incorporates the ICH7 SATA RAID controller. Using the=20 > LSI BIOS utility, I created a RAID1 array of two disks and=20 > installed FreeBSD 6.2-RC1 > (amd64) on it. >=20 > atapci1: port=20 > 0x30c8-0x30cf,0x30e4-0x30e7,0x30c0-0x30c7,0x30e0-0x30e3,0x30a0-0x30af > mem 0x88200000-0x882003ff irq 19 at device 31.2 on pci0 > atapci1: AHCI Version 01.10 controller with 4 ports detected > ata2: on atapci1 > ata3: on atapci1 > ata4: on atapci1 > ata5: on atapci1 > ad4: 476940MB at ata2-master SATA300 > ad6: 476940MB at ata3-master SATA300 > ar0: 476772MB status: READY > ar0: disk0 READY (master) using ad4 at ata2-master > ar0: disk1 READY (mirror) using ad6 at ata3-master >=20 > This server has a hot-swap drive cage that allows you to=20 > power off individual drives. I simulated a drive failure by=20 > powering off one of the drives. This resulted in console message: >=20 > ar0: warning: mirror protection lost. RAID1 array in DEGRADED mode. > ar0: writing of LSILogic v3 MegaRAID metadata is NOT supported yet. > subdisk6: detached > ad6: detached >=20 > OK, the disk went away. This is witnessed by atacontrol: > # atacontrol status ar0 > ar0: ATA RAID1 subdisks: ad4 DOWN status DEGRADED >=20 > Now, I power the disk on again. This brings on the following=20 > console message. >=20 > ad6: 476940MB at ata3-master SATA300 >=20 > The array status is still degraded, as shown by atacontrol: > #atacontrol status ar0 > ar0: ATA RAID1 subdisks: ad4 ad6 status: DEGRADED >=20 > OK, so I think I need to rebuild the array, but this doesn't succeed: > #atacontrol rebuild ar0 > IOCATARAIDREBUILD: Input/Output error. >=20 > When I reboot the server, it comes back up with the array at=20 > READY status immediately. Maybe this is because I have "Auto=20 > rebuild" set to "Yes" in BIOS. But is there any way to=20 > recover from this kind of failure without rebooting? Are my=20 > problems caused merely by the fact that "writing of LSILogic=20 > v3 MegaRAID metadata is NOT supported yet", or am I doing=20 > something wrong? Or maybe this is the problem that exists only in > amd64 version and not in i386? >=20 > Thanks in advance, > -- > Toomas >=20 >From experience, with these Software RAID, once you remove a disk, = you'll have to format it before you put the disk back in. Otherwise, = this will cause problems as the SW RAID will read the RAID part from the = disk and think it is working properly. Do your test by removing the Disk, then format it completely, insert it = back. Or plug a new HDD in its place. Tamouh