bin/128654: atacontrol does not preserve rebuild status through reboot

Andrew fbsdbugs.20.awinder at
Thu Nov 6 16:00:17 PST 2008

>Number:         128654
>Category:       bin
>Synopsis:       atacontrol does not preserve rebuild status through reboot
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Nov 07 00:00:14 UTC 2008
>Originator:     Andrew
>Release:        7.0-RELEASE
FreeBSD asdf 7.0-RELEASE FreeBSD 7.0-RELEASE #0: Sun Feb 24 10:35:36 UTC 2008     root at  amd64
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.
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%

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


More information about the freebsd-bugs mailing list