Subject: Re: hardware RAID
To: Adam Glass <adam@clarity.net>
From: Luke Mewburn <lukem@wasabisystems.com>
List: port-i386
Date: 06/29/2002 11:14:06
On Fri, Jun 28, 2002 at 04:54:11PM -0700, Adam Glass wrote:
  | > The 2400A is supported by the IOP driver.
  | 
  | Does Adaptec 2400A card provide true harware IDE RAID such that the
  | host computer (and iop driver) don't know that a drive has failed?
  | Does the iop driver handle any of the RAID work vis-a-vis disabling a
  | drive, switching to a hot spare, or rebuilding a replacement?  How do
  | you configure the 2400A's behavior?  Some sort of post-BIOS config
  | screen as exists with their SCSI cards?

The drives appear as an "ld" (logical disk) versus wd or sd.
For example:

	iop0 at pci0 dev 13 function 1: I2O adapter <ADAPTEC 2400A>
	iop0: interrupting at irq 11
	iop0: configuring...
	dpti0 at iop0: DPT/Adaptec RAID management interface
	ld0 at iop0 tid 521: <ADAPTEC, RAID-1, 370L> direct access, fixed
	ld1 at iop0 tid 522: <ADAPTEC, RAID-1, 370L> direct access, fixed

The RAID BIOS has similar functionality to the Adaptec 2100S and 3x00S
cards, and the older DPT SmartRAID (?) cards.  Once in the BIOS of one
of the cards (e.g, a 2400A), you can actually manage the logical
volumes on other similar cards (other 2400As or even 2100S cards) in
the same system.

Using the "storage-manager" package (the DPT/Adaptec tools run under
Linux emulation, you can manipulate the raid sets in a variety of
ways.  For example:

# raidutil -L array
Address       Type              Manufacturer/Model      Capacity  Status
---------------------------------------------------------------------------
d0b0t0d0      RAID 1 (Mirrored) ADAPTEC  RAID-1         39266MB   Optimal
 d0b0t0d0     Disk Drive (DASD) IC35L040 AVER07-0       39266MB   Optimal
 d0b1t0d0     Disk Drive (DASD) IC35L040 AVER07-0       39266MB   Optimal
d0b2t0d0      RAID 1 (Mirrored) ADAPTEC  RAID-1         39266MB   Optimal
 d0b2t0d0     Disk Drive (DASD) IC35L040 AVER07-0       39266MB   Optimal
 d0b3t0d0     Disk Drive (DASD) IC35L040 AVER07-0       39266MB   Optimal


raidutil can be used to manipulate hot spares and raid groups, etc.

I haven't done anything with hot spares under NetBSD (haven't had the
need), but I have friends who use the same tools under RedHat 7.2 and
it works for them.

Luke.