Date: Wed, 10 Apr 2002 20:34:34 -0400 From: Mike Tancsa <mike@sentex.net> To: sos@freebsd.org Cc: stable@freebsd.org Subject: steps to rebuild a dead RAID1 array ? Message-ID: <5.1.0.14.0.20020410202911.047d2590@192.168.0.12>
next in thread | raw e-mail | index | archive | help
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 <Maxtor 2B020H1/WAH21PB0> ATA/ATAPI rev 6 Slave: no device present ATA channel 1: Master: no device present Slave: no device present ATA channel 2: Master: ad4 <ST340016A/3.10> ATA/ATAPI rev 5 Slave: no device present ATA channel 3: Master: ad6 <ST340016A/3.10> 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: <Intel PIIX4 ATA33 controller> port 0xb800-0xb80f at device 4.1 on pci0 ata0: at 0x1f0 irq 14 on atapci0 ata1: at 0x170 irq 15 on atapci0 atapci1: <HighPoint HPT374 ATA133 controller> 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: <HighPoint HPT374 ATA133 controller> 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 <Maxtor 2B020H1> [39703/16/63] at ata0-master UDMA33 ad6: 38166MB <ST340016A> [77545/16/63] at ata3-master UDMA100 ar0: 38166MB <ATA RAID1 array> [4865/255/63] status: DEGRADED subdisks: 0 READY ad4: 38166MB <ST340016A> [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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5.1.0.14.0.20020410202911.047d2590>