Using Smart Storage Admin, I am trying to enable DWC.
Using this following command, I confirm slot0 is the only option and it is healthy.
sudo /opt/smartstorageadmin/ssacli/bin/ssacli ctrl all show status
HPE Smart Array P816i-a SR Gen10 in Slot 0 (Embedded)
Controller Status: OK
Cache Status: OK
Battery/Capacitor Status: OK
Then I get the full status, however for this example I will grep only lines referencing cache.
sudo /opt/smartstorageadmin/ssacli/bin/ssacli ctrl slot=0 show | grep -i cache
Write Cache Bypass Threshold Size: 1040 KiB
Wait for Cache Room: Disabled
Cache Board Present: True
Cache Status: OK
Cache Ratio: 10% Read / 90% Write
Configured Drive Write Cache Policy: Default
Unconfigured Drive Write Cache Policy: Default
Total Cache Size: 4.0
Total Cache Memory Available: 3.8
No-Battery Write Cache: Disabled
Cache Backup Power Source: Batteries
Now I notice that it says Configured and Unconfigured Drive Write Cache Policy are both Default.
So I try to enable dwc, but it gets mad about a 'usage' parameter.
sudo /opt/smartstorageadmin/ssacli/bin/ssacli ctrl slot=0 modify dwc=enable
Error: Parameter "usage" must be specified.
I know that, based on the help docs, usage can be unconfigured, configured, or hbc.
<target> modify [drivewritecache=enable|disable|default|?]
[usage=configured|unconfigured|hba] [forced]
Enables or disables the physical drive write cache policy for the
controller.The target can be any valid controller target that supports drive
write cache policy.
Online I have found a number of PDFs that mention using wildcards when trying to enable drive write cache and they referenced usage as if it is a target state to be used for only enabling it on drives that match this state. Based on this logic, it seems I would want to use 'usage=unconfigured' to enable it on this drive. Am I wrong in my logic?