Page 1 of 1

How to manage vsan after trial expiration?

Posted: Tue Apr 03, 2018 10:17 pm
by chezro
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.

Re: How to manage vsan after trial expiration?

Posted: Wed Apr 04, 2018 10:35 am
by Oleg(staff)
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.

Re: How to manage vsan after trial expiration?

Posted: Wed Apr 04, 2018 5:38 pm
by chezro
Do any of those scripts have a "get-status" type of command that shows the same info as the management console?

Re: How to manage vsan after trial expiration?

Posted: Thu Apr 05, 2018 7:44 am
by Boris (staff)
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()
}

Re: How to manage vsan after trial expiration?

Posted: Thu Apr 05, 2018 5:43 pm
by chezro
Thank you very much. I appreciate the help.

Re: How to manage vsan after trial expiration?

Posted: Thu Apr 05, 2018 9:35 pm
by Boris (staff)
You are welcome.