User Tools

Site Tools


centos_6.5_pacemaker

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
centos_6.5_pacemaker [2015/03/03 15:01] – external edit 127.0.0.1centos_6.5_pacemaker [2015/03/05 09:01] (current) – [Random number generator] herwarth
Line 1: Line 1:
 +======Pacemaker on CentOS >6.5======
 =====Installation===== =====Installation=====
-====packages====+====Packages====
   yum install pacemaker pcs ccs resource-agents cman rng-tools   yum install pacemaker pcs ccs resource-agents cman rng-tools
  
-====iptables=====+=====Configuration===== 
 +====Iptables=====
 <code> <code>
 -A INPUT -m state --state NEW -m udp -p udp --dport 5405 -j ACCEPT -A INPUT -m state --state NEW -m udp -p udp --dport 5405 -j ACCEPT
 </code> </code>
  
-====random number generator==== +====Random number generator==== 
-  vi /etc/sysconfig/rngd +<code - /etc/sysconfig/rngd> 
- +EXTRAOPTIONS="-r /dev/urandom" 
-  EXTRAOPTIONS="-r /dev/urandom" +</code>
   chkconfig rngd on   chkconfig rngd on
   service rngd start   service rngd start
  
-=====Configure empty cluster===== +====Empty cluster===== 
-====legacy CMAN stuff====+===Legacy CMAN stuff===
 do the following on the first node: do the following on the first node:
 <code> <code>
Line 47: Line 48:
   corosync-objctl | egrep ^totem   corosync-objctl | egrep ^totem
  
-====pacemaker stuff====+===Pacemaker stuff===
 do the following on all nodes: do the following on all nodes:
   service pacemaker start   service pacemaker start
Line 71: Line 72:
 ====LVM==== ====LVM====
 edit /etc/lvm/lvm.conf and define which volume groups to enable at startup. exclude cluster VGs. in this example the cluster VG is data. edit /etc/lvm/lvm.conf and define which volume groups to enable at startup. exclude cluster VGs. in this example the cluster VG is data.
-  vi /etc/lvm/lvm.conf +<code - /etc/lvm/lvm.conf> 
-  +
-  .   +.   
-  #volume_list = [ "vg1", "vg2/lvol1", "@tag1", "@*"+#volume_list = [ "vg1", "vg2/lvol1", "@tag1", "@*"
-  volume_list = [ "system"+volume_list = [ "system"
-  +
-  .+. 
 +</code>
 <code> <code>
 pcs resource create lvm_data LVM volgrpname=data exclusive=true pcs resource create lvm_data LVM volgrpname=data exclusive=true
Line 105: Line 107:
 when done with work on node2 and node2 is available again we remove the fixation: when done with work on node2 and node2 is available again we remove the fixation:
   pcs constraint remove location-postfix_group-node1.mngt.bh.helux.nl-INFINITY   pcs constraint remove location-postfix_group-node1.mngt.bh.helux.nl-INFINITY
 +
 +
 +{{tag>centos}}
centos_6.5_pacemaker.1425394911.txt.gz · Last modified: (external edit)