Difference between revisions of "Agile testbed"
From PDP/Grid Wiki
Jump to navigationJump to searchLine 337: | Line 337: | ||
The older machine with 2TB of disk storage called 'put' is being decommissioned. Remaining VM images will be migrated away. | The older machine with 2TB of disk storage called 'put' is being decommissioned. Remaining VM images will be migrated away. | ||
− | + | === Clustered LVM setup === | |
− | + | ||
− | + | 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. | |
− | + | ||
− | + | ==== installation ==== | |
− | + | ||
− | + | Install the required packages: | |
− | + | ||
− | + | apt-get install openais clvmd | |
− | + | ||
− | + | Set up clustered locking in lvm: | |
− | + | ||
− | + | sed -i 's/^ locking_type = 1$/ locking_type = 3/' /etc/lvm/lvm.conf | |
− | + | ||
− | + | Configure the cluster in /etc/cluster/cluster.conf. All nodes must share the same identical file. This file is currently maintained by saltstack. | |
− | + | ||
− | + | Start corosync: | |
− | + | ||
− | + | aisexec | |
− | + | ||
− | + | Start the cluster lvm daemon: | |
− | + | ||
− | + | clvmd -I openais | |
− | + | ||
− | + | Test if everything works by running | |
− | + | corosync-quorumtool -s | |
− | + | and if the cluster is quorate: | |
− | + | vgdisplay | |
− | |||
− | |||
− | |||
== Services == | == Services == |