We have finished the script.
In order to manually flush cache of your StarWind device, you should do the following:
- Download FlushCache.ps1 file attached.
- Open file with Wordpad / Notepad ++.
- Change $deviceName="imagefile1" value to correspond the name of your StarWind device.
- Save file.
- Disconnect all clients from StarWind device. The best way to perform this is to disconnect all targets in ISCSI Initiator.
- Open starwindX Powershell.
- Run FlushCache.ps1
If the script was successfully executed you will receive "Start flushing... Completed!" output in Powershell console. At this moment, the flushing process has begun.
The total capacity of your WB cache is L1 8GB + L2 60GB = 68GB which means your underlying physical storage will now perform the 68GB write operation.
If you are aware of your physical storage performance, you can calculate the approximate tame it takes to perform such operation.
For example with the transfer rate of 100 MB/sec it will take approximately 11 minutes to write 68GB of data.
Therefore, we recommend you to wait at least 15-20 minutes until flushing is finished.
After that, you can change your L2 cache mode to wright-through and restart StarWind service.
Please, contact us directly by e-mail:
support@starwind.com in case if you face any difficulties.