From owner-freebsd-questions@FreeBSD.ORG Thu Dec 4 17:04:08 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 215CAB35 for ; Thu, 4 Dec 2014 17:04:08 +0000 (UTC) Received: from smarthost1.sentex.ca (smarthost1.sentex.ca [IPv6:2607:f3e0:0:1::12]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "smarthost.sentex.ca", Issuer "smarthost.sentex.ca" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id C58AF359 for ; Thu, 4 Dec 2014 17:04:07 +0000 (UTC) Received: from [IPv6:2607:f3e0:0:4:f025:8813:7603:7e4a] (saphire3.sentex.ca [IPv6:2607:f3e0:0:4:f025:8813:7603:7e4a]) by smarthost1.sentex.ca (8.14.9/8.14.9) with ESMTP id sB4H452f025201 for ; Thu, 4 Dec 2014 12:04:05 -0500 (EST) (envelope-from mike@sentex.net) Message-ID: <548093FA.8030008@sentex.net> Date: Thu, 04 Dec 2014 12:03:54 -0500 From: Mike Tancsa Organization: Sentex Communications User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0 MIME-Version: 1.0 To: freebsd-questions Subject: megacli / mfi driver powersave mode Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.75 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 Dec 2014 17:04:08 -0000 More a "for the archives post" as it took me a while to find this, but if you are using an mfi based controller and using the disks as unconfigured jbod, the mfi controller might by default spindown inactive drives. If you have a somewhat busy server, this is not an issue. The drive will spin down with a message to the console something like Power state change on PD 1d(e0xf5/s0) from ON(0) to POWERSAVE(1) Writing to the disk will spin it up, but this can take a bit of time and can cause an OS error. To disable this behavior, the MegaCli tool from the ports seems to be able to adjust this setting. ( I tried from the BIOS, and its not there) # MegaCli -AdpSetProp -EnblSpinDownUnConfigDrvs 0 -aAll Adapter 0: Set Disable Spin Down of Unconfigured Drives : success. Exit Code: 0x00 My card is a 9240-8i # mfiutil show firmware mfi0 Firmware Package Version: 20.13.1-0208 mfi0 Firmware Images: Name Version Date Time Status BIOS 4.38.02.2_4.16.08.00_0x06060A05 07/23/2014 07/23/2014 active PCLI 03.02-020:#%00009 May 07 2012 13:21:53 active BCON 4.0-61-e_50-Rel Sep 09 2014 11:45:57 active NVDT 3.09.03-0064 Oct 06 2014 12:00:15 active APP 2.130.404-3836 Oct 16 2014 06:50:12 active BTBL 2.02.00.00-0001 Aug 18 2010 11:44:44 active # mfiutil show adapter mfi0 Adapter: Product Name: LSI MegaRAID SAS 9240-8i Serial Number: SP12147654 Firmware: 20.13.1-0208 RAID Levels: JBOD, RAID0, RAID1, RAID5, RAID10, RAID50 Battery Backup: not present NVRAM: 32K Onboard Memory: 0M Minimum Stripe: 8K Maximum Stripe: 64K A small caveat, the tool also lets you control the same behavior for hot spares. However, the perspective is opposite. # MegaCli -AdpSetProp -DsblSpinDownHSP 1 -aAll Adapter 0: Set Disable spin Down of Hot Spares : success. Exit Code: 0x00 vs # MegaCli -AdpSetProp -EnblSpinDownUnConfigDrvs 0 -aAll Adapter 0: Set Disable Spin Down of Unconfigured Drives : success. Exit Code: 0x00 10.1-STABLE FreeBSD 10.1-STABLE #14 r275472: Wed Dec 3 22:46:51 EST 2014 ---Mike -- ------------------- Mike Tancsa, tel +1 519 651 3400 Sentex Communications, mike@sentex.net Providing Internet services since 1994 www.sentex.net Cambridge, Ontario Canada http://www.tancsa.com/