Changes between Version 37 and Version 38 of LSIMegaRAIDSAS


Ignore:
Timestamp:
06/25/09 10:58:13 (15 years ago)
Author:
Adam Cécile
Comment:

Section about Read/Write/Disk Cache and ReadAhead on LSI cards (megacli)

Legend:

Unmodified
Added
Removed
Modified
  • LSIMegaRAIDSAS

    v37 v38  
    282282}}}
    283283
     284==== Read Cache, Write Cache, !ReadAhead and Battery ====
     285
     286A quick section about performance tunning....
     287
     288Let's enabled Read Cache, and always cache data:
     289{{{
     290server:~# megacli -LDSetProp -Cached -LAll -aAll
     291
     292Set Cache Policy to Cached on Adapter 0, VD 0 (target id: 0) success
     293Set Cache Policy to Cached on Adapter 1, VD 0 (target id: 0) success
     294}}}
     295
     296Enable disks' cache:
     297{{{
     298mancoosi:~# megacli -LDSetProp EnDskCache -LAll -aAll
     299
     300Set Disk Cache Policy to Enabled on Adapter 0, VD 0 (target id: 0) success
     301Set Disk Cache Policy to Enabled on Adapter 1, VD 0 (target id: 0) success
     302}}}
     303
     304About !ReadAhead: this feature will read more stuff and store in the cache, guessing the system ''may'' access it soon.[[BR]]
     305We're going to enable an enhanced version of readahead: the adaptative one.[[BR]]
     306With this option, readahead will only be enabled if the controller receive several access to sequencial sectors. If not, it won't be used to avoid filling cache with randon useless data (in case of randomly accessed sector).
     307
     308{{{
     309server:~# megacli -LDSetProp ADRA -LALL -aALL
     310
     311Set Read Policy to Adaptive ReadAhead on Adapter 0, VD 0 (target id: 0) success
     312Set Read Policy to Adaptive ReadAhead on Adapter 1, VD 0 (target id: 0) success
     313}}}
     314
     315Now we're going to enable write cache. Beware of data loss! Write cache should be enabled ONLY if you have a battery pack on your controller.[[BR]]
     316Let's check if we have one and if it's working fine:
     317{{{
     318server:~# megacli -AdpBbuCmd -GetBbuStatus -a0 | grep -e '^isSOHGood' -e '^Charger Status' -e '^Remaining Capacity'
     319Charger Status: Complete
     320Remaining Capacity: 1445 mAh
     321isSOHGood: Yes
     322
     323server:~# megacli -AdpBbuCmd -GetBbuStatus -a1 | grep -e '^isSOHGood' -e '^Charger Status' -e '^Remaining Capacity'
     324Charger Status: Complete
     325Remaining Capacity: 1353 mAh
     326isSOHGood: Yes
     327}}}
     328
     329Both adapters have one in this server, let's enable write cache:
     330{{{
     331server:~# megacli -LDSetProp WB -LALL -aALL
     332
     333Set Write Policy to WriteBack on Adapter 0, VD 0 (target id: 0) success
     334Set Write Policy to WriteBack on Adapter 1, VD 0 (target id: 0) success
     335}}}
     336
     337But disable it if the battery went broken or discharged:
     338{{{
     339server:~# megacli -LDSetProp NoCachedBadBBU -LALL -aALL
     340
     341Set No Write Cache if bad BBU on Adapter 0, VD 0 (target id: 0) success
     342Set No Write Cache if bad BBU on Adapter 1, VD 0 (target id: 0) success
     343}}}
     344
     345Now we can check if everythin and fine and reboot the server (not sure if it's needed):
     346{{{
     347server:~# megacli -LDInfo -LAll -aAll
     348
     349Adapter 0 -- Virtual Drive Information:
     350Virtual Disk: 0 (Target Id: 0)
     351[...]
     352Default Cache Policy: WriteBack, ReadAdaptive, Cached, No Write Cache if Bad BBU
     353Current Cache Policy: WriteBack, ReadAdaptive, Cached, No Write Cache if Bad BBU
     354Access Policy: Read/Write
     355Disk Cache Policy: Enabled
     356Encryption Type: None
     357
     358Adapter 1 -- Virtual Drive Information:
     359Virtual Disk: 0 (Target Id: 0)
     360[...]
     361Default Cache Policy: WriteBack, ReadAdaptive, Cached, No Write Cache if Bad BBU
     362Current Cache Policy: WriteBack, ReadAdaptive, Cached, No Write Cache if Bad BBU
     363Access Policy: Read/Write
     364Disk Cache Policy: Enabled
     365Encryption Type: None
     366}}}
     367
    284368=== 3.3.3. Periodic checks ===
    285369