After Deprec

openstack_cloud_computing_cookbook

Issue link: https://read.uberflip.com/i/1334488

Contents of this Issue

Navigation

Page 250 of 317

In the Datacenter 240 First node (openstack1) 1. We can validate the configuration using the crm_verify command, as follows: sudo crm_verify -L 2. This will bring back an error mentioning STONITH (Shoot The Other Node In The Head). STONITH is used to maintain quorum when there are at least three nodes configured. It isn't required in a 2-node cluster. As we are only configuring a 2-node cluster, we disable STONITH. sudo crm configure property stonith-enabled=false 3. Verifying the cluster using crm_verify again will now show errors: sudo crm_verify -L 4. Again, as this is only a 2-node cluster, we also disable any notion of quorum, using the following command: sudo crm configure property no-quorum-policy=ignore 5. On the first node, we can now configure our services and set up a floating address that will be shared between the two servers. In the following command, we've chosen 172.16.0.10 as the floating IP address. To do this, we use the crm command again to configure this floating IP address, which we will call FloatingIP. sudo crm configure primitive FloatingIP ocf:heartbeat:IPaddr2 params ip=172.16.0.10 cidr_netmask=32 op monitor interval=30s 6. On viewing the status of our cluster, using crm_mon, we can now see that the FloatingIP address has been assigned to our openstack1 host: sudo crm_mon -1 7. This outputs something similar to the following example: ============ Last updated: Tue Jun 12 21:23:07 2012 Last change: Tue Jun 12 21:06:10 2012 via crmd on openstack1 Stack: openais Current DC: openstack1 - partition with quorum Version: 1.1.6-9971ebba4494012a93c03b40a2c58ec0eb60f50c 2 Nodes configured, 2 expected votes 1 Resources configured. ============ Online: [ openstack1 openstack2 ] FloatingIP (ocf::heartbeat:IPaddr2): Started openstack1 www.it-ebooks.info

Articles in this issue

Links on this page

Archives of this issue

view archives of After Deprec - openstack_cloud_computing_cookbook