1

I've got Pacemaker in conjunction with Corosync on two nodes and two float ip. Now I need to delete this construction.

What is the best way to stop Pacemaker and Corosync and delete them?

2
  • 2
    you need to specify if you are using pcs or crm shell and your distribution.
    – c4f4t0r
    Mar 13, 2019 at 13:58
  • Thank you for paying attention to my question!) pcs is used
    – Alex
    Mar 14, 2019 at 4:54

1 Answer 1

1

For more information about pcs you can follow the Redhat documentation, anyway, you can use the following to achieve your task:

pcs resource show
pcs resource delete resource_id

After you deleted all your defined resources, Now you can disable and stop the cluster with:

pcs cluster disable --all
pcs cluster stop --all
6
  • After that may I stop and delete like this: #systemctl stop pacemaker #systemctl stop corosync ; and #yum remove pacemaker corosync ?
    – Alex
    Mar 14, 2019 at 6:37
  • @alex use pcs cluster disable --all and pcs cluster stop --all as suggested in my answer
    – c4f4t0r
    Mar 14, 2019 at 6:58
  • Thank you for your answer, but my next step will be installing keepalived, so is it correct to stop and remove pacemaker and corosync after #pcs cluster disable --all and #pcs cluster stop --all?
    – Alex
    Mar 14, 2019 at 7:12
  • @alex could I ask you why do you need to disable the cluster and install keepalived?
    – c4f4t0r
    Mar 14, 2019 at 7:28
  • Cause keepalived is easier to use and all in our command know how do this, but nobody knows pcs.
    – Alex
    Mar 14, 2019 at 7:40

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .