From owner-freebsd-stable Wed Apr 10 17:34: 6 2002 Delivered-To: freebsd-stable@freebsd.org Received: from vinyl2.sentex.ca (vinyl2.sentex.ca [199.212.134.13]) by hub.freebsd.org (Postfix) with ESMTP id 7308637B42C; Wed, 10 Apr 2002 17:33:59 -0700 (PDT) Received: from house.sentex.net (cage.simianscience.com [64.7.134.1]) (authenticated) by vinyl2.sentex.ca (8.11.6/8.11.6) with ESMTP id g3B0Xs927123 (using TLSv1/SSLv3 with cipher DES-CBC3-SHA (168 bits) verified NO); Wed, 10 Apr 2002 20:33:55 -0400 (EDT) (envelope-from mike@sentex.net) Message-Id: <5.1.0.14.0.20020410202911.047d2590@192.168.0.12> X-Sender: mdtancsa@192.168.0.12 X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Wed, 10 Apr 2002 20:34:34 -0400 To: sos@freebsd.org From: Mike Tancsa Subject: steps to rebuild a dead RAID1 array ? Cc: stable@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I have been experimenting with the new ata RAID code and one thing I am unable to do is to rebuild and array. I did the following steps, made ar0 with ad4 and ad6, fdisk'd, disklabel'd, newfs'd no problem. Then I shutdown the machine and pulled out ad6 and put in a new blank drive. raidtest3# atacontrol list ATA channel 0: Master: ad0 ATA/ATAPI rev 6 Slave: no device present ATA channel 1: Master: no device present Slave: no device present ATA channel 2: Master: ad4 ATA/ATAPI rev 5 Slave: no device present ATA channel 3: Master: ad6 ATA/ATAPI rev 5 Slave: no device present ATA channel 4: Master: no device present Slave: no device present ATA channel 5: Master: no device present Slave: no device present raidtest3# atacontrol status ar0 ar0: ATA RAID1 subdisks: ad4 status: DEGRADED raidtest3# This is with a raidtest3# dmesg | grep -i ata atapci0: port 0xb800-0xb80f at device 4.1 on pci0 ata0: at 0x1f0 irq 14 on atapci0 ata1: at 0x170 irq 15 on atapci0 atapci1: port 0x9800-0x98ff,0xa000-0xa003,0xa400-0xa407,0xa800-0xa803,0xb000-0xb007 irq 15 at device 9.0 on pci0 ata2: at 0xb000 on atapci1 ata3: at 0xa400 on atapci1 atapci2: port 0x8000-0x80ff,0x8400-0x8403,0x8800-0x8807,0x9000-0x9003,0x9400-0x9407 irq 15 at device 9.1 on pci0 ata4: at 0x9400 on atapci2 ata5: at 0x8800 on atapci2 ad0: 19541MB [39703/16/63] at ata0-master UDMA33 ad6: 38166MB [77545/16/63] at ata3-master UDMA100 ar0: 38166MB [4865/255/63] status: DEGRADED subdisks: 0 READY ad4: 38166MB [77545/16/63] at ata2-master UDMA100 raidtest3# Yet, when I go to do a rebuild, raidtest3# atacontrol rebuild ar0 atacontrol: ioctl(ATARAIDREBUILD): Operation not supported by device raidtest3# I guess there needs to be some way to tell the controller to use ad6 as part of the rebuild no ? ---Mike -------------------------------------------------------------------- Mike Tancsa, tel +1 519 651 3400 Sentex Communications, mike@sentex.net Providing Internet since 1994 www.sentex.net Cambridge, Ontario Canada www.sentex.net/mike To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message