| 161 | |
| 162 | Controller policies (write cache, disk cache, battery), only interesting lines kept: |
| 163 | {{{ |
| 164 | root@server:~# hpacucli ctrl slot=0 show |
| 165 | |
| 166 | Smart Array P420i in Slot 0 (Embedded) |
| 167 | Serial Number: *SERIAL* |
| 168 | Controller Status: OK |
| 169 | Firmware Version: 3.54 |
| 170 | Cache Board Present: True |
| 171 | Cache Status: OK |
| 172 | Cache Ratio: 25% Read / 75% Write |
| 173 | Drive Write Cache: Disabled |
| 174 | Total Cache Size: 512 MB |
| 175 | No-Battery Write Cache: Disabled |
| 176 | Cache Backup Power Source: Capacitors |
| 177 | Battery/Capacitor Count: 1 |
| 178 | Battery/Capacitor Status: OK |
| 179 | }}} |
| 180 | |
| 181 | Cache is ok, Battery is too. Write cache disabled if battery back isn't enabled, that's ok. |
| 182 | |
| 183 | Enable/Disable write cache for all arrays: |
| 184 | |
| 185 | Check current state: |
| 186 | {{{ |
| 187 | root@server:~# hpacucli ctrl slot=0 ld all show detail |
| 188 | |
| 189 | Smart Array P420i in Slot 0 (Embedded) |
| 190 | |
| 191 | array A |
| 192 | |
| 193 | Logical Drive: 1 |
| 194 | Size: 136.7 GB |
| 195 | Fault Tolerance: RAID 1 |
| 196 | Status: OK |
| 197 | Caching: Disabled |
| 198 | |
| 199 | }}} |
| 200 | |
| 201 | Enable caching: |
| 202 | {{{ |
| 203 | root@server:~# hpacucli ctrl slot=0 ld all modify arrayaccelerator=enable |
| 204 | }}} |
| 205 | |
| 206 | Enable disks' write cache: |
| 207 | {{{ |
| 208 | root@server:~# hpacucli ctrl slot=0 modify dwc=enable |
| 209 | |
| 210 | Warning: Without the proper safety precautions, use of write cache on physical |
| 211 | drives could cause data loss in the event of power failure. To ensure |
| 212 | data is properly protected, use redundant power supplies and |
| 213 | Uninterruptible Power Supplies. Also, if you have multiple storage |
| 214 | enclosures, all data should be mirrored across them. Use of this |
| 215 | feature is not recommended unless these precautions are followed. |
| 216 | Continue? (y/n) y |
| 217 | }}} |
| 218 | |
| 219 | Warning is self-explaining I guess. Disks's cache aren't protected by controller's battery. It's up to you but I wouldn't enable such features if your power supply isn't protected. |