From owner-freebsd-doc Fri Nov 15 10:38:56 2002 Delivered-To: freebsd-doc@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5577237B404 for ; Fri, 15 Nov 2002 10:38:54 -0800 (PST) Received: from toybox.ca (matchbox.toybox.ca [216.191.236.11]) by mx1.FreeBSD.org (Postfix) with ESMTP id C52A143E8A for ; Fri, 15 Nov 2002 10:38:53 -0800 (PST) (envelope-from rhooper@cyberus.ca) Received: from moseisley.cyberus.ca ([216.191.240.5] helo=cyberagent002) by toybox.ca with asmtp (Exim 3.35 #2) id 18ClMQ-000FIt-00 for doc@FreeBSD.org; Fri, 15 Nov 2002 13:38:34 -0500 Message-ID: <01ef01c28cd5$e33eedb0$c701140a@intranet.comnet.ca> From: "Roy Hooper" To: Subject: ATA RAID rebuild steps Date: Fri, 15 Nov 2002 13:36:18 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Sender: owner-freebsd-doc@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org These notes are accurate for the HighPoint ATA controller with hot-swap capable enclosures: I am passing them on for potential inclusion in the handbook. How to Rebuild ATA RAID1 FreeBSD allows you to hot-replace a failed disk in an array. This requires you catch it before you reboot. You will probably see something like the following in the syslog/dmesg output. ad6 on monster1 suffered a hard error. ad6: READ command timeout tag=0 serv=0 - resetting ad6: trying fallback to PIO mode ata3: resetting devices .. done ad6: hard error reading fsbn 1116119 of 0-7 (ad6 bn 1116119; cn 1107 tn 4 sn 11) status=59 error=40 ar0: WARNING - mirror lost Do a quick check to see how things are doing. # atacontrol list ATA channel 0: Master: no device present Slave: acd0 ATA/ATAPI rev 0 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 # atacontrol status ar0 ar0: ATA RAID1 subdisks: ad4 ad6 status: DEGRADED 1) You will first need to detach the disk from the array so that you can safely remove it: # atacontrol detach 3 2) Replace the disk. 3) Reattach the disk as a spare # atacontrol attach 3 Master: ad6 ATA/ATAPI rev 5 Slave: no device present - Rebuild the array # atacontrol rebuild ar0 - The rebuild command hangs until complete, so start another window - Check on the progress: - # dmesg | tail -10 [snip] ad6: removed from configuration ad6: deleted from ar0 disk1 ad6: inserted into ar0 disk1 as spare # atacontrol status ar0 ar0: ATA RAID1 subdisks: ad4 ad6 status: REBUILDING 0% completed - Wait till completed -- Roy Hooper Sr. System Administrator Cyberus Online Inc. http://www.cyberus.ca/ (613) 233-5555 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-doc" in the body of the message