$B$O$8$a$^$7$F!#(B
$B#T#D#C%=%U%H$NLZ2<$H?=$7$^$9!#(B
$B8=:_!"(BCentOS6.5$B$G(Bpacemaker+corosync+drbd+mysql$B$G4D6-9=C[$r$7$F$*$j$^$9!#(B
Linux-HA$B$+$i%j%]%8%H%j(B(pacemaker-repo-1.1.12-1.1.el6.x86_64.rpm)$B$r%$%s%9%H!<%k$7$F!"(B
yum install pacemaker-all$B$G%$%s%9%H!<%k$7$F$$$^$9!#(B
$B3F%P!<%8%g%s$,!"0J2<$K$J$C$F$*$j$^$9!#(B
CentOS6.5(x86_64)
pacemaker(1.1.12)
corosync(2.3.4-1)
drbd(8.4.3-1)
2$B%N!<%I$G(Bactive/sandby$B$K$7$F$$$^$9!#(B
linux-ha.osdn.jp/wp/wp-content/uploads/OSC-Tokyo2014Fall.pdf
$B$r;29M$K9=C[$7$^$7$?$,!"(BOS$B5/F0;~$N%5!<%S%9<+F05/F0$K$D$$$F<ALd$,$4$6$$$^$9!#(B
CentOS6.5$B$G9=C[$9$k$K$"$?$j!"5/F0%9%/%j%W%H$O(BUpstart$B7A<0$G@_Dj$7$F!"(B
$B<jF0$G(Binitctl start pacemaker.combined$B$r%3%^%s%I<B9T$9$k$H@5$7$/5/F0$7$^$9$,!"(B
OS$B$r:F5/F0$9$k$H<+F05/F0$7$^$;$s!#(B
http://linux-ha.osdn.jp/wp/archives/4051$B$b;29M$K$7$F$$$^$9$,!"(B
$B=j0b(B/etc/init.d/$B7A<0$G$N(Bchkconfig hoge on$B$J5-:\$G$O$J$$$N$G!"$h$/J,$+$j$^$;$s!#(B
$B;n$7$K(B/etc/init.d/$B7A<0$G$N(Bchkconfig corosync on$B$H(Bchkconfig pacemaker on$B$G$N<+F05/F0$O(B
$B$&$^$/9T$-$^$7$?$,!"(Bwatchdog$B$G$N4F;k$r$5$;$?$$$N$G(BUpstart$BJ}<0$G5/F0$5$;$?$$$G$9!#(B
/etc/init/pacemaker.combined.conf$BFb$K(Bstart on runlevel [2345]$B$N5-:\$,L5$$$+$i$+$H(B
$B5-=R$7$F;n$7$^$7$?$,!"$&$^$/<+F05/F0$7$^$;$s!#(B
$B<+F05/F0$7$J$$860x$,2<5-(Bconf$B%U%!%$%k$+$i4V0c$$$,$"$l$P!"$4;XE&D:$1$l$P$H;W$$$^$9!#(B
$B$h$m$7$/$*4j$$$$$?$7$^$9!#(B
---/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$B$G(B/etc/corosync/authkey$B$rBP8~%N!<%I$K%3%T!<$7$F$$$^$9!#(B
---/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---
$B%G%U%)%k%H$N$^$^$G$9!#(B
---/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
$B#T#D#C%=%U%H$NLZ2<$H?=$7$^$9!#(B
$B8=:_!"(BCentOS6.5$B$G(Bpacemaker+corosync+drbd+mysql$B$G4D6-9=C[$r$7$F$*$j$^$9!#(B
Linux-HA$B$+$i%j%]%8%H%j(B(pacemaker-repo-1.1.12-1.1.el6.x86_64.rpm)$B$r%$%s%9%H!<%k$7$F!"(B
yum install pacemaker-all$B$G%$%s%9%H!<%k$7$F$$$^$9!#(B
$B3F%P!<%8%g%s$,!"0J2<$K$J$C$F$*$j$^$9!#(B
CentOS6.5(x86_64)
pacemaker(1.1.12)
corosync(2.3.4-1)
drbd(8.4.3-1)
2$B%N!<%I$G(Bactive/sandby$B$K$7$F$$$^$9!#(B
linux-ha.osdn.jp/wp/wp-content/uploads/OSC-Tokyo2014Fall.pdf
$B$r;29M$K9=C[$7$^$7$?$,!"(BOS$B5/F0;~$N%5!<%S%9<+F05/F0$K$D$$$F<ALd$,$4$6$$$^$9!#(B
CentOS6.5$B$G9=C[$9$k$K$"$?$j!"5/F0%9%/%j%W%H$O(BUpstart$B7A<0$G@_Dj$7$F!"(B
$B<jF0$G(Binitctl start pacemaker.combined$B$r%3%^%s%I<B9T$9$k$H@5$7$/5/F0$7$^$9$,!"(B
OS$B$r:F5/F0$9$k$H<+F05/F0$7$^$;$s!#(B
http://linux-ha.osdn.jp/wp/archives/4051$B$b;29M$K$7$F$$$^$9$,!"(B
$B=j0b(B/etc/init.d/$B7A<0$G$N(Bchkconfig hoge on$B$J5-:\$G$O$J$$$N$G!"$h$/J,$+$j$^$;$s!#(B
$B;n$7$K(B/etc/init.d/$B7A<0$G$N(Bchkconfig corosync on$B$H(Bchkconfig pacemaker on$B$G$N<+F05/F0$O(B
$B$&$^$/9T$-$^$7$?$,!"(Bwatchdog$B$G$N4F;k$r$5$;$?$$$N$G(BUpstart$BJ}<0$G5/F0$5$;$?$$$G$9!#(B
/etc/init/pacemaker.combined.conf$BFb$K(Bstart on runlevel [2345]$B$N5-:\$,L5$$$+$i$+$H(B
$B5-=R$7$F;n$7$^$7$?$,!"$&$^$/<+F05/F0$7$^$;$s!#(B
$B<+F05/F0$7$J$$860x$,2<5-(Bconf$B%U%!%$%k$+$i4V0c$$$,$"$l$P!"$4;XE&D:$1$l$P$H;W$$$^$9!#(B
$B$h$m$7$/$*4j$$$$$?$7$^$9!#(B
---/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$B$G(B/etc/corosync/authkey$B$rBP8~%N!<%I$K%3%T!<$7$F$$$^$9!#(B
---/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---
$B%G%U%)%k%H$N$^$^$G$9!#(B
---/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