On Oct 29, 2007 10:45 AM, Andrew Wasilczuk <[EMAIL PROTECTED]> wrote:
> On Mon, Oct 29, 2007 at 09:08:12AM -0400, David Robillard wrote:
> >
> > We run FreeBSD 6.2-RELEASE on several IBM x3550 machines with the
> > onboard RAID controller using the aac(4) driver. We haven't had any
> > problems, the machines are stable and backed by IBM Professional
> > Services.
>
> Nice, I think those use the ServeRAID-8k controller.  Have you tried
> hot-swapping the disks? Does it work on FreeBSD?

I've finally found some spare time to test the hot-swap capability of
the IBM x3550 machines with FreeBSD 6.2-RELEASE-p8. Good news, it
works as expected.

Here's the info required to make it happen:

Kernel configuration lines to include. Note that you can omit the
AAC_DEBUG line. If you do so, you won't see anything in the logs when
the controller is working. I've only tried debug level zero and you'll
see below that it generates quite a lot of info.

device          aac             # Adaptec FSA RAID
device          aacp            # SCSI passthrough for aac (requires CAM)
options         AAC_DEBUG=0     # Set debug level from 0 to 3.

Here's what FreeBSD reports:

grep -i raid /var/run/dmesg.boot
aac0: <IBM ServeRAID-8k> port 0x4000-0x40ff mem
0xcce00000-0xccffffff,0xcafe0000-0xcaffffff irq 17 at device 0.0 on
pci2
aac0: Adaptec Raid Controller 2.0.0-1
aacd0: <RAID 1 (Mirror)> on aac0

Now when you pull a drive out from the machine, wait a around a minute
or so and then plug it back in, you'll get those messages in
/var/log/messages:

+aac0: EventNotify(0)
+aac0: (EnclosureManagement) EMPID 0 unit 1 event 17
+aac0: EventNotify(0)
+aac0: (DeviceFailure) handle 1
+aac0: EventNotify(0)
+aac0: (EnclosureManagement) EMPID 0 unit 1 event 31
+aac0: EventNotify(0)
+aac0: (23)
+aac0: EventNotify(0)
+aac0: (ConfigChange)
+aac0: EventNotify(0)
+aac0: (FailoverChange)
+aac0: EventNotify(0)
+aac0: (ContainerChange) container 0,0
+aac0: EventNotify(0)
+aac0: (23)
+aac0: EventNotify(0)
+aac0: (23)
+aac0: EventNotify(0)
+aac0: (ContainerChange) container 0,-1
+aac0: EventNotify(0)
+aac0: (ContainerEvent) container 0 event 7
+aac0: EventNotify(0)
+aac0: (ContainerChange) container 0,-1
+aac0: EventNotify(0)
+aac0: (ConfigChange)
+aac0: JobProgress (1) - running (3123200, 312317952)
+aac0: (ConatainerRebuildMirror) container 0
+aac0: JobProgress (2) - running (6246400, 312317952)
+aac0: (ConatainerRebuildMirror) container 0

[ ... removed a lot of similar JobProgress lines ... ]

+aac0: (ConatainerRebuildMirror) container 0
+aac0: JobProgress (100) - finished (312317952, 312317952)
+aac0: (ConatainerRebuildMirror) container 0
+aac0: EventNotify(0)
+aac0: (23)
+aac0: JobProgress (101) - success (312317952, 312317952)
+aac0: (ConatainerRebuildMirror) container 0
+aac0: EventNotify(0)
+aac0: (ContainerChange) container 0,-1
+aac0: EventNotify(0)
+aac0: (ConfigChange)

There you go. Thanks to the aac(4) & FreeBSD teams.

Enjoy!

David
-- 
David Robillard
UNIX systems administrator & Oracle DBA
CISSP, RHCE & Sun Certified Security Administrator
Montreal: +1 514 966 0122
_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to