Change CACHE mode and size

Software-based VM-centric and flash-friendly VM storage + free version

Moderators: anton (staff), art (staff), Anatoly (staff), Max (staff)

Post Reply
cjchilling
Posts: 6
Joined: Mon Aug 29, 2016 2:03 pm
Contact:

Wed Aug 31, 2016 12:02 pm

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
Christopher Hilling
SpaDental group | https://www.spadental.co.uk/
Michael (staff)
Staff
Posts: 319
Joined: Thu Jul 21, 2016 10:16 am

Thu Sep 01, 2016 12:37 pm

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.
Post Reply