Need to apply a patch or Driver update on a production Xenserver that needs a reboot?
Steps
- Using workload balancing appliance; exclude the host for placement
- Run the following script on the XenDesktop controller which shuts down the machines that are on Ready state
[sourcecode language=”powershell” wraplines=”true” collapse=”false”]
#Maintenance XenServer XDXS07
Get-BrokerDesktop -HostingServerName XDXS07 | % {
if($_.SummaryState -eq "Available") {New-BrokerHostingPowerAction -Action ‘Shutdown’ -MachineName $_.MachineName}
}
[/sourcecode] - XenMotion the rest of the machines in disconnected or InUse state to other hosts