Software-based VM-centric and flash-friendly VM storage + free version
Moderators: anton (staff), art (staff), Max (staff), Anatoly (staff)
-
chezro
- Posts: 8
- Joined: Tue Apr 03, 2018 10:12 pm
Tue Apr 03, 2018 10:17 pm
I recently created a 3 node hyperv 2016 core cluster and added a starwind vsan to it.
My question is:
When the trial period is over, how will I manage the lun? Will it need to be updated? Is it set it and forget it?
I understand there are powershell scripts given with the software but is that the only way to view the health at a glance? I'd like to be able to monitor the vsan and while Starwind Manager seems to be the answer I'd like to be able to see if there is something wrong, like a failed replication or a connection issue.
Is there a quick way to check on the vsan through powershell that would allow an admin an 'at a glance' view of the vsan cluster?
Thank you.
-
Oleg(staff)
- Staff
- Posts: 568
- Joined: Fri Nov 24, 2017 7:52 am
Wed Apr 04, 2018 10:35 am
After finishing the trial period you can manage StarWind VSAN with the help of the scripts from StarWindX library: C:\Program Files\StarWind Software\StarWind\StarWindX\Samples\powershell
You can modify scripts according to your needs.
-
chezro
- Posts: 8
- Joined: Tue Apr 03, 2018 10:12 pm
Wed Apr 04, 2018 5:38 pm
Do any of those scripts have a "get-status" type of command that shows the same info as the management console?
-
Boris (staff)
- Staff
- Posts: 805
- Joined: Fri Jul 28, 2017 8:18 am
Thu Apr 05, 2018 7:44 am
This script is a modification of the SyncHADevice.ps1 script sample available in 11818. Feel free to adjust any script samples according to your needs.
Code: Select all
Import-Module StarWindX
try
{
$server = New-SWServer 127.0.0.1 3261 root starwind
$server.Connect()
$devices = $server.Devices
foreach($device in $devices){
if ($device.Name -like "HAImage*"){
if($device.SyncStatus -ne [SwHaSyncStatus]::SW_HA_SYNC_STATUS_SYNC){
Write-Host "Device $($device.name) is not synchronized" -foreground Red
} else {
Write-Host "Device $($device.name) is synchronized" -foreground Green
}
}
}
}
catch
{
Write-Host $_ -foreground red
}
finally
{
$server.Disconnect()
}