From nobody@FreeBSD.org  Thu Nov  6 23:55:08 2008
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 9A3541065678
	for <freebsd-gnats-submit@FreeBSD.org>; Thu,  6 Nov 2008 23:55:08 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id 882D38FC14
	for <freebsd-gnats-submit@FreeBSD.org>; Thu,  6 Nov 2008 23:55:08 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.3/8.14.3) with ESMTP id mA6Nt87A081532
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 6 Nov 2008 23:55:08 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.3/8.14.3/Submit) id mA6Nt8kU081531;
	Thu, 6 Nov 2008 23:55:08 GMT
	(envelope-from nobody)
Message-Id: <200811062355.mA6Nt8kU081531@www.freebsd.org>
Date: Thu, 6 Nov 2008 23:55:08 GMT
From: Andrew <fbsdbugs.20.awinder@spamgourmet.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: atacontrol does not preserve rebuild status through reboot
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         128654
>Category:       bin
>Synopsis:       atacontrol(8) does not preserve rebuild status through reboot
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Nov 07 00:00:14 UTC 2008
>Closed-Date:    
>Last-Modified:  Fri Nov  7 09:10:01 UTC 2008
>Originator:     Andrew
>Release:        7.0-RELEASE
>Organization:
>Environment:
FreeBSD asdf 7.0-RELEASE FreeBSD 7.0-RELEASE #0: Sun Feb 24 10:35:36 UTC 2008     root@driscoll.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  amd64
>Description:
When you're rebuilding a RAID1 array with atacontrol and reboot, the rebuild status is not preserved and the disk is marked Ok. This causes inconsistency problems as the driver reads from both disks.
>How-To-Repeat:
atacontrol create RAID1 ad4 ad6
atacontrol detach ata3  (or another channel that contains a disk in ar0)
atacontrol attach ata3  (same as above)
atacontrol addspare ar0 ad6  (whichever the dropped disk was)
atacontrol rebuild ar0

atacontrol status ar0
# Wait just a minute until status says > 0%

reboot
# .....
atacontrol status ar0
# ac9: ATA RAID1 status: READY
# i.e. the rebuild is _not_ continued after reboot.
>Fix:


>Release-Note:
>Audit-Trail:

From: "Bjoern A. Zeeb" <bzeeb-lists@lists.zabbadoz.net>
To: Andrew <fbsdbugs.20.awinder@spamgourmet.com>
Cc: freebsd-gnats-submit@FreeBSD.org, freebsd-bugs@FreeBSD.org
Subject: Re: bin/128654: atacontrol does not preserve rebuild status through
 reboot
Date: Fri, 7 Nov 2008 07:10:59 +0000 (UTC)

 On Thu, 6 Nov 2008, Andrew wrote:
 
 >
 >> Number:         128654
 >> Category:       bin
 >> Synopsis:       atacontrol does not preserve rebuild status through reboot
 
 I remember that there are more PRs, I think with patches even.
 
 -- 
 Bjoern A. Zeeb              Stop bit received. Insert coin for new game.

From: Bob Bishop <rb@gid.co.uk>
To: bug-followup@FreeBSD.org
Cc: fbsdbugs.20.awinder@spamgourmet.com,
        "Bjoern A. Zeeb" <bzeeb-lists@lists.zabbadoz.net>
Subject: Re: bin/128654: atacontrol(8) does not preserve rebuild status through reboot
Date: Fri, 7 Nov 2008 08:39:35 +0000

 See:
 http://www.freebsd.org/cgi/query-pr.cgi?pr=102211
 http://www.freebsd.org/cgi/query-pr.cgi?pr=121899
>Unformatted:
