木下ã•ã‚“
ã“ã‚“ã«ã¡ã¯ã€å±±å†…ã§ã™ã€‚
pacemaker.combined.confã¯è‡ªå‹•èµ·å‹•ã«å¯¾å¿œã—ã¦ä»¥ä¸‹ã®å¤‰æ›´ãŒPM1.1.12以é™ã«å…¥ã£ã¦ã„ã¾ã™ã€‚
https://github.com/ClusterLabs/pacemaker/blob/master/mcp/pacemaker.combined.upstart.in
ã“ã¡ã‚‰ã‚’å‚考ã«ä¿®æ£ã™ã‚Œã°èµ·å‹•å‡ºæ¥ã‚‹ã¨æ€ã„ã¾ã™ã€‚
以上ã§ã™ã€‚
----- Original Message -----
> From: 木下 æ£æ˜ <kinoshita@tdc.co.jp>
> To: "linux-ha-japan@lists.sourceforge.jp" <linux-ha-japan@lists.sourceforge.jp>
> Cc:
> Date: 2015/8/21, Fri 17:55
> Subject: [Linux-ha-jp] CentOS6.5ã§pacemaker.combinedã§è‡ªå‹•èµ·å‹•ã™ã‚‹æ–¹æ³•ã«ã¤ã„ã¦
>
> ã¯ã˜ã‚ã¾ã—ã¦ã€‚
> TDCソフトã®æœ¨ä¸‹ã¨ç”³ã—ã¾ã™ã€‚
>
> ç¾åœ¨ã€CentOS6.5ã§pacemaker+corosync+drbd+mysqlã§ç’°å¢ƒæ§‹ç¯‰ã‚’ã—ã¦ãŠã‚Šã¾ã™ã€‚
>
> Linux-HAã‹ã‚‰ãƒªãƒã‚¸ãƒˆãƒª(pacemaker-repo-1.1.12-1.1.el6.x86_64.rpm)をインストールã—ã¦ã€
> yum install pacemaker-allã§ã‚¤ãƒ³ã‚¹ãƒˆãƒ¼ãƒ«ã—ã¦ã„ã¾ã™ã€‚
>
> å„ãƒãƒ¼ã‚¸ãƒ§ãƒ³ãŒã€ä»¥ä¸‹ã«ãªã£ã¦ãŠã‚Šã¾ã™ã€‚
> CentOS6.5(x86_64)
> pacemaker(1.1.12)
> corosync(2.3.4-1)
> drbd(8.4.3-1)
>
> 2ノードã§active/sandbyã«ã—ã¦ã„ã¾ã™ã€‚
>
> linux-ha.osdn.jp/wp/wp-content/uploads/OSC-Tokyo2014Fall.pdf
> ã‚’å‚考ã«æ§‹ç¯‰ã—ã¾ã—ãŸãŒã€OS起動時ã®ã‚µãƒ¼ãƒ“ス自動起動ã«ã¤ã„ã¦è³ªå•ãŒã”ã–ã„ã¾ã™ã€‚
>
> CentOS6.5ã§æ§‹ç¯‰ã™ã‚‹ã«ã‚ãŸã‚Šã€èµ·å‹•ã‚¹ã‚¯ãƒªãƒ—トã¯Upstartå½¢å¼ã§è¨å®šã—ã¦ã€
> 手動ã§initctl start pacemaker.combinedをコマンド実行ã™ã‚‹ã¨æ£ã—ãèµ·å‹•ã—ã¾ã™ãŒã€
> OSã‚’å†èµ·å‹•ã™ã‚‹ã¨è‡ªå‹•èµ·å‹•ã—ã¾ã›ã‚“。
>
> http://linux-ha.osdn.jp/wp/archives/4051ã‚‚å‚考ã«ã—ã¦ã„ã¾ã™ãŒã€
> 所謂/etc/init.d/å½¢å¼ã§ã®chkconfig hoge onãªè¨˜è¼‰ã§ã¯ãªã„ã®ã§ã€ã‚ˆã分ã‹ã‚Šã¾ã›ã‚“。
>
> 試ã—ã«/etc/init.d/å½¢å¼ã§ã®chkconfig corosync onã¨chkconfig pacemaker onã§ã®è‡ªå‹•èµ·å‹•ã¯
> ã†ã¾ãè¡Œãã¾ã—ãŸãŒã€watchdogã§ã®ç›£è¦–ã‚’ã•ã›ãŸã„ã®ã§Upstartæ–¹å¼ã§èµ·å‹•ã•ã›ãŸã„ã§ã™ã€‚
>
> /etc/init/pacemaker.combined.conf内ã«start on runlevel [2345]ã®è¨˜è¼‰ãŒç„¡ã„ã‹ã‚‰ã‹ã¨
> 記述ã—ã¦è©¦ã—ã¾ã—ãŸãŒã€ã†ã¾ã自動起動ã—ã¾ã›ã‚“。
>
> 自動起動ã—ãªã„åŽŸå› ãŒä¸‹è¨˜confファイルã‹ã‚‰é–“é•ã„ãŒã‚ã‚Œã°ã€ã”æŒ‡æ‘˜é ‚ã‘ã‚Œã°ã¨æ€ã„ã¾ã™ã€‚
> よã‚ã—ããŠé¡˜ã„ã„ãŸã—ã¾ã™ã€‚
>
>
> ---/etc/corosync/corosync.conf---
> # Please read the corosync.conf.5 manual page
> totem {
> Â Â Â Â version: 2
> Â Â Â Â rrp_mode: active
> Â Â Â Â token: 1000
> Â Â Â Â interface {
> Â Â Â Â Â Â Â Â ringnumber: 0
> Â Â Â Â Â Â Â Â bindnetaddr: 192.168.220.0
> Â Â Â Â Â Â Â Â mcastaddr: 239.255.1.1
> Â Â Â Â Â Â Â Â mcastport: 5405
> Â Â Â Â }
> Â Â Â Â interface {
> Â Â Â Â Â Â Â Â ringnumber: 1
> Â Â Â Â Â Â Â Â bindnetaddr: 192.168.221.0
> Â Â Â Â Â Â Â Â mcastaddr: 239.255.1.1
> Â Â Â Â Â Â Â Â mcastport: 5405
> Â Â Â Â }
> }
>
> logging {
> Â Â Â Â fileline: off
> Â Â Â Â to_logfile: yes
> Â Â Â Â to_syslog: yes
> Â Â Â Â logfile: /var/log/cluster/corosync.log
> Â Â Â Â debug: off
> Â Â Â Â timestamp: on
> Â Â Â Â logger_subsys {
> Â Â Â Â Â Â Â Â subsys: QUORUM
> Â Â Â Â Â Â Â Â debug: off
> Â Â Â Â }
> }
>
> quorum {
> Â Â Â Â provider: corosync_votequorum
> Â Â Â Â expected_votes: 2
> }
> ---/etc/corosync/corosync.conf---
>
>
>
> corosync-keygen -lã§/etc/corosync/authkeyを対å‘ノードã«ã‚³ãƒ”ーã—ã¦ã„ã¾ã™ã€‚
>
>
>
> ---/etc/sysconfig/pacemaker---
>
> # diff -u pacemaker_default pacemaker
> --- pacemaker_default 2015-08-18 17:24:18.000000000 +0900
> +++ pacemaker 2015-08-21 13:19:04.513453641 +0900
> @@ -65,7 +65,7 @@
> # PCMK_schema_directory=/some/path
>
> # Enable this for rebooting this machine at the time of process (subsystem)
> failure
> -# PCMK_fail_fast=no
> +export PCMK_fail_fast=yes
>
> #==#==# Pacemaker Remote
> # Use a custom directory for finding the authkey.
>
> ---/etc/sysconfig/pacemaker---
>
>
>
>
> ---/etc/init/corosync.conf---
>
> デフォルトã®ã¾ã¾ã§ã™ã€‚
>
> ---/etc/init/corosync.conf---
>
>
>
> ---/etc/init/pacemaker.combined.conf---
>
> # diff -u pacemaker.combined.conf_deafult pacemaker.combined.conf
> --- pacemaker.combined.conf_deafult  2014-09-04 19:38:20.000000000 +0900
> +++ pacemaker.combined.conf  2015-08-21 16:13:56.414985467 +0900
> @@ -2,6 +2,7 @@
> #
> # Starts Corosync cluster engine and Pacemaker cluster manager.
>
> +stop on runlevel [0123456]
> kill timeout 3600
> respawn
>
> @@ -20,7 +21,7 @@
> pre-start script
> Â Â # setup the software watchdog which corosync uses.
> Â Â # rewrite according to environment.
> -Â Â modprobe softdog soft_margin=60
> +Â Â [ -c /dev/watchdog ] || modprobe softdog soft_margin=6
> Â Â pidof corosync || start corosync
>
> Â Â # if you use corosync-notifyd, uncomment the line below.
> @@ -49,7 +50,7 @@
> Â Â rm -f /var/run/$prog.pid
>
> Â Â # if you use watchdog of corosync, uncomment the line below.
> -Â Â #pidof corosync || false
> +Â Â pidof corosync || false
>
> Â Â pidof crmd || stop corosync
>
> ---/etc/init/pacemaker.combined.conf---
>
> _______________________________________________
> Linux-ha-japan mailing list
> Linux-ha-japan@lists.osdn.me
> http://lists.osdn.me/mailman/listinfo/linux-ha-japan
>
_______________________________________________
Linux-ha-japan mailing list
Linux-ha-japan@lists.osdn.me
http://lists.osdn.me/mailman/listinfo/linux-ha-japan
ã“ã‚“ã«ã¡ã¯ã€å±±å†…ã§ã™ã€‚
pacemaker.combined.confã¯è‡ªå‹•èµ·å‹•ã«å¯¾å¿œã—ã¦ä»¥ä¸‹ã®å¤‰æ›´ãŒPM1.1.12以é™ã«å…¥ã£ã¦ã„ã¾ã™ã€‚
https://github.com/ClusterLabs/pacemaker/blob/master/mcp/pacemaker.combined.upstart.in
ã“ã¡ã‚‰ã‚’å‚考ã«ä¿®æ£ã™ã‚Œã°èµ·å‹•å‡ºæ¥ã‚‹ã¨æ€ã„ã¾ã™ã€‚
以上ã§ã™ã€‚
----- Original Message -----
> From: 木下 æ£æ˜ <kinoshita@tdc.co.jp>
> To: "linux-ha-japan@lists.sourceforge.jp" <linux-ha-japan@lists.sourceforge.jp>
> Cc:
> Date: 2015/8/21, Fri 17:55
> Subject: [Linux-ha-jp] CentOS6.5ã§pacemaker.combinedã§è‡ªå‹•èµ·å‹•ã™ã‚‹æ–¹æ³•ã«ã¤ã„ã¦
>
> ã¯ã˜ã‚ã¾ã—ã¦ã€‚
> TDCソフトã®æœ¨ä¸‹ã¨ç”³ã—ã¾ã™ã€‚
>
> ç¾åœ¨ã€CentOS6.5ã§pacemaker+corosync+drbd+mysqlã§ç’°å¢ƒæ§‹ç¯‰ã‚’ã—ã¦ãŠã‚Šã¾ã™ã€‚
>
> Linux-HAã‹ã‚‰ãƒªãƒã‚¸ãƒˆãƒª(pacemaker-repo-1.1.12-1.1.el6.x86_64.rpm)をインストールã—ã¦ã€
> yum install pacemaker-allã§ã‚¤ãƒ³ã‚¹ãƒˆãƒ¼ãƒ«ã—ã¦ã„ã¾ã™ã€‚
>
> å„ãƒãƒ¼ã‚¸ãƒ§ãƒ³ãŒã€ä»¥ä¸‹ã«ãªã£ã¦ãŠã‚Šã¾ã™ã€‚
> CentOS6.5(x86_64)
> pacemaker(1.1.12)
> corosync(2.3.4-1)
> drbd(8.4.3-1)
>
> 2ノードã§active/sandbyã«ã—ã¦ã„ã¾ã™ã€‚
>
> linux-ha.osdn.jp/wp/wp-content/uploads/OSC-Tokyo2014Fall.pdf
> ã‚’å‚考ã«æ§‹ç¯‰ã—ã¾ã—ãŸãŒã€OS起動時ã®ã‚µãƒ¼ãƒ“ス自動起動ã«ã¤ã„ã¦è³ªå•ãŒã”ã–ã„ã¾ã™ã€‚
>
> CentOS6.5ã§æ§‹ç¯‰ã™ã‚‹ã«ã‚ãŸã‚Šã€èµ·å‹•ã‚¹ã‚¯ãƒªãƒ—トã¯Upstartå½¢å¼ã§è¨å®šã—ã¦ã€
> 手動ã§initctl start pacemaker.combinedをコマンド実行ã™ã‚‹ã¨æ£ã—ãèµ·å‹•ã—ã¾ã™ãŒã€
> OSã‚’å†èµ·å‹•ã™ã‚‹ã¨è‡ªå‹•èµ·å‹•ã—ã¾ã›ã‚“。
>
> http://linux-ha.osdn.jp/wp/archives/4051ã‚‚å‚考ã«ã—ã¦ã„ã¾ã™ãŒã€
> 所謂/etc/init.d/å½¢å¼ã§ã®chkconfig hoge onãªè¨˜è¼‰ã§ã¯ãªã„ã®ã§ã€ã‚ˆã分ã‹ã‚Šã¾ã›ã‚“。
>
> 試ã—ã«/etc/init.d/å½¢å¼ã§ã®chkconfig corosync onã¨chkconfig pacemaker onã§ã®è‡ªå‹•èµ·å‹•ã¯
> ã†ã¾ãè¡Œãã¾ã—ãŸãŒã€watchdogã§ã®ç›£è¦–ã‚’ã•ã›ãŸã„ã®ã§Upstartæ–¹å¼ã§èµ·å‹•ã•ã›ãŸã„ã§ã™ã€‚
>
> /etc/init/pacemaker.combined.conf内ã«start on runlevel [2345]ã®è¨˜è¼‰ãŒç„¡ã„ã‹ã‚‰ã‹ã¨
> 記述ã—ã¦è©¦ã—ã¾ã—ãŸãŒã€ã†ã¾ã自動起動ã—ã¾ã›ã‚“。
>
> 自動起動ã—ãªã„åŽŸå› ãŒä¸‹è¨˜confファイルã‹ã‚‰é–“é•ã„ãŒã‚ã‚Œã°ã€ã”æŒ‡æ‘˜é ‚ã‘ã‚Œã°ã¨æ€ã„ã¾ã™ã€‚
> よã‚ã—ããŠé¡˜ã„ã„ãŸã—ã¾ã™ã€‚
>
>
> ---/etc/corosync/corosync.conf---
> # Please read the corosync.conf.5 manual page
> totem {
> Â Â Â Â version: 2
> Â Â Â Â rrp_mode: active
> Â Â Â Â token: 1000
> Â Â Â Â interface {
> Â Â Â Â Â Â Â Â ringnumber: 0
> Â Â Â Â Â Â Â Â bindnetaddr: 192.168.220.0
> Â Â Â Â Â Â Â Â mcastaddr: 239.255.1.1
> Â Â Â Â Â Â Â Â mcastport: 5405
> Â Â Â Â }
> Â Â Â Â interface {
> Â Â Â Â Â Â Â Â ringnumber: 1
> Â Â Â Â Â Â Â Â bindnetaddr: 192.168.221.0
> Â Â Â Â Â Â Â Â mcastaddr: 239.255.1.1
> Â Â Â Â Â Â Â Â mcastport: 5405
> Â Â Â Â }
> }
>
> logging {
> Â Â Â Â fileline: off
> Â Â Â Â to_logfile: yes
> Â Â Â Â to_syslog: yes
> Â Â Â Â logfile: /var/log/cluster/corosync.log
> Â Â Â Â debug: off
> Â Â Â Â timestamp: on
> Â Â Â Â logger_subsys {
> Â Â Â Â Â Â Â Â subsys: QUORUM
> Â Â Â Â Â Â Â Â debug: off
> Â Â Â Â }
> }
>
> quorum {
> Â Â Â Â provider: corosync_votequorum
> Â Â Â Â expected_votes: 2
> }
> ---/etc/corosync/corosync.conf---
>
>
>
> corosync-keygen -lã§/etc/corosync/authkeyを対å‘ノードã«ã‚³ãƒ”ーã—ã¦ã„ã¾ã™ã€‚
>
>
>
> ---/etc/sysconfig/pacemaker---
>
> # diff -u pacemaker_default pacemaker
> --- pacemaker_default 2015-08-18 17:24:18.000000000 +0900
> +++ pacemaker 2015-08-21 13:19:04.513453641 +0900
> @@ -65,7 +65,7 @@
> # PCMK_schema_directory=/some/path
>
> # Enable this for rebooting this machine at the time of process (subsystem)
> failure
> -# PCMK_fail_fast=no
> +export PCMK_fail_fast=yes
>
> #==#==# Pacemaker Remote
> # Use a custom directory for finding the authkey.
>
> ---/etc/sysconfig/pacemaker---
>
>
>
>
> ---/etc/init/corosync.conf---
>
> デフォルトã®ã¾ã¾ã§ã™ã€‚
>
> ---/etc/init/corosync.conf---
>
>
>
> ---/etc/init/pacemaker.combined.conf---
>
> # diff -u pacemaker.combined.conf_deafult pacemaker.combined.conf
> --- pacemaker.combined.conf_deafult  2014-09-04 19:38:20.000000000 +0900
> +++ pacemaker.combined.conf  2015-08-21 16:13:56.414985467 +0900
> @@ -2,6 +2,7 @@
> #
> # Starts Corosync cluster engine and Pacemaker cluster manager.
>
> +stop on runlevel [0123456]
> kill timeout 3600
> respawn
>
> @@ -20,7 +21,7 @@
> pre-start script
> Â Â # setup the software watchdog which corosync uses.
> Â Â # rewrite according to environment.
> -Â Â modprobe softdog soft_margin=60
> +Â Â [ -c /dev/watchdog ] || modprobe softdog soft_margin=6
> Â Â pidof corosync || start corosync
>
> Â Â # if you use corosync-notifyd, uncomment the line below.
> @@ -49,7 +50,7 @@
> Â Â rm -f /var/run/$prog.pid
>
> Â Â # if you use watchdog of corosync, uncomment the line below.
> -Â Â #pidof corosync || false
> +Â Â pidof corosync || false
>
> Â Â pidof crmd || stop corosync
>
> ---/etc/init/pacemaker.combined.conf---
>
> _______________________________________________
> Linux-ha-japan mailing list
> Linux-ha-japan@lists.osdn.me
> http://lists.osdn.me/mailman/listinfo/linux-ha-japan
>
_______________________________________________
Linux-ha-japan mailing list
Linux-ha-japan@lists.osdn.me
http://lists.osdn.me/mailman/listinfo/linux-ha-japan