From owner-freebsd-questions@FreeBSD.ORG Sat Jan 31 10:24:14 2009 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 1102C106566C for ; Sat, 31 Jan 2009 10:24:14 +0000 (UTC) (envelope-from nrml@att.net) Received: from web83803.mail.sp1.yahoo.com (web83803.mail.sp1.yahoo.com [69.147.85.69]) by mx1.freebsd.org (Postfix) with SMTP id F1ABE8FC12 for ; Sat, 31 Jan 2009 10:24:13 +0000 (UTC) (envelope-from nrml@att.net) Received: (qmail 8079 invoked by uid 60001); 31 Jan 2009 10:24:13 -0000 X-YMail-OSG: QgGBg1AVM1n5EGN1e2ulFZyCSXg6wJHwiTC4z7YgqNWSSZKywYuIDGiP5H.2lzewWH2b6k4MUIKfwoXN7ogdCPm.O3mPCG5dNnvAyYU7P2uHPt5uJZno5186nE3iIo2aw7iqtuM7UmUfPSljOhYwYbL.2S1_7fokqNaVhNRetPRXEJzu2utqawDpcPVf3ccpX1Wm0oGrC0b4dQIzrdpBVk3hm9H9 Received: from [69.43.143.59] by web83803.mail.sp1.yahoo.com via HTTP; Sat, 31 Jan 2009 02:24:13 PST X-Mailer: YahooMailWebService/0.7.260.1 Date: Sat, 31 Jan 2009 02:24:13 -0800 (PST) From: Gabe To: freebsd-questions@freebsd.org In-Reply-To: <50265.96017.qm@web83816.mail.sp1.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Message-ID: <692674.7044.qm@web83803.mail.sp1.yahoo.com> Subject: Re: atacontrol + highpoint raid & hot-swappable bays = reboot? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: nrml@att.net List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 31 Jan 2009 10:24:14 -0000 --- On Fri, 1/30/09, Gabe wrote: > From: Gabe > Subject: atacontrol + highpoint raid & hot-swappable bays = reboot? > To: freebsd-questions@freebsd.org > Date: Friday, January 30, 2009, 2:40 AM > Hello list, > > I've come upon a problem I've googled the daylights > out of, further I've read atacontrol(8) up and down > without success. My goal is simple, I have a supermicro 1U > with hot-swappable drive bays which hold 2 SATA drives that > are connected to a PCI highpoint rocket raid card. I need to > be able to simulate a failure on HDD1 (drive bay 2) and > I've been trying to do it by following the handbook > here: [18.4.3] > http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/raid.html > to no avail. > > atacontrol detach ata3 > > > > atacontrol attach ata3 > command> > atacontrol addspare ar0 ata3 > > Now this is when I encounter a "Device Busy" > error. In order to recover from this I've tried > detaching and attaching to no avail, rebooting just makes > atacontrol status ar0 only show disk 1 even though disk 2 > (ata3) is listed in atacontrol list. > > See below for a transcript from the shell, hopefully > someone can provide some insight before I flip out. :) > > Thanks, > > /gabe > > atapci0@pci0:1:3:0: class=0x010400 card=0x00011103 > chip=0x00051103 rev=0x02 hdr=0x00 > vendor = 'Triones Technologies Inc. > (HighPoint)' > device = 'HPT372x UDMA/ATA133 RAID > Controller' > class = mass storage > subclass = RAID > > Jan 30 02:19:00 amnesiac kernel: hptrr: HPT RocketRAID > controller driver v1.1 (Feb 24 2008 19:59:27) > Jan 30 02:19:00 amnesiac kernel: ar0: 76319MB v2 RocketRAID RAID1> status: READY > > Script started on Fri Jan 30 02:21:01 2009 > amnesiac# atacontrol list > > ATA channel 0: > > Master: no device present > > Slave: no device present > > ATA channel 1: > > Master: acd0 ATA/ATAPI revision 0 > > Slave: no device present > > ATA channel 2: > > Master: ad4 Serial ATA v1.0 > > Slave: no device present > > ATA channel 3: > > Master: ad6 Serial ATA v1.0 > > Slave: no device present > > amnesiac# atacontrol status ar0 > > ar0: ATA RAID1 status: READY > > subdisks: > > 0 ad6 ONLINE > > 1 ad4 ONLINE > > amnesiac# atacontrol detach ata2 > > amnesiac# tail -n5 /var/log/messages > > Jan 30 02:19:00 amnesiac savecore: no dumps found > > Jan 30 02:19:39 amnesiac login: ROOT LOGIN (root) ON ttyv0 > > Jan 30 02:21:38 amnesiac kernel: ar0: WARNING - mirror > protection lost. RAID1 array in DEGRADED mode > > Jan 30 02:21:38 amnesiac kernel: subdisk4: detached > > Jan 30 02:21:38 amnesiac kernel: ad4: detached > > amnesiac# atacontrol attach ata2 > > Master: ad4 Serial ATA v1.0 > > Slave: no device present > > amnesiac# atacontrol status ar0 > > ar0: ATA RAID1 status: DEGRADED > > subdisks: > > 0 ad6 ONLINE > > 1 ---- MISSING > > amnesiac# atacontrol list > > ATA channel 0: > > Master: no device present > > Slave: no device present > > ATA channel 1: > > Master: acd0 ATA/ATAPI revision 0 > > Slave: no device present > > ATA channel 2: > > Master: ad4 Serial ATA v1.0 > > Slave: no device present > > ATA channel 3: > > Master: ad6 Serial ATA v1.0 > > Slave: no device present > > amnesiac# atacontrol addspare ar0 ad4 > > atacontrol: ioctl(IOCATARAIDADDSPARE): Device busy > > amnesiac# ^Dexit > > Script done on Fri Jan 30 02:22:47 2009 > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org" Oh man, so we're all stumped? Any suggestions would be greatly appreciated. Thanks