Your server was fine last week. Now databases feel sluggish, file saves take longer and virtual machines are crawling, yet every disk shows as healthy. Then you spot a warning in iDRAC, iLO or the RAID management software about the controller’s battery or cache. The two are very likely connected, and it’s a fault worth dealing with calmly but soon.
What the cache battery actually does
Most hardware RAID controllers have a small amount of fast memory called cache. In write-back mode, the controller tells the operating system that data has been saved as soon as it reaches the cache, then writes it to the disks a moment later. This makes writes much faster.
The catch is that cache memory forgets everything when the power goes. So the cache needs protection, and that usually takes one of two forms:
- A battery backup unit (BBU), which keeps the cache memory alive during a power cut, for a limited time.
- Flash-backed cache, where a battery or capacitor pack supplies just enough power to copy the cache to flash memory, so it can be restored at the next start.
Names vary between manufacturers. Dell PERC controllers and HPE Smart Array controllers use different terms and messages, but the idea is the same.
Why the server suddenly slowed down
When the controller can’t trust its protection, it normally does the safe thing and switches to write-through mode. Each write now has to reach the disks before it is confirmed. Your data is safer in this mode than it would be with unprotected cache, but anything that writes a lot, such as databases, mail servers and virtual machines, can slow down noticeably. Reading data is usually much less affected, which is why the symptoms can seem patchy.
So the slowdown is the controller protecting you. It’s not a sign that your disks have failed, although you should still confirm that they haven’t.
Common causes of the warning
- A routine learn cycle. Many controllers test their battery every few months by discharging and recharging it, and may use write-through while this runs. The warning clears by itself, usually within hours.
- The battery is charging. This is normal after a new install, a replacement or a long period switched off.
- Age. Batteries and capacitor packs wear out. On a server that has been running for years, this is the most likely cause of a warning that won’t clear.
- Heat. High temperatures shorten battery life, and blocked filters or a failed fan can make things worse.
- A loose cable or failed cache module. This can happen after other work has been done inside the server, and sometimes the cache module itself has failed instead of the battery.
What to do, in order
- Check your backups first. Make sure the latest backup finished and that you can restore from it. Do this before any hardware work.
- Read the exact message. Note the wording, the time it first appeared and the current cache policy from iDRAC, iLO, OpenManage or the controller’s own utility. “Learn cycle in progress” and “battery failed” mean very different things.
- Check the array. Confirm that every disk is online and that the virtual disk is optimal, not degraded or rebuilding.
- Check the temperatures and fans. Look at the server’s sensor readings and make sure the airflow isn’t obstructed.
- Give it time if it’s only charging or learning. If the warning hasn’t cleared after about a day, treat it as a fault.
- Plan the replacement. Find the exact controller and part number, as batteries and cache modules aren’t interchangeable. Book a maintenance window, and shut the server down cleanly so that the cache is written to disk before anyone opens the case.
What not to do
Don’t force write-back to get the speed back
Many controllers offer a setting such as “always write back”, which keeps the cache on with no working protection. It’s tempting when staff are complaining, but a power cut, a failed power supply or a crash can then lose data that the operating system believes was saved. That can mean a corrupted database or file system. A UPS reduces the risk but doesn’t remove it, because it won’t help if the fault is inside the server. If you really must use this setting for a short time, make sure you have a tested backup and a clear plan to reverse it.
Don’t discard cached data without thinking
If the warning follows an unexpected shutdown, the controller may report that it has preserved cache data, or that cached data was lost. Stop there. Discarding that data, clearing the configuration or re-creating the virtual disk can make a recoverable situation much worse. Note the message, and get advice before you press anything.
Don’t keep rebooting
Restarting a server rarely fixes a battery fault, and each restart on a marginal system adds risk. If the server won’t come back up or the array is reporting a problem, leave it powered off and speak to a data recovery specialist.
Is it worth fixing on an older server?
Usually, yes. A cache battery or capacitor pack is a small part compared with the cost of replacing a server, and the fix brings performance back to where it was. It’s still a good moment to look at the wider picture: how old the disks are, whether the power supplies are redundant and working, and whether spare parts for that model are still easy to find. If several parts are near the end of their life, plan a replacement before something forces your hand.
Need help with a server warning?
Our server repair team works on RAID controllers and failed arrays, and can tell you what a warning means before you change anything. Call Creative IT on 020 7237 4908, bring the server to our Central London repair centre, or use our UK-wide courier collection. You’ll get a free evaluation and a fixed quote before any work starts, and if we can’t fix it, you don’t pay. You can also contact us online.