From owner-freebsd-questions@FreeBSD.ORG Wed Nov 7 15:27:54 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4FDA016A469 for ; Wed, 7 Nov 2007 15:27:54 +0000 (UTC) (envelope-from david.robillard@gmail.com) Received: from rv-out-0910.google.com (rv-out-0910.google.com [209.85.198.188]) by mx1.freebsd.org (Postfix) with ESMTP id 2B00E13C4B8 for ; Wed, 7 Nov 2007 15:27:54 +0000 (UTC) (envelope-from david.robillard@gmail.com) Received: by rv-out-0910.google.com with SMTP id l15so1854445rvb for ; Wed, 07 Nov 2007 07:27:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:mime-version:content-type:content-transfer-encoding:content-disposition; bh=zpq+6YH7ahkSC+c+W5lKtKa1T4TXs7ySCTx5nHF5UIE=; b=Ti4kNuW5o64iUzEcniwADY7Q6iMEDgLFdI13lwqxduvwR2vvDX26OLVka8KPy0PLpsFzVrUz3hQrKBxSLqkSDDXe/EqQKe7lTEjZXGt4CSzGlp+Rt9yYruN9Rx7xbVzzenVhza5nvFgXrjzs5nJd18cf0eWZKUJ5GCPJ/HaJoFg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:mime-version:content-type:content-transfer-encoding:content-disposition; b=D7WKiFFcCRcFpbi+E/BDunTnRtHyZObjJ4GbeJMaIFK63VBxL5816RRvUb4Hv6n4MotrvAwtrLpFv4oFI9HvKZleDGXv2D83PaBiJtkuInhKTL4Ag5TUvTj1gGoZG38mv1NDanxK/OQXGysPnkffttV7SUYmmPKJ+xCllZyRCgg= Received: by 10.141.20.7 with SMTP id x7mr3564106rvi.1194448838139; Wed, 07 Nov 2007 07:20:38 -0800 (PST) Received: by 10.140.203.6 with HTTP; Wed, 7 Nov 2007 07:20:38 -0800 (PST) Message-ID: <226ae0c60711070720x6299e4d5p19116de6b495cb5c@mail.gmail.com> Date: Wed, 7 Nov 2007 10:20:38 -0500 From: "David Robillard" To: "FreeBSD Questions" MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Cc: Andrew Wasilczuk Subject: Re: Recommended servers for FreeBSD. X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Nov 2007 15:27:54 -0000 On Oct 29, 2007 10:45 AM, Andrew Wasilczuk 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: 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: 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