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?

Alex
  • 11
  • 1
  • 2

1 Answers1

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
c4f4t0r
  • 5,301
  • 3
  • 31
  • 42
  • After that may I stop and delete like this: #systemctl stop pacemaker #systemctl stop corosync ; and #yum remove pacemaker corosync ? – Alex Mar 14 '19 at 06:37
  • @alex use pcs cluster disable --all and pcs cluster stop --all as suggested in my answer – c4f4t0r Mar 14 '19 at 06: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 '19 at 07:12
  • @alex could I ask you why do you need to disable the cluster and install keepalived? – c4f4t0r Mar 14 '19 at 07:28
  • Cause keepalived is easier to use and all in our command know how do this, but nobody knows pcs. – Alex Mar 14 '19 at 07:40
  • @alex keepalived is not real cluster solution, easier can become fatal, anyway, all pcs commands are in redhat documentation – c4f4t0r Mar 14 '19 at 07:50