[SOLVED] Remove HA ressource that is not available anymore

jsterr

Famous Member
Jul 24, 2020
876
257
108
34
Hello :)

How can I delete this ressource. its not available anymore and I cant delete it from HA-Manager.

1637191129426.png

1637191193327.png
Code:
root@pve2:/etc/pve/ha# cat manager_status
{"master_node":"pve1","node_status":{"pve3":"online","pve1":"online","pve2":"online"},"service_status":{"vm:100":{"state":"started","running":1,"uid":"f1vWduldOqOpi1usaBq/Ow","node":"pve1"}},"timestamp":1637056494}


I tried recreating it witih ID 100 but I cant delete it anyway. But cant put VM100 in to HA again:

1637191332690.png
 
Last edited:
Code:
mv /etc/pve/ha/manager_status /etc/pve/ha/manager_status.back
mv /etc/pve/ha/resources.cfg /etc/pve/ha/resources.cfg.back

did it! But be careful this might reset complete HA configuration. but was able to create VM100 again and put it into HA again. Im sure there is a way to do it better but this is a fresh install no problem doing it that way.
 
Last edited:
Code:
mv /etc/pve/ha/manager_status /etc/pve/ha/manager_status.back
mv /etc/pve/ha/resources.cfg /etc/pve/ha/resources.cfg.back

did it! But be careful this might reset complete HA configuration. but was able to create VM100 again and put it into HA again. Im sure there is a way to do it better but this is a fresh install no problem doing it that way.
Thank you for this excellent solution. I was quite stuck. Documenting these commands now.