Page 1 of 1

StarWindX. Maintenance mode with PS Error

Posted: Thu Feb 28, 2019 4:20 pm
by aolvera
Recently ran into an issue trying to put a single node from my new cluster into maintenance mode via Starwind X module in PowerShell. Error comes back saying that it can not enter Maintenance because there are still client connections. From StarWind Manager it will ask if you want to disconnect all clients connected but I could not find any args to set this with PS. Anyone else run into this issue?

Thanks,

Re: StarWindX. Maintenance mode with PS Error

Posted: Wed Mar 06, 2019 12:54 pm
by Oleg(staff)
The option of putting StarWind devices to maintenance via StarWidX functionality is running without force option like via GUI. This option should be added to the newer builds.

Re: StarWindX. Maintenance mode with PS Error

Posted: Wed Apr 24, 2019 9:43 am
by Oleg(staff)
A quick update to this thread.
You can find force move to Maintenance mode parameter in MaintenanceMode.ps1 script from StarWindX library:
#params: enable, force
$device.SwitchMaintenanceMode($true, $false)

To enable force, change to:
#params: enable, force
$device.SwitchMaintenanceMode($true, $true)