Disabling BBU Auto Learn on LSI RAID Cards

Follow

If you have an issue where a server has a failing RAID battery, and it's affecting performance, you are able to force WriteBack without BBU protection.

In a system which doesn't hold critical data, this just means that if the server hard crashes, you may lose the last 30 seconds of transactional data at most, and can be done to increase performance without replacing the drive.

Safe Write Back (with BBU only)

#!/bin/bash
/opt/MegaRAID/MegaCli/MegaCli64 -LDSetProp NORA -Lall -aALL
/opt/MegaRAID/MegaCli/MegaCli64 -LDSetProp -Cached -Lall -aALL
/opt/MegaRAID/MegaCli/MegaCli64 -LDSetProp DisDskCache -Lall -aALL
/opt/MegaRAID/MegaCli/MegaCli64 -LDSetProp NoCachedBadBBU -Lall -aALL
/opt/MegaRAID/MegaCli/MegaCli64 -LDSetProp WB -Lall -aALL
/opt/MegaRAID/MegaCli/MegaCli64 -LDInfo -Lall -aALL

Force Write Back (without BBU) for SAS based Drives

#!/bin/bash
/opt/MegaRAID/MegaCli/MegaCli64 -LDSetProp NORA -Lall -aALL
/opt/MegaRAID/MegaCli/MegaCli64 -LDSetProp -Cached -Lall -aALL
/opt/MegaRAID/MegaCli/MegaCli64 -LDSetProp DisDskCache -Lall -aALL
/opt/MegaRAID/MegaCli/MegaCli64 -LDSetProp CachedBadBBU -Lall -aALL
/opt/MegaRAID/MegaCli/MegaCli64 -LDSetProp WB -Lall -aALL
/opt/MegaRAID/MegaCli/MegaCli64 -LDInfo -Lall -aALL

Force Write Back (without BBU) for SSD based Drives

#!/bin/bash
/opt/MegaRAID/MegaCli/MegaCli64 -LDSetProp NORA -Lall -aALL
/opt/MegaRAID/MegaCli/MegaCli64 -LDSetProp -Direct -Lall -aALL
/opt/MegaRAID/MegaCli/MegaCli64 -LDSetProp -EnDskCache -Lall -aALL
/opt/MegaRAID/MegaCli/MegaCli64 -LDSetProp CachedBadBBU -Lall -aALL
/opt/MegaRAID/MegaCli/MegaCli64 -LDSetProp WB -Lall -aALL
/opt/MegaRAID/MegaCli/MegaCli64 -LDInfo -Lall -aALL

In the above examples

-Lall -aALL

Can be replaced to specify the Logical Drive, and the Adaptor if there's one running SAS, and one running SSD for example

-L0 -a0

Have more questions? Submit a request

Comments

Powered by Zendesk