From owner-freebsd-stable@FreeBSD.ORG Tue Apr 17 02:15:12 2012 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 39A7E106564A for ; Tue, 17 Apr 2012 02:15:12 +0000 (UTC) (envelope-from janm@transactionware.com) Received: from mail3.transactionware.com (mail3.transactionware.com [202.68.173.211]) by mx1.freebsd.org (Postfix) with SMTP id 763DE8FC18 for ; Tue, 17 Apr 2012 02:15:11 +0000 (UTC) Received: (qmail 46886 invoked by uid 907); 17 Apr 2012 02:15:10 -0000 Received: from Unknown (HELO jmmacpro.trantek-mst.com.au) (202.68.173.218) (smtp-auth username janm, mechanism plain) by mail3.transactionware.com (qpsmtpd/0.84) with (AES128-SHA encrypted) ESMTPSA; Tue, 17 Apr 2012 12:15:10 +1000 Mime-Version: 1.0 (Apple Message framework v1257) Content-Type: text/plain; charset=windows-1252 From: Jan Mikkelsen In-Reply-To: <201204161632.q3GGWwJo045910@ambrisko.com> Date: Tue, 17 Apr 2012 12:15:10 +1000 Content-Transfer-Encoding: quoted-printable Message-Id: <8CECFFF5-9540-46BF-B855-082049CC5EFB@transactionware.com> References: <201204161632.q3GGWwJo045910@ambrisko.com> To: Doug Ambrisko X-Mailer: Apple Mail (2.1257) Cc: freebsd-stable@freebsd.org Subject: Re: LSI MegaRAID SAS 9240 with mfi driver? X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 Apr 2012 02:15:12 -0000 On 17/04/2012, at 2:32 AM, Doug Ambrisko wrote: > Jan Mikkelsen writes: > | On 31/03/2012, at 1:14 AM, Doug Ambrisko wrote: ... > | > Yes, this card is supported with the mfi(4) in projects/head_mfi. = Looks > | > like we fixed a couple of last minute found bugs when trying to = create a > | > RAID wth mfiutil. This should be fixed now. I'm going to start = the > | > merge to -current today. The version in head_mfi can run on older > | > versions of FreeBSD with the changes that Sean did. > |=20 > | I have just imported the mfi(4) and mfiutil(8) into a 9.0-RELEASE = tree to=20 > | try this out. > |=20 > | When booting up with two fresh drives attached, they show up as = usable=20 > | JBOD disks. However, I cannot use mfiutil to create anything with = them.=20 > | Every drive gives > |=20 > | "mfiutil: Drive n not available" >=20 > You might want to include the output of: > mfiutil show drives > and then the command you are trying to do to create a RAID with. >=20 > | Is this expected behaviour? How can I create a raid1 volume using=20 > | mfiutil and clean disks? >=20 > I'm not sure if mfiutil can switch disks from JBOD mode to RAID. > I don't see any reason why it shouldn't. It can't go from RAID to=20 > real JBOD mode since it doesn't have code to support that. >=20 > | I tried using MegaCli from the LSI website (versions 8.02.16 and > | 8.02.21), but they can't even detect the controller. I know you > | said at some point that a very recent version of MegaCli was=20 > | required. What version is necessary? >=20 > What was the syntax you used since usage is cryptic? I've never > seen a MegaCli that couldn't access the card. What I meant by > more recent MegaCli is earlier versions didn't have the JBOD > commands in it. I have a 8.00.46 that knows about JBOD. The MegaCli problem was an embarrassing operator error which I can't = blame on the bad UI. "mfiutil create jbod =85" doesn't create a JBOD disk, it creates a raid0 = volume. I think that was expected. The biggest problem with this = controller and just mfiutil is that you can't get a drive from the JBOD = state to the unconfigured-good state, and a blank disk starts in JBOD. = So to do any setup you need to resort to the BIOS utility or MegaCli. For each disk to change from JBOD to "Unconfigured-good" so that it can = be used to create a volume, I needed to do: MegaCli -PDMakeGood -Physdrv '[64:1]' -force -a0 Obviously with the right drivespec. Once they're in this state I can = use mfiutil to create volumes. I can get drives from the unconfigured-good state to JBOD by doing = "MegaCli -PDMakeJBOD =85".=20 This is just in a little test machine with a few drives. Now that it is = working to this level I will get a server with a 9240 and give it a = proper run. I'll also try the driver out in one of the 9261 based = servers we've got here. Thanks! Jan.