Page 1 of 1

Change CACHE mode and size

Posted: Wed Aug 31, 2016 12:02 pm
by cjchilling
Is it possible to change the Cashe mode from Write-Back to Write-Through and change the memory size - it is currently using 5.93GB for a 150GB disk

Re: Change CACHE mode and size

Posted: Thu Sep 01, 2016 12:37 pm
by Michael (staff)
Hello Cjchilling,
Please follow the instructions below to change L1 cache to existing HA device:
- Move all resources from the node where you would like to change L1 cache settings.
- Open *.swdsk of the corresponding device in your Storage pool, make a copy of it and edit it according to KB article: https://knowledgebase.starwindsoftware. ... -l1-cache/
- Follow the instructions in the section "2. Changing cache size".
- Once all *.swdsk files are edited you need to restart StarWind vSAN service and wait while synchronization process will be completed.
- Move all resources to the node where the L1 cache has been configured and repeat above mentioned steps on another StarWind node.

To change L1 cache mode from write-back to write-through, follow the steps below:
- Open .swdsk file of the corresponding device in your Storage pool, make a copy of it and find a line with L1 cache configuration.
It should be a section caching with cache type and size specified:
<caching>
<cache type="write-back" size="128" units="MB" level="1">
<storage_ref id="1"/>
</cache>
</caching>
- Change "write-back" to "write-through" and save the file.
- Once .swdsk file is edited you need to restart StarWind vSAN service and wait while fast synchronization process will be completed.
- Check device properties in StarWind Management console and confirm that L1 cache mode has been changed there.
- Repeat above mentioned steps on another StarWind node.