How to Remove a XenServer Slave when it No Longer Exists in the Pool

How to Remove a XenServer Slave when it No Longer Exists in the Pool

book

Article ID: CTX126382

calendar_today

Updated On:

Description

XenCenter shows the red icon of the XenServer Slave that no longer exists in the pool. You want to eliminate that XenServer Slave but you receive the following error message when you issue the command from XenServer Master xe host-forget of that Slave.

"This host cannot be forgotten because there are some user VMs still running host: 58ee6a78-c20c-4069-b07d-0b092e15fc1c (XS2)."

The XenServer Master’s database still has the list of the VM from Slave, but in the reality, the Slave no longer exists. You need to shutdown the VM first to be able to forget the Slave from the pool.

User-added image

Resolution

Complete the following procedure:

  1. Run the following command:
    xe host-list

    User-added image

  2. The slave that you want to eliminate is XS2 with UUID 58ee6a78-c20c-4069-b07d-0b092e15fc1c. You want to find the VM still running on the Slave:
    xe vm-list resident-on=58ee6a78-c20c-4069-b07d-0b092e15fc1c

    User-added image

  3. The two VM that you need to shut down are Storage Link and NetScaler Virtual Appliance. Run the following commands:
    xe vm-reset-powerstate uuid=603432e2-c85c-42fa-7bcd-430ddef6688a --force"
    xe vm-reset-powerstate uuid=062a61b6-0ee3-9383-adf9-e2a506e5e3be --force"

  4. It is now safe to forget the Slave. Run the following command:
    xe host-forget uuid=58ee6a78-c20c-4069-b07d-0b092e15fc1c

  5. Go to XenCenter, the slave XS2 is not present now.

     User-added image

Issue/Introduction

XenCenter shows the red icon of the XenServer Slave that no longer exists in the pool. You want to eliminate that XenServer Slave but you receive the error message when you issue the command from XenServer Master xe host-forget of that Slave.