PACEMAKER: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
| Zeile 8: | Zeile 8: | ||
copy /etc/corosync/authkey to all servers that will form this cluster (make sure it is owned by root:root and has 400 permissions). | copy /etc/corosync/authkey to all servers that will form this cluster (make sure it is owned by root:root and has 400 permissions). | ||
==[ALL] configure corosync== | ==[ALL] configure corosync== | ||
| − | In /etc/corosync/corosync.conf, replace bindnetaddr (by default it is 127.0.0.1), with the network address of your server, replacing the last number by 0 to get the network address. For example, if your IP is 192.168.1.101, then you would put 192.168.1.0. | + | In /etc/corosync/corosync.conf, replace bindnetaddr (by default it is 127.0.0.1), with the network address |
| + | of your server, replacing the last number by 0 to get the network address. For example, if your IP is | ||
| + | 192.168.1.101, then you would put 192.168.1.0. | ||
| + | |||
==[ALL] start corosync== | ==[ALL] start corosync== | ||
sudo /etc/init.d/corosync start | sudo /etc/init.d/corosync start | ||
Version vom 6. September 2012, 17:37 Uhr
Installation
[ALL] installation pacemaker
sudo apt-get install pacemaker edit /etc/default/corosync and enable corosync (START=yes)
[ONE] generate corosync authkey
sudo corosync-keygen (this can take a while if there's no enough entropy; download ubuntu iso image on the same machine while generating to speed it up or use keyboard to generate entropy) copy /etc/corosync/authkey to all servers that will form this cluster (make sure it is owned by root:root and has 400 permissions).
[ALL] configure corosync
In /etc/corosync/corosync.conf, replace bindnetaddr (by default it is 127.0.0.1), with the network address of your server, replacing the last number by 0 to get the network address. For example, if your IP is 192.168.1.101, then you would put 192.168.1.0.
[ALL] start corosync
sudo /etc/init.d/corosync start
[ALL] Install DRBD and other needed tools
sudo apt-get install linux-headers-server psmisc drbd8-utils
[ALL] Pacemaker soll drbd managen
sudo update-rc.d -f drbd remove
CRM
crm
crm_mon
crmadmin
Kompelette CIB löschen
crmadmin -E