From owner-freebsd-hackers@FreeBSD.ORG Fri Dec 16 05:01:28 2011 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 861A0106566B for ; Fri, 16 Dec 2011 05:01:28 +0000 (UTC) (envelope-from janm-freebsd-hackers@transactionware.com) Received: from midgard.transactionware.com (mail2.transactionware.com [203.14.245.36]) by mx1.freebsd.org (Postfix) with SMTP id D59748FC0C for ; Fri, 16 Dec 2011 05:01:27 +0000 (UTC) Received: (qmail 14973 invoked by uid 907); 16 Dec 2011 05:01:24 -0000 Received: from jmmacpro.transactionware.com (HELO jmmacpro.transactionware.com) (192.168.1.33) by midgard.transactionware.com (qpsmtpd/0.82) with ESMTP; Fri, 16 Dec 2011 16:01:24 +1100 Mime-Version: 1.0 (Apple Message framework v1251.1) Content-Type: text/plain; charset=iso-8859-1 From: Jan Mikkelsen In-Reply-To: <201112150956.45214.jhb@freebsd.org> Date: Fri, 16 Dec 2011 16:01:24 +1100 Content-Transfer-Encoding: quoted-printable Message-Id: References: <4EE8A005.5030607@barafranca.com> <9317551F-CBE0-4368-B798-498E58E240B2@sarenet.es> <2EA3FFF4-E6A2-4371-8891-26E99C551C67@transactionware.com> <201112150956.45214.jhb@freebsd.org> To: John Baldwin X-Mailer: Apple Mail (2.1251.1) Cc: freebsd-hackers@freebsd.org, Hugo Silva , Borja Marcos Subject: Re: mfi (Dell H700) + hot swapping doesn't appear to work with RC1 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Dec 2011 05:01:28 -0000 On 16/12/2011, at 1:56 AM, John Baldwin wrote: > On Thursday, December 15, 2011 4:19:58 am Jan Mikkelsen wrote: >> For the mfi controllers I have been testing recently (MegaRAID = 9261-8i), you=20 > need to install the sysutils/megacli port, and use that to clear the=20= > "foreignness" of the disk you just added. Something like: >>=20 >> MegaCli -CfgForeign -Clear -a0 >>=20 >> You should be able to then recreate it as a JBOD device, and progress=20= > through whatever higher level recovery you need to do. >=20 > Can you do this by marking it as 'good' via mfiutil and then using = mfiutil > to create a volume? I was going to reply and say that mfiutil will complain about the drive = being in the wrong state, but after reading the other replies I decided = to test. With a blank drive, yes, you can use mfiutil to recreate the jbod = device. You don't even need to do an "mfiutil good" first. If you use a drive that has previously been used by an mfi controller, = it shows up as "bad". Doing "mfiutil good" makes it go to the = "unconfigured good" state. Then creation of the jbod fails with this = error: mfiutil: Command failed: Wrong firmware or drive state mfiutil: Failed to add volume: Input/output error At this point you need to reach for "MegaCli -CfgForeign" and deal with = the now foreign drive. You can use -Import (as pointed out by Andrew Boyer) or -Clear. In my = previous testing (on which my original reply was based), I used drives = that were being moved between machines and so my procedure ended up = being -Clear because I did not want the drive to have the same = configuration as the last time it was used. That was followed a dd from = /dev/zero and then the higher level steps. I have just tested -Import = for the same slot and it worked fine for me. I have not tested -Import = when putting the drive into a different slot. Regards, Jan.