Maintenance tip for XenServer Hosting XenDesktop

Need to apply a patch or Driver update on a production Xenserver that needs a reboot?

Steps

  1. Using workload balancing appliance; exclude the host for placement
  2. Run the following script on the XenDesktop controller which shuts down the machines that are on Ready state
    #Maintenance XenServer XDXS07
    Get-BrokerDesktop -HostingServerName XDXS07 | % {
    if($_.SummaryState -eq "Available") {New-BrokerHostingPowerAction -Action 'Shutdown' -MachineName $_.MachineName}
    }
    
  3. XenMotion the rest of the machines in disconnected or InUse state to other hosts

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s