Created
July 18, 2023 08:10
-
-
Save ikurni/339e962534030b040565d7e22630457f to your computer and use it in GitHub Desktop.
Force Remove RHV Hypervisor Hosts from Database
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Removal from RHV Manager UI is not possible anymore, remove button has been greyed out | |
# SSH to RHV Manager hosts | |
su - postgres | |
psql -d engine | |
SELECT vds_id FROM vds_static WHERE vds_name = 'hostname of the unresponsive hosts'; | |
# Capture the vds_id | |
DELETE FROM vds_dynamic WHERE vds_id = 'vds_id of the unresponsive hosts'; | |
DELETE FROM vds_statistics WHERE vds_id = 'vds_id of the unresponsive hosts'; | |
DELETE FROM vds_static WHERE vds_name = 'hostname of the unresponsive hosts'; | |
# Check again the unresponsive hosts, make sure it has been removed from the hosts lists |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment