home lab

Change BBU and RAID Cache Settings with Avago LSI StorCLI

A look at how to Change BBU and RAID Cache Settings with Avago LSI StorCLI. The StorCLI is a powerful utility for ESXi hosts with Avago LSI RAID controllers

We have covered the functionality before of the Avago LSI StorCLI utility and its capabilities in controlling and interacting with Avago LSI RAID controllers. Just about anything you can do from the RAID BIOS can be done from the StorCLI. Actually, I don’t know of anything you can’t do from the StorCLI, but keep in mind you may run into some functionality that may be limited as I haven’t performed a direct comparison. Let’s detail the ability of the StorCLI to take a look at RAID controller BBU status and interact with the battery as well as controlling RAID cache policy on virtual disks. In this post we will take a look at how to Change BBU and RAID Cache Settings with Avago LSI StorCLI.

Change BBU and RAID Cache Settings with Avago LSI StorCLI

If you are not sure about how to get the StorCLI utility installed on your VMware ESXi server, take a look at the post here which describes the process.ย  As we mention there, the nice thing about StorCLI that I like is that it does not require a reboot.ย  Especially if you are running a standalone host in a lab environment, etc, it is great not to have to find a maintenance window to power everything down and reboot.

Why is knowing about the BBU and looking at the cache settings important?ย  Well, there are a couple of reasons.ย  The first and foremost is the BBU serves the purpose of being able to keep power to the controller long enough to finish out any disk operations if there is a sudden loss of power.ย  This helps to ensure there is no data corruption.ย  The second reason is that generally, most RAID controllers are set by default to “write back” with a BBU installed and “write through” without one.ย  Usually “write through” equates to terrible performance.ย  So, we want to make sure we have the BBU installed for the integrity of our data as well as performance.ย  Pretty important reasons!

Use StorCLI to see BBU Settings

The first thing we want to take a look at are a few BBU specific commands that enable us to get the status of our BBU or even see if one is installed without having to pop the top cover.ย  If we want to get the status and detailed status of our BBU, we can run the following commands:

./storcli /cX /bbu /show
./storcli /cX /bbu /show all

Below we see the status of our BBU is optimal and also see the next learn cycle.

Avago-LSI-StorCLI-BBU-show-command
Avago LSI StorCLI BBU show command

Below, an example of a RAID controller installed without a BBU.

StorCLI-BBU-command-showing-no-battery-present
StorCLI BBU command showing no battery presentย ย 
./storcli /cX /bbu show status

The show status command gives the same output from what I can tell as theย show all command including current condition, firmware status, etc.

Avago-LSI-StorCLI-BBU-show-status
Avago LSI StorCLI BBU show command

Below we see an issue with a BBU not charging.ย  This can be see with theย show status command.

Avago-StorCLI-BBU-status-showing-charging-problem
Avago StorCLI BBU status showing charging problem
./storcli /cX /bbu /show properties

The properties command shows the next learn period, time, and delay interval as well as the learn mode.

StorCLI-BBU-show-properties-command
StorCLI BBU show properties command
./storcli /cX /bbu start learn

Using theย start learn command, we can start a manual learn cycle.

Use-StorCLI-to-manually-start-a-learn-cycle
Use StorCLI to manually start a learn cycle

Use Avago StorCLI to view and configure RAID cache policy

The StorCLI command is also powerful from a RAID cache policy perspective.ย  Considering the state of your BBU, we can also alter the cache policy.ย  Most controllers will revert to RWTD which is read ahead, write through when a battery is not detected.ย  This will result in very poor performance.

To see the properties of our virtual drive we can issue the general command:

./storcli /cX show all

One section of the returned information is the Virtual Drives listing.ย  Look for theย Cacheย section and the value that is populated.ย  As mentioned, below we have the RWTD policy set.

Showing-Read-Ahead-Write-Through-Cache-policy
Showing Read Ahead Write Through Cache policy

We can manually set the policy to “Read Aheadย Write Back” which performs much better by using the following:

./storcli /cX /vX set wrcache=AWB

If you don’t have a battery installed, definitely use this command assuming the risk that results from running no battery.ย  However, if not a production host, we can easily gain back the performance of write back mode without running a battery.

Setting-RAID-cache-policy-to-always-write-back-mode
Setting RAID cache policy to always write back mode

Thoughts

Hopefully, the look at how to Change BBU and RAID Cache Settings with Avago LSI StorCLI has shown some of the potential of this little utility that can be extremely helpful when using ESXi hosts in a lab environment to be able to control RAID settings of an Avago LSI card without having to reboot your server.ย  The StorCLI utility is readily available for download via the Avago support site here.

Subscribe to VirtualizationHowto via Email ๐Ÿ””

Enter your email address to subscribe to this blog and receive notifications of new posts by email.



Brandon Lee

Brandon Lee is the Senior Writer, Engineer and owner at Virtualizationhowto.com, and a 7-time VMware vExpert, with over two decades of experience in Information Technology. Having worked for numerous Fortune 500 companies as well as in various industries, He has extensive experience in various IT segments and is a strong advocate for open source technologies. Brandon holds many industry certifications, loves the outdoors and spending time with family. Also, he goes through the effort of testing and troubleshooting issues, so you don't have to.

Related Articles

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.