Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 1 May 2003 20:11:10 +0900 (JST)
From:      Masachika ISHIZUKA <ishizuka@ish.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   kern/51654: ata RAID driver
Message-ID:  <200305011111.h41BBAHt053581@onion.ish.org>
Resent-Message-ID: <200305011120.h41BKCwl098256@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

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


>Description:
	(1) Shifted ata raid drives display at boot.
	    [see freebsd-stable ML 2003-3-13 <3E70A7D6.1060409@pydo.org>]
	(2) 'atacontrol delete ar0' cannot delete ATA_MAGIC.
	    [see freebsd-stable ML 2002-9-30 <20020930.170110.74702592.ishizuka@ish.org>]
	(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.

>How-To-Repeat:
	
>Fix:

	Get the patch from ftp://ftp.ish.org/pub/work/ata-raid.diff
	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
>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200305011111.h41BBAHt053581>