kern/51654: ata RAID driver

Masachika ISHIZUKA ishizuka at
Thu May 1 04:20:14 PDT 2003

>Number:         51654
>Category:       kern
>Synopsis:       ata RAID driver
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu May 01 04:20:12 PDT 2003
>Originator:     Masachika ISHIZUKA
>Release:        FreeBSD 4.8-RELEASE i386
System: FreeBSD 4.8-RELEASE FreeBSD 4.8-RELEASE #0: Sat Apr 5 22:52:44 JST 2003 ishizuka@:/usr/src/sys/compile/onion i386

	(1) Shifted ata raid drives display at boot.
	    [see freebsd-stable ML 2003-3-13 <3E70A7D6.1060409 at>]
	(2) 'atacontrol delete ar0' cannot delete ATA_MAGIC.
	    [see freebsd-stable ML 2002-9-30 <20020930.170110.74702592.ishizuka at>]
	(3) If disks broken when RAID1 or RAID0+1 with 'non-real' ATA RAID
	    controller, the new disks cannot be spare because of no
	    promise_raid_conf information on these disks.


	Get the patch from
	and rebuild kernel and atacontrol command with it as follows.

	% su
	# cd /usr/src
	# patch -p < ata-raid.diff
	# cd /sys/i386/conf
	# config YOURKERNEL
	# cd ../../compile/YOURKERNEL
	# make depend && make && make install
	# cp -p /sys/sys/ata.h /usr/include/sys/
	# cd /usr/src/sbin/atacontrol/
	# make && make install
	# reboot

	Description (1) and (2) are corrected. You can use new
	'atacontrol spare' command and can replace new disks as follows.
	For example, ar0 is RAID1 of ad0 and ad2, and ad2 is broken.

	[1] If you use hot swap enclosures

	(a) atacontrol detach ata1
	(b) swap ad2 to a new disk.
	(c) atacontrol attach ata1
	(d) atacontrol spare ar0 ad2
	(e) atacontrol rebuild ar0

	[2] If you use non hot swap enculosures

	(a) shutdown -p now
	(b) swap ad2 to new disk.
	(c) power on and boot
	(d) atacontrol spare ar0 ad2
	(e) atacontrol rebuild ar0

More information about the freebsd-bugs mailing list