This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| centos_6.5_pacemaker [2015/03/03 15:01] – external edit 127.0.0.1 | centos_6.5_pacemaker [2015/03/05 09:01] (current) – [Random number generator] herwarth | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ======Pacemaker on CentOS > | ||
| =====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===== | ||
| < | < | ||
| -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 | ||
| </ | </ | ||
| - | ====random | + | ====Random |
| - | | + | <code - / |
| - | + | EXTRAOPTIONS=" | |
| - | | + | </ |
| chkconfig rngd on | chkconfig rngd on | ||
| service rngd start | service rngd start | ||
| - | =====Configure empty cluster===== | + | ====Empty cluster===== |
| - | ====legacy | + | ===Legacy |
| do the following on the first node: | do the following on the first node: | ||
| < | < | ||
| Line 47: | Line 48: | ||
| corosync-objctl | egrep ^totem | corosync-objctl | egrep ^totem | ||
| - | ====pacemaker | + | ===Pacemaker |
| 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 / | edit / | ||
| - | vi / | + | <code - / |
| - | . | + | . |
| - | . | + | . |
| - | # | + | # |
| - | volume_list = [ " | + | volume_list = [ " |
| - | . | + | . |
| - | . | + | . |
| + | </ | ||
| < | < | ||
| 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> | ||