I think I have a working method, though not in the conditions first explained. Though I would love to have feedback on it's sanity.

The ultimate goal is to migrate the resource (VM) to a different pacemaker cluster. Setting it to be unmanaged, migrating the VM off, setting the resource to disabled, and managing the resource again marks it as stopped, then it can be deleted.

====
[root@an-a01n01 ~]# pcs resource unmanage srv01-cs8
# Migrate the server to another pacemaker cluster here
[root@an-a01n01 ~]# pcs resource disable srv01-cs8
Warning: 'srv01-cs8' is unmanaged
[root@an-a01n01 ~]# pcs resource manage srv01-cs8
[root@an-a01n01 ~]# pcs resource delete srv01-cs8
Deleting Resource - srv01-cs8
====

Though going back to the original question, deleting the server from pacemaker while the VM is left running, is still something I am quite curious about.

Madi

On 2022-01-29 13:27, Strahil Nikolov wrote:
I know...
 and the editor stuff can be bypassed, if the approach works.

Best Regards,
Strahil Nikolov

On Sat, Jan 29, 2022 at 15:43, Digimer
On 2022-01-29 03:16, Strahil Nikolov wrote:
I think there is pcs cluster edit --scope=resources (based on memory).
Can you try to delete it from there ?

Best Regards,
Strahil Nikolov

Thanks, but no that doesn't seem to work. 'pcs cluster edit' wants to open an editor, and I'm trying to find a way to make this change with a program (once I sort out the manual process). So an option that requires user input won't work in my case regardless. Thank you just the same though!

-- 
Digimer
Papers and Projects: https://alteeve.com/w/
"I am, somehow, less interested in the weight and convolutions of Einstein’s brain than in the near certainty that people of equal talent have lived and died in cotton fields and sweatshops." - Stephen Jay Gould


-- 
Digimer
Papers and Projects: https://alteeve.com/w/
"I am, somehow, less interested in the weight and convolutions of Einstein’s brain than in the near certainty that people of equal talent have lived and died in cotton fields and sweatshops." - Stephen Jay Gould

_______________________________________________
Manage your subscription:
https://lists.clusterlabs.org/mailman/listinfo/users

ClusterLabs home: https://www.clusterlabs.org/

Reply via email to