1

I would like to perform some tests with WriteThrough and WriteBack. Is it safe to change these settings on a production system? The RAID controller doesn't have a BBU so I would like to enable WriteBack just for the duration of the test (sysbench):

# ./MegaCli64 -LDInfo -L0 -a0 | grep "Current Cache Policy:"
Current Cache Policy: WriteThrough, ReadAdaptive, Direct, No Write Cache if Bad BBU

# ./MegaCli64 -LDSetProp WB -L0 -a0
tlo
  • 548
  • 2
  • 8
  • 24
HTF
  • 3,148
  • 14
  • 52
  • 82

1 Answers1

6

I did this several times on a test server without any problems. Also, I never read any warning or something like that to not do that online. So I guess this should be safe.

As you don't have a BBU, you need this command as well:

./MegaCli64 -LDSetProp CachedBadBBU -L0 -a0

Change back with:

./MegaCli64 -LDSetProp NoCachedBadBBU -L0 -a0
tlo
  • 548
  • 2
  • 8
  • 24
  • tlo's CachedBadBBU/NoCachedBadBBU settings are backwards -- You want NoCachedBadBBU if you don't have a battery backup unit. "No Write Cache if Bad BBU" – Jeremy May 28 '18 at 13:41
  • 2
    Jeremy is wrong. If you use "noCachedBadBBU", it goes back to "write through" . I just tested this. tlo is correct – Evan R. Sep 06 '18 at 19:02