From owner-freebsd-hackers@FreeBSD.ORG Thu Dec 15 18:11:36 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 4972C106567A for ; Thu, 15 Dec 2011 18:11:36 +0000 (UTC) (envelope-from hugo@barafranca.com) Received: from mail.barafranca.com (mail.barafranca.com [67.213.67.47]) by mx1.freebsd.org (Postfix) with ESMTP id 184468FC1B for ; Thu, 15 Dec 2011 18:11:35 +0000 (UTC) Received: from localhost (unknown [172.16.100.24]) by mail.barafranca.com (Postfix) with ESMTP id 6E90CF22; Thu, 15 Dec 2011 18:11:35 +0000 (UTC) X-Virus-Scanned: amavisd-new at barafranca.com Received: from mail.barafranca.com ([172.16.100.24]) by localhost (mail.barafranca.com [172.16.100.24]) (amavisd-new, port 10024) with ESMTP id T-nKQLxs0Ggf; Thu, 15 Dec 2011 18:11:00 +0000 (UTC) Received: from [192.168.1.1] (static-b4-252-232.telepac.pt [81.193.252.232]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mail.barafranca.com (Postfix) with ESMTPSA id 5EAECEE6; Thu, 15 Dec 2011 18:10:59 +0000 (UTC) Message-ID: <4EEA382A.1000900@barafranca.com> Date: Thu, 15 Dec 2011 18:10:50 +0000 From: Hugo Silva User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.13) Gecko/20101208 Thunderbird/3.1.7 MIME-Version: 1.0 To: Andrew Boyer References: <4EE8A005.5030607@barafranca.com> <9317551F-CBE0-4368-B798-498E58E240B2@sarenet.es> <2EA3FFF4-E6A2-4371-8891-26E99C551C67@transactionware.com> <4EEA1215.8060507@barafranca.com> <4EEA1A64.1040104@barafranca.com> <3A13B3B1-4CDE-4D5A-A6F3-E7DC5BB0E4E3@averesystems.com> In-Reply-To: <3A13B3B1-4CDE-4D5A-A6F3-E7DC5BB0E4E3@averesystems.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org, Jan Mikkelsen 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: Thu, 15 Dec 2011 18:11:36 -0000 On 12/15/11 16:40, Andrew Boyer wrote: > I'm not sure it would even be possible to come up with a worse interface. It boggles the mind. > > I recommend you always run with this configuration: > > # MegaCli -AdpSetProp AutoEnhancedImportEnbl -aALL > # MegaCli -AdpSetProp MaintainPdFailHistoryEnbl -0 -aALL > > AutoEnhancedImportEnbl will bring the foreign disk back in on a reboot. LSI recommends turning off MaintainPdFailHistory when using single-disk RAID0 configurations. > Any gotchas with this enabled? I'm thinking putting in a disk from another card, which is part of a raid, in this server, for instance. > To bring in a foreign disk without rebooting: > > # MegaCli -CfgForeign -Scan -aALL > # MegaCli -CfgForeign -Import [x] -aN (where x is the config number listed in the scan, and N is the adapter number) > > Adding these capabilities to mfiutil is on my list of things to do, but it's not ready yet. > > Has anyone managed to get the real JBOD mode working on this controller? It advertises support in the firmware but doesn't seem to do anything. The documentation only lists JBOD mode as a feature of the lower-end controllers. > > Hope this helps. > > -Andrew It does help - thanks! For the same disk being removed and then reinserted, the provided commands brought the disk/volume back to mfiutil show drives/volumes output, and after a zpool clear, ZFS has no complains. For recovery from a software-induced fail (mfiutil fail eX:sX), I couldn't perform a recovery using just mfiutil. MegaCli -PDOnline -PhysDrv[eX:sX] -aN did it, in that case. For the still-untested case of an altogether new disk being inserted, I guess mfiutil create jbod N would do the trick. BTW, the mfiutil is coredumping when provided with inexistant disks (just noticed) Regards, Hugo