このページの2つのバージョン間の差分を表示します。
— | 01_linux:01_net:09_heartbeat [2013/02/19 07:51] (現在) – 作成 matsui | ||
---|---|---|---|
行 1: | 行 1: | ||
+ | ====== 09 Heartbeat ====== | ||
+ | ===== インストール ===== | ||
+ | < | ||
+ | # yum install heartbeat | ||
+ | </ | ||
+ | |||
+ | ===== ノード1系(test1) ===== | ||
+ | |||
+ | ==== / | ||
+ | |||
+ | <color blue> | ||
+ | |||
+ | <code console> | ||
+ | logfile / | ||
+ | logfacility local0 | ||
+ | keepalive 2 | ||
+ | deadtime 30 | ||
+ | initdead 120 | ||
+ | udpport 694 | ||
+ | ucast eth1 192.168.10.2 | ||
+ | auto_failback off | ||
+ | node test1 | ||
+ | node test2 | ||
+ | </ | ||
+ | |||
+ | |||
+ | ==== / | ||
+ | |||
+ | <color blue> | ||
+ | |||
+ | < | ||
+ | test1 IPaddr:: | ||
+ | </ | ||
+ | |||
+ | ==== / | ||
+ | <code console> | ||
+ | # vi / | ||
+ | auth 2 | ||
+ | 2 sha1 cluster-1 | ||
+ | |||
+ | # chmod 600 / | ||
+ | </ | ||
+ | |||
+ | |||
+ | ==== /etc/hosts ==== | ||
+ | 以下追加 | ||
+ | < | ||
+ | 192.168.10.1 | ||
+ | 192.168.10.2 | ||
+ | </ | ||
+ | |||
+ | |||
+ | ===== ノード2系(test2) ===== | ||
+ | |||
+ | ==== / | ||
+ | |||
+ | <color blue> | ||
+ | |||
+ | <code console> | ||
+ | logfile / | ||
+ | logfacility local0 | ||
+ | keepalive 2 | ||
+ | deadtime 30 | ||
+ | initdead 120 | ||
+ | udpport 694 | ||
+ | ucast eth1 192.168.10.1 | ||
+ | auto_failback off | ||
+ | node test1 | ||
+ | node test2 | ||
+ | </ | ||
+ | |||
+ | |||
+ | ==== / | ||
+ | |||
+ | <color blue> | ||
+ | |||
+ | < | ||
+ | test2 IPaddr:: | ||
+ | </ | ||
+ | |||
+ | ==== / | ||
+ | <code console> | ||
+ | # vi / | ||
+ | auth 2 | ||
+ | 2 sha1 cluster-1 | ||
+ | |||
+ | # chmod 600 / | ||
+ | </ | ||
+ | |||
+ | |||
+ | ==== /etc/hosts ==== | ||
+ | 以下追加 | ||
+ | < | ||
+ | 192.168.10.1 | ||
+ | 192.168.10.2 | ||
+ | </ |