Difference between revisions of "Agile testbed"

From PDP/Grid Wiki
Jump to navigationJump to search
Line 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.
  
{| class="wikitable"
+
=== Clustered LVM setup ===
!  || Fibre Channel || iSCSI
+
 
|-
+
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.
| blade13
+
 
|style="background-color: #cfc;"| yes
+
==== installation ====
|style="background-color: #fcc;"| no
+
 
|-
+
Install the required packages:
| blade14
+
 
|style="background-color: #cfc;"| yes
+
apt-get install openais clvmd
|style="background-color: #fcc;"| no
+
 
|-
+
Set up clustered locking in lvm:
| melkbus
+
 
|style="background-color: #cfc;"| yes
+
sed -i 's/^    locking_type = 1$/    locking_type = 3/' /etc/lvm/lvm.conf
|style="background-color: #fcc;"| no
+
 
|-
+
Configure the cluster in /etc/cluster/cluster.conf. All nodes must share the same identical file. This file is currently maintained by saltstack.
| arrone
+
 
|style="background-color: #fcc;"| no
+
Start corosync:
|style="background-color: #cfc;"| yes
+
 
|-
+
aisexec
| aulnes
+
 
|style="background-color: #fcc;"| no
+
Start the cluster lvm daemon:
|style="background-color: #cfc;"| yes
+
 
|-
+
clvmd -I openais
| toom
+
 
|style="background-color: #fcc;"| no
+
Test if everything works by running
|style="background-color: #cfc;"| yes
+
corosync-quorumtool -s
|-
+
and if the cluster is quorate:
| span
+
vgdisplay
|style="background-color: #fcc;"| no
 
|style="background-color: #cfc;"| yes
 
|}
 
  
 
== Services ==
 
== Services ==

Revision as of 15:11, 8 January 2015