PowerShell Specify L2 Cache Setting

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

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

Post Reply
zxu
Posts: 8
Joined: Fri Aug 18, 2017 1:47 pm

Fri Aug 18, 2017 1:54 pm

Is there a way to specify L2 cache setting/path when creating a device (either local or HA, disk in WT mode with L2 or LSFS)? Additionally, how to turn on dedupe on/off when creating HA-LSFS? There seems to be some disparity between what can be done via PowerShell vs GUI.
Sergey (staff)
Staff
Posts: 86
Joined: Mon Jul 17, 2017 4:12 pm

Fri Aug 18, 2017 4:17 pm

Hello, zxu, and thank you for your question. You can find more info on how to manage L2 flash cache here in this article:
https://knowledgebase.starwindsoftware. ... dance/661/
And, regarding your question about deduplication on LSFS device. Please find a folder with PowerShell samples scripts. By default it is located here:
C:\Program Files\StarWind Software\StarWind\StarWindX\Samples\powershell\
There is a script called CreateHA_LSFS.ps1 You can enable deduplication, simply adding to the script this command:
Add-DDDevice -DeduplicationEnabled $true
Feel free to edit the sample script according to your needs.
zxu
Posts: 8
Joined: Fri Aug 18, 2017 1:47 pm

Fri Aug 18, 2017 4:24 pm

Thanks! Can you use Add-DDDevice to add HA LSFS? The Create-HALSFS is using Add-HADevice. I don't see DeduplicationEnabled an option in Add-HADevice. Is this an undocumented option in Add-HADevice?
Sergey (staff)
Staff
Posts: 86
Joined: Mon Jul 17, 2017 4:12 pm

Mon Aug 21, 2017 8:55 am

Please take a look at CreateDD.ps1 script. I hope this is what you need. Just add "-DeduplicationEnabled $true" option.
P.S. We will release new StarWind version soon, with updated and newly added samples.
Post Reply