3.9. Removing a Host from a Self-Hosted Engine Environment

If you wish to remove a self-hosted engine host from your environment, you will need to place the host into maintenance, disable the HA services, and remove the self-hosted engine configuration file.

Procedure 3.7. Removing a Host from a Self-Hosted Engine Environment

  1. In the Administration Portal, click the Hosts resource tab. Select the host, and click Maintenance to place the host into maintenance mode.
  2. Log in to the host and stop the HA services. This action stops the ovirt-ha-agent and ovirt-ha-broker services.
    # hosted-engine --set-maintenance --mode=local
  3. Disable the HA services so the services are not started upon a reboot:
    • Red Hat Enterprise Linux 6:
      # chkconfig ovirt-ha-agent off
      # chkconfig ovirt-ha-broker off
    • Red Hat Enterprise Linux 7:
      # systemctl disable ovirt-ha-agent
      # systemctl disable ovirt-ha-broker
  4. Remove the self-hosted engine configuration file:
    • RHEL-based hypervisor:
      # rm /etc/ovirt-hosted-engine/hosted-engine.conf
    • RHEV-H:
      # rm /etc/ovirt-hosted-engine/hosted-engine.conf
      # unpersist /etc/ovirt-hosted-engine/hosted-engine.conf
  5. In the Administration Portal, select the same host, and click Remove to open the Remove Host(s) confirmation window. Click OK.