pacemaker_corosync
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| pacemaker_corosync [2011/04/27 12:00] – created paulsmith | pacemaker_corosync [2011/04/27 12:35] (current) – paulsmith | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Pacemaker & Corosync ====== | ||
| + | |||
| + | |||
| + | ===== pacemaker + corosync ===== | ||
| + | < | ||
| + | reason: heartbeat is no longer being developed. | ||
| + | |||
| + | Please note, that you have to remove user id 65 (cluster) manually, if you want to use the pacemaker ebuild. Both /etc/passwd and /etc/group | ||
| + | |||
| + | configure corosync.conf | ||
| + | / | ||
| + | chown hacluster: | ||
| + | chown hacluster: | ||
| + | chmod 760 / | ||
| + | / | ||
| + | |||
| + | cibadmin --upgrade --force | ||
| + | cibadmin --cib_query > / | ||
| + | |||
| + | / | ||
| + | |||
| + | mv / | ||
| + | cp / | ||
| + | |||
| + | NOTE: must be run on the console not thru ssh! | ||
| + | |||
| + | / | ||
| + | |||
| + | configure property no-quorum-policy=ignore | ||
| + | |||
| + | node2~: sudo mv ~/authkey / | ||
| + | node2~: sudo chown root:root / | ||
| + | node2~: sudo chmod 400 / | ||
| + | |||
| + | |||
| + | references: | ||
| + | http:// | ||
| + | http:// | ||
| + | http:// | ||
| + | |||
| + | |||
| + | </ | ||
| + | |||
| + | ===== create a tunnel for the multicast is you have issues with smart swiches ===== | ||
| + | < | ||
| + | on server1: | ||
| + | / | ||
| + | /sbin/ip tunnel add netb mode gre remote 192.168.122.XX local 192.168.122.YY ttl 255 | ||
| + | /sbin/ip link set netb up | ||
| + | /sbin/ip addr add 172.16.22.1 dev netb | ||
| + | /sbin/ip route add 172.16.23.0/ | ||
| + | / | ||
| + | /sbin/ip route add 226.94.1.0/ | ||
| + | |||
| + | |||
| + | on server2: | ||
| + | / | ||
| + | /sbin/ip tunnel add neta mode gre remote 192.168.122.YY local 192.168.122.XX ttl 255 | ||
| + | /sbin/ip link set neta up | ||
| + | /sbin/ip addr add 172.16.23.1 dev neta | ||
| + | /sbin/ip route add 172.16.22.0/ | ||
| + | / | ||
| + | /sbin/ip route add 226.94.1.0/ | ||
| + | |||
| + | note: | ||
| + | both corosync.conf files will need there config to reflect the local side of the tunnel bindnetaddr: | ||
| + | |||
| + | </ | ||
| + | |||
| + | ===== change cib.xml and get pacemaker to accept it ===== | ||
| + | < | ||
| + | crm_verify -VVVVV -x newcib.xml | ||
| + | cibadmin -R -o cib -x newcib.xml | ||
| + | cibadmin -Q | less | ||
| + | </ | ||
| + | |||
| + | ===== removal of this version ===== | ||
| + | < | ||
| + | emerge -C cluster-glue resource-agents pacemaker corosync | ||
| + | </ | ||
