From owner-freebsd-questions@FreeBSD.ORG Fri Jan 30 11:07:25 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 E9B34106566B for ; Fri, 30 Jan 2009 11:07:25 +0000 (UTC) (envelope-from nrml@att.net) Received: from web83816.mail.sp1.yahoo.com (web83816.mail.sp1.yahoo.com [69.147.85.95]) by mx1.freebsd.org (Postfix) with SMTP id D37298FC18 for ; Fri, 30 Jan 2009 11:07:25 +0000 (UTC) (envelope-from nrml@att.net) Received: (qmail 96040 invoked by uid 60001); 30 Jan 2009 10:40:45 -0000 X-YMail-OSG: 3qliZ2UVM1lbvhLmAc3aENq6ejnJ1fDXDqKYJeeb6C5JI05o03ebADMP0Ne8LXFwS9wsXsYWSDaZtWQLc7nwR55I2XezVTLHXOjJvqeERZusf975Kgxi01A7m..g3_QFIjdiX.8Maj3O0gT6I38jpYHD0ql3TJA4uPQC.ywnu0KUPU8VsHhVP5KgPzDROeqPmhY8MS8N_DJk68fOOo3xwAaCSf2hcywr7w-- Received: from [69.43.143.59] by web83816.mail.sp1.yahoo.com via HTTP; Fri, 30 Jan 2009 02:40:44 PST X-Mailer: YahooMailWebService/0.7.260.1 Date: Fri, 30 Jan 2009 02:40:44 -0800 (PST) From: Gabe To: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Message-ID: <50265.96017.qm@web83816.mail.sp1.yahoo.com> Subject: 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: Fri, 30 Jan 2009 11:07:26 -0000 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 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 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