Date: Thu, 22 Aug 2002 15:37:48 -0700 (PDT) From: "Andrew P. Lentvorski" <bsder@mail.allcaps.org> To: freebsd-stable@freebsd.org Subject: Using atacontrol for RAID ... Message-ID: <20020822151955.Q36782-100000@mail.allcaps.org>
next in thread | raw e-mail | index | archive | help
Okay, so I'm trying to use atacontrol to create a RAID system. I don't have a motherboard with a RAID controller. I do have a motherboard (Asus A7V133) which has 4 IDE ports. What is the magic command to rebuild a failed RAID array? Here's my procedure: 1) I do a clean install of FreeBSD from the 4.6 CD's 2) atacontrol RAID1 ad0 ad2 The system claims that ar0 is good to go 3) shutdown and reboot I get dropped at the mountroot> prompt and nothing seems to have an effect. Hrm. 4) shutdown 5) Restart a reinstall from the 4.6 CD's 6) The install program recognizes ar0 in spite of the fact that I don't have a root. Cool! So I create my partitions on ar0. 7) Finish reinstall 8) System claims to have an ar0 RAID device. Life is good. Okay, now comes the fun parts: Lets simulate a disk failure -- take 1: A) Shut down machine B) Disconnect drive ad2 C) Power on machine D) System powers up and works claiming a degraded array. Fine. E) Shut machine down. F) Reconnect original drive to ad2 with the expectation of a rebuild G) Power up machine. H) Receive kernel panic ... Uh, oh. Fine, the drive seems to have persistent information and the OS can't seem to tell which is the correct one. Yuk. Restart from step 1. And get back to a working ar0. Lets simulate a disk failure -- take 2: A) Shut down machine B) Disconnect drive ad2 C) Power on machine D) System powers up and works claiming a degraded array. Fine. E) Shut machine down. F) Reconnect sparkly new drive to ad2 with the expectation of a rebuild G) Power up machine H) Machine powers up with ad0 in a degraded ar0. Fine. New ad2 is also recognized, but not yet being used I) atacontrol status ar0 ar0: ATA RAID1 subdisks: ad0 DOWN status: DEGRADED J) atacontrol rebuild ar0 atacontrol: ioctl(ATARAIDREBUILD): Operation not supported by device K) atacontrol list ATA channel 0: Master: ad0 <IC35L060AVER07-0/ER6OA44A> ATA/ATAPI rev 5 Slave: acd0 <TOSHIBA DVD-ROM SD-M1612/1004> ATA/ATAPI rev 5 ATA channel 1: Master: ad2 <MAXTOR 6L080L4/A93.0500> ATA/ATAPI rev 5 Slave: no device present ATA channel 2: Master: ad4 <IC35L040AVER07-0/ER4OA41A> ATA/ATAPI rev 5 Slave: no device present ATA channel 3: Master: no device present Slave: no device present L) atacontrol detach 1 ad2: removed from configuration M) atacontrol attach 1 ad2: 76345MB <MAXTOR 6L080L4> [155114/16/63] at ata1-master UDMA100 Master: ad2 <MAXTOR 6L080L4/A93.0500> ATA/ATAPI rev 5 Slave: no device present N) atacontrol rebuild ar0 atacontrol: ioctl(ATARAIDREBUILD): Operation not supported by device So, what do I do now? Thanks, -a 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?20020822151955.Q36782-100000>