Deleting Cluster Resources

We can delete the configured Cluster Resources with “crm configure delete” command following by aResource Name we want to delete (example:)

crm configure delete resourcename

We must always stop the Cluster Resource prior to deleting it!!

We can stop the Resource by running “crm resource stop” command following by a Resource Name we want to stop.

We can check the Linux Cluster configuration by running “crm configure show” command and see, if the Cluster Resource was successfully removed from Cluster Configuration.

Deleting Apache (httpd) Resource

Let’s stop and delete our Apache Cluster Resource configured in the steps above:

[root@node1 ~]# crm resource stop Apache

[root@node1 ~]# crm configure delete Apache

Check Cluster Configuration with:

[root@node1 ~]# crm configure show

node node1

node node2

primitive CLUS TERIP ocf:heartbeat:IPaddr2

params ip="192.168.61.150" cidr_netmask="24"

op monitor interval="30s"

property $id="cib-bootstrap-options"

dc-version="1.1.9-2.6-2db99f1"

cluster-infrastructure="classic openais (with plugin)"

expected-quorum-votes="2"

stonith-enabled="false"

last-lrm-refresh="1381240623"

… to confirm Apache resource was deleted from Cluster Configuration.

Deleting IP Address Resource

Next let’s stop and delete ClusterIP Resource:

[root@node1 ~]# crm resource stop ClusterIP

[root@node1 ~]# crm configure delete ClusterIP

Check Cluster Configuration with:

[root@node1 ~]# crm configure show

node node1

node node2

property $id="cib-bootstrap-options"

dc-version="1.1.9-2.6-2db99f1"

cluster-infrastructure="classic openais (with plugin)"

expected-quorum-votes="2"

stonith-enabled="false"

last-lrm-refresh="1381240623"

… to confirm the ClusterIP Resource was deleted from our Cluster Configuration.

results matching ""

    No results matching ""