Difference between revisions of "Agile testbed"
From PDP/Grid Wiki
Jump to navigationJump to searchLine 340: | Line 340: | ||
Red Hat's CLVM suite is a heavyweight high-availability system based on CMAN and depends on fencing of failing nodes. I've never been happy with it, especially since we lack a proper out-of-band way to do fencing from one node to another. After a couple of gruesome evenings kicking this around I found a better solution in [http://pixelchaos.net/2009/04/23/openais-an-alternative-to-clvm-with-cman/ openais]. This is based on building a quorum of nodes in order to do locking; the only processes required are corosync and clvmd. | Red Hat's CLVM suite is a heavyweight high-availability system based on CMAN and depends on fencing of failing nodes. I've never been happy with it, especially since we lack a proper out-of-band way to do fencing from one node to another. After a couple of gruesome evenings kicking this around I found a better solution in [http://pixelchaos.net/2009/04/23/openais-an-alternative-to-clvm-with-cman/ openais]. This is based on building a quorum of nodes in order to do locking; the only processes required are corosync and clvmd. | ||
+ | |||
+ | '''Do not use the service scripts in /etc/init.d/corosync or /etc/init.d/clvmd!''' | ||
Currently there are two pools on the Compellent formatted as VGs with clustered setup. When adding more pools in the future don't forget to set the clustered flag there as well. | Currently there are two pools on the Compellent formatted as VGs with clustered setup. When adding more pools in the future don't forget to set the clustered flag there as well. | ||
Line 354: | Line 356: | ||
Configure the cluster in /etc/cluster/cluster.conf. All nodes must share the same identical file. This file is currently maintained by saltstack. | Configure the cluster in /etc/cluster/cluster.conf. All nodes must share the same identical file. This file is currently maintained by saltstack. | ||
+ | |||
+ | ==== Running ==== | ||
Start corosync: | Start corosync: | ||
Line 367: | Line 371: | ||
and if the cluster is quorate: | and if the cluster is quorate: | ||
vgdisplay | vgdisplay | ||
+ | |||
+ | Restarting of the service means killing the corosync and clvmd processes and starting them with the above procedure. The aisexec script actually just starts corosync with an extra environment variable | ||
+ | |||
+ | export COROSYNC_DEFAULT_CONFIG_IFACE="openaisserviceenableexperimental:corosync_parser" | ||
+ | |||
+ | So this could probably be put in /etc/default/corosync as well (future work...) | ||
== Services == | == Services == |