After Deprec

openstack_cloud_computing_cookbook

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

Contents of this Issue

Navigation

Page 248 of 317

In the Datacenter 238 4. The corosync service isn't set to start by default. To ensure it starts, edit the /etc/default/corosync service and set START=yes, as follows: sudo sed -i 's/^START=no/START=yes/g' /etc/default/corosync 5. We now need to generate an authorization key to secure the communication between our two hosts: sudo corosync-keygen 6. You will be asked to generate some random entropy by typing at the keyboard. If you are using an SSH session, rather than a console connection, you won't be able to generate the entropy using a keyboard. To do this remotely, launch a new SSH session, and in that new session, while the corosync-keygen command is waiting for entropy, run the following: while /bin/true; do dd if=/dev/urandom of=/tmp/100 bs=1024 count=100000; for i in {1..10}; do cp /tmp/100 /tmp/tmp_$i_$RANDOM; done; rm -f /tmp/tmp_* /tmp/100; done 7. When the corosync-keygen command has finished running and an authkey file has been generated, simply press Ctrl+C to copy this random entropy creation loop. Second node (openstack2) 1. We now need to install Pacemaker and Corosync on our second host, openstack2. We do this as follows: sudo apt-get update sudo apt-get install pacemaker corosync 2. We also ensure that our /etc/hosts file has the same entries for our other host, as before: 172.16.0.1 openstack1.cloud.test openstack1 172.16.0.2 openstack2.cloud.test openstack2 3. The corosync service isn't set to start by default. To ensure that it starts, edit the / etc/default/corosync service and set START=yes: sudo sed -i 's/^START=no/START=yes/g' /etc/default/corosync 4. We also ensure that our /etc/hosts file has the same entries for our other host, as before: 172.16.0.1 openstack1.cloud.test openstack1 172.16.0.2 openstack2.cloud.test openstack2 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