UnableError: unable to get cib

suresh goud picture suresh goud · May 4, 2016 · Viewed 8.3k times · Source

I'm trying to create cluster for Load balancer to forward my request to two apache instances by using Pace maker package. For that I installed "corosync, pcs, pacemaker" packages. I did the cluster setup for node1 and node2. Now when I'm trying to create cluster resource using the below command

sudo pcs resource create ClusterIP ocf:heartbeat:IPaddr2 ip=<IP_ADDRESS> cidr_netmask=32 op monitor interval=30s

This command is giving below error.

Error: unable to get cib

So is there anything I'm missing here?

Answer

user3070616 picture user3070616 · Jul 27, 2018

You got that answer because your cluster hasn´t been created. You should use the following command to create one, for an example:

pcs cluster setup --start --name my_cluster z1.example.com z2.example.com

Refer to this Website for further information: