StarWindX. Maintenance mode with PS Error

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

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

Post Reply
aolvera
Posts: 1
Joined: Thu Feb 28, 2019 4:16 pm

Thu Feb 28, 2019 4:20 pm

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,
Oleg(staff)
Staff
Posts: 568
Joined: Fri Nov 24, 2017 7:52 am

Wed Mar 06, 2019 12:54 pm

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.
Oleg(staff)
Staff
Posts: 568
Joined: Fri Nov 24, 2017 7:52 am

Wed Apr 24, 2019 9:43 am

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)
Post Reply