From edwin@mavetju.org  Wed Jul 20 07:16:58 2005
Return-Path: <edwin@mavetju.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id ABFED16A41F
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 20 Jul 2005 07:16:58 +0000 (GMT)
	(envelope-from edwin@mavetju.org)
Received: from mail3out.barnet.com.au (mail3out.barnet.com.au [202.83.176.17])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 398D543D49
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 20 Jul 2005 07:16:57 +0000 (GMT)
	(envelope-from edwin@mavetju.org)
Received: by mail3out.barnet.com.au (Postfix, from userid 27)
	id 3C622877C9A; Wed, 20 Jul 2005 17:16:56 +1000 (EST)
Received: from mail3-auth.barnet.com.au (mail3.barnet.com.au [202.83.176.16])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(Client CN "*.barnet.com.au", Issuer "BarNet Root Certificate Authority" (verified OK))
	by mail3.barnet.com.au (Postfix) with ESMTP id D5B6C877C8F
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 20 Jul 2005 17:16:55 +1000 (EST)
Received: from k7.mavetju (edwin-3.int.barnet.com.au [10.10.12.2])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(Client CN "edwin.adsl.barnet.com.au", Issuer "BarNet Root Certificate Authority" (not verified))
	by mail3-auth.barnet.com.au (Postfix) with ESMTP id 6F696877C52
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 20 Jul 2005 17:16:55 +1000 (EST)
Received: by k7.mavetju (Postfix, from userid 1001)
	id B39A664A3; Wed, 20 Jul 2005 17:16:53 +1000 (EST)
Message-Id: <20050720071653.B39A664A3@k7.mavetju>
Date: Wed, 20 Jul 2005 17:16:53 +1000 (EST)
From: Edwin Groothuis <edwin@mavetju.org>
Reply-To: Edwin Groothuis <edwin@mavetju.org>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: handbook/raid.html and atacontrol
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         83771
>Category:       docs
>Synopsis:       handbook/raid.html and atacontrol
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-doc
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jul 20 07:20:16 GMT 2005
>Closed-Date:    Sun Dec 18 18:40:35 GMT 2005
>Last-Modified:  Sun Dec 18 18:40:35 GMT 2005
>Originator:     Edwin Groothuis
>Release:        FreeBSD 5.2.1-RELEASE i386
>Organization:
>Environment:
System: FreeBSD garak.mavetju 5.4

>Description:
>How-To-Repeat:
>Fix:

http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/raid.html
says (at the bottom):

	3.  Reattach the disk as a spare:
	    # atacontrol attach 3
	    Master:  ad6 <MAXTOR 6L080J4/A93.0500> ATA/ATAPI rev 5
	    Slave:   no device present

Trying that command, it complains that:
	garak# atacontrol attach 3
	atacontrol: ioctl(ATAATTACH): File exists

The right command was:
	garak# atacontrol addspare ar0 ad6

Of course, I could be totally wrong about this, but it works for
me (on 5.4). Thanks to Darius@#thatircchannel for his help.

>Release-Note:
>Audit-Trail:

From: "Julien Gabel" <jpeg@thilelli.net>
To: "Edwin Groothuis" <edwin@mavetju.org>
 
 I think it may be because the corresponding failed drive was lost in the
 array configuration, say:
  # atacontrol status ar0
  ar0: ATA RAID1 subdisks: ad4 status: DEGRADED
 Instead of:
  # atacontrol status ar0
  ar0: ATA RAID1 subdisks: ad4 ad6 status: DEGRADED
                               ^^^
 
 I encoutered a very similar problem recently, and resolved it this way:
  http://www.thilelli.net/~jgabel/archives/2005/07/#e2005-07-06T15_39_56.txt
 
 So it not an error in the documentation, but maybe this one may be
 completed.
 
 -- 
 -jpeg.
 
State-Changed-From-To: open->closed 
State-Changed-By: pav 
State-Changed-When: Sun Dec 18 18:40:05 UTC 2005 
State-Changed-Why:  
As I recently hit this very same problem, I updated the Handbook to match 
a reality of FreeBSD 6.0 

http://www.freebsd.org/cgi/query-pr.cgi?pr=83771 
>Unformatted:
