ãŠä¸–話ã«ãªã£ã¦ãŠã‚Šã¾ã™ã€‚
岸野ã¨ç”³ã—ã¾ã™ã€‚
表題ã®ä»¶ã«ã¤ã„ã¦ã”教示ãã ã•ã„。
VM上ã«ãƒãƒ¼ãƒ‰ã‚¦ã‚§ã‚¢ãƒãƒ¼ã‚¸ãƒ§ãƒ³7ã®ä»®æƒ³ãƒžã‚·ãƒ³ã‚’用æ„ã—
以下ã®ãƒãƒ¼ã‚¸ãƒ§ãƒ³ã§2å°æ§‹æˆã‚’組んã§ã„ã¾ã™ã€‚
pacemaker.combinedã§èµ·å‹•ã—ãŸç›´å¾Œã«
pacemaker.log, corosync.logã«ä»¥ä¸‹ã®ãƒã‚°ãŒå‡ºåŠ›ã•ã‚Œã¦ãŠã‚Šã¾ã™ã€‚
crmコマンドも使ãˆã¦ãŠã‚Šã€å‹•ãã«ã¯å•é¡Œãªã•ãã†ã§ã™ãŒ
ãƒã‚°ãŒã‚¨ãƒ©ãƒ¼ã‚’示唆ã—ã¦ã„ã‚‹ã®ã‹ãŒã‚ã‹ã‚‰ãªã„ãŸã‚
影響ã®ç‰¹å®šã¨åŽŸå› ã®è§£æ±ºã«ãŠåŠ›ã‚’ãŠè²¸ã—ã„ãŸã ã‘ã¾ã™ã§ã—ょã†ã‹ï¼Ÿ
ï¼ï¼ï¼ï¼ï¼ï¼ï¼ï¼ï¼ï¼ï¼ï¼
<サーãƒæƒ…å ±>
サーãƒ1
ã€ãƒ›ã‚¹ãƒˆå】test_host1
ã€IPアドレス】192.168.0.106
サーãƒ2
ã€ãƒ›ã‚¹ãƒˆå】test_host2
ã€IPアドレス】192.168.0.107
CentOS 6.6 x86_64
pacemaker-1.1.12-1
corosync-2.3.4-1
(pacemaker-repo-1.1.12-1.1.el6.x86_64.rpmを使ã„インストールã—
SELinuxã¯disabled, iptablesã¯èµ·å‹•ã—ã¦ãŠã‚Šã¾ã›ã‚“。)
ï¼ï¼ï¼ï¼ï¼ï¼ï¼ï¼ï¼ï¼ï¼ï¼
# cat /var/log/pacemaker.log
Oct 13 09:26:25 [1146] test_host1 ifcheckd: notice:
_cs_cmap_connections_key_changed: Stop monitoring interface. Notified of
Pacemaker stop event
Oct 13 09:26:26 [1146] test_host1 ifcheckd: notice:
_regular_attr_init: Start to monitor interface after Pacemaker
restarted
Oct 13 09:26:59 [1146] test_host1 ifcheckd: notice:
_cs_cmap_connections_key_changed: Stop monitoring interface. Notified of
Pacemaker stop event
Oct 13 09:26:59 [1146] test_host1 ifcheckd: notice: _cs_cmap_destroy:
Stop monitoring interface. cmap connection is destroyed
Oct 13 09:27:44 [1146] test_host1 ifcheckd: notice: crm_ipc_send:
Connection to attrd closed
Oct 13 09:27:44 [1146] test_host1 ifcheckd: info:
attrd_update_delegate: Connecting to cluster... 4 retries remaining
Oct 13 09:27:44 [1146] test_host1 ifcheckd: info: crm_ipc_connect:
Could not establish attrd connection: Connection refused (111)
Oct 13 09:27:45 [28069] test_host1 pacemakerd: info: crm_log_init:
Changed active directory to /var/lib/heartbeat/cores/root
Oct 13 09:27:45 [28069] test_host1 pacemakerd: info: crm_ipc_connect:
Could not establish pacemakerd connection: Connection refused (111)
Oct 13 09:27:45 [28069] test_host1 pacemakerd: info: get_cluster_type:
Detected an active 'corosync' cluster
Oct 13 09:27:45 [28069] test_host1 pacemakerd: info: mcp_read_config:
Reading configure for stack: corosync
Oct 13 09:27:45 [28069] test_host1 pacemakerd: notice: crm_add_logfile:
Switching to /var/log/cluster/corosync.log
Oct 13 09:27:45 [1146] test_host1 ifcheckd: info:
attrd_update_delegate: Connecting to cluster... 3 retries remaining
Oct 13 09:27:45 [1146] test_host1 ifcheckd: info: crm_ipc_connect:
Could not establish attrd connection: Connection refused (111)
Oct 13 09:27:47 [1146] test_host1 ifcheckd: info:
attrd_update_delegate: Connecting to cluster... 2 retries remaining
Oct 13 09:27:48 [1146] test_host1 ifcheckd: notice:
_regular_attr_init: Start to monitor interface
Oct 13 09:27:56 [1146] test_host1 ifcheckd: notice:
_cs_cmap_connections_key_changed: Stop monitoring interface. Notified of
Pacemaker stop event
Oct 13 09:27:57 [1146] test_host1 ifcheckd: notice:
_regular_attr_init: Start to monitor interface after Pacemaker
restarted
Oct 13 09:27:58 [1146] test_host1 ifcheckd: notice:
_cs_cmap_connections_key_changed: Stop monitoring interface. Notified of
Pacemaker stop event
Oct 13 09:27:59 [1146] test_host1 ifcheckd: notice:
_regular_attr_init: Start to monitor interface after Pacemaker
restarted
/var/log/cluster/corosync.log抜粋
Oct 13 09:27:45 [28078] test_host1 crmd: info: crm_ipc_connect:
Could not establish cib_shm connection: Connection refused (111)
Oct 13 09:27:45 [28078] test_host1 crmd: debug:
cib_native_signon_raw: Connection unsuccessful (0 (nil))
Oct 13 09:27:45 [28078] test_host1 crmd: debug:
cib_native_signon_raw: Connection to CIB failed: Transport endpoint is
not connected
Oct 13 09:27:45 [28078] test_host1 crmd: debug:
cib_native_signoff: Signing out of the CIB Service
Oct 13 09:27:45 [28074] test_host1 stonithd: info: crm_ipc_connect:
Could not establish cib_rw connection: Connection refused (111)
Oct 13 09:27:45 [28074] test_host1 stonithd: debug:
cib_native_signon_raw: Connection unsuccessful (0 (nil))
Oct 13 09:27:45 [28074] test_host1 stonithd: debug:
cib_native_signon_raw: Connection to CIB failed: Transport endpoint is
not connected
Oct 13 09:27:45 [28074] test_host1 stonithd: debug:
cib_native_signoff: Signing out of the CIB Service
Oct 13 09:27:45 [28078] test_host1 crmd: info: crm_ipc_connect:
Could not establish cib_shm connection: Connection refused (111)
Oct 13 09:27:45 [28078] test_host1 crmd: debug:
cib_native_signon_raw: Connection unsuccessful (0 (nil))
Oct 13 09:27:45 [28078] test_host1 crmd: debug:
cib_native_signon_raw: Connection to CIB failed: Transport endpoint is
not connected
Oct 13 09:27:45 [28078] test_host1 crmd: debug:
cib_native_signoff: Signing out of the CIB Service
corosyncã®è¨å®šã¯ä»¥ä¸‹ã®ã‚ˆã†ã«ã—ã¦ãŠã‚Šã¾ã™ã€‚
# cat /etc/corosync/corosync.conf
totem {
version: 2
crypto_cipher: none
crypto_hash: none
secauth: off
rrp_mode: none
interface {
ringnumber: 0
bindnetaddr: 192.168.0.106
mcastport: 5405
ttl: 1
}
transport: udpu
}
logging {
fileline: off
to_logfile: yes
to_syslog: no
logfile: /var/log/cluster/corosync.log
debug: on
timestamp: on
logger_subsys {
subsys: QUORUM
debug: on
}
}
nodelist {
node {
ring0_addr: 192.168.0.106
}
node {
ring0_addr: 192.168.0.107
}
}
quorum {
provider: corosync_votequorum
expected_votes: 2
two_node: 1
}
岸野ã¨ç”³ã—ã¾ã™ã€‚
表題ã®ä»¶ã«ã¤ã„ã¦ã”教示ãã ã•ã„。
VM上ã«ãƒãƒ¼ãƒ‰ã‚¦ã‚§ã‚¢ãƒãƒ¼ã‚¸ãƒ§ãƒ³7ã®ä»®æƒ³ãƒžã‚·ãƒ³ã‚’用æ„ã—
以下ã®ãƒãƒ¼ã‚¸ãƒ§ãƒ³ã§2å°æ§‹æˆã‚’組んã§ã„ã¾ã™ã€‚
pacemaker.combinedã§èµ·å‹•ã—ãŸç›´å¾Œã«
pacemaker.log, corosync.logã«ä»¥ä¸‹ã®ãƒã‚°ãŒå‡ºåŠ›ã•ã‚Œã¦ãŠã‚Šã¾ã™ã€‚
crmコマンドも使ãˆã¦ãŠã‚Šã€å‹•ãã«ã¯å•é¡Œãªã•ãã†ã§ã™ãŒ
ãƒã‚°ãŒã‚¨ãƒ©ãƒ¼ã‚’示唆ã—ã¦ã„ã‚‹ã®ã‹ãŒã‚ã‹ã‚‰ãªã„ãŸã‚
影響ã®ç‰¹å®šã¨åŽŸå› ã®è§£æ±ºã«ãŠåŠ›ã‚’ãŠè²¸ã—ã„ãŸã ã‘ã¾ã™ã§ã—ょã†ã‹ï¼Ÿ
ï¼ï¼ï¼ï¼ï¼ï¼ï¼ï¼ï¼ï¼ï¼ï¼
<サーãƒæƒ…å ±>
サーãƒ1
ã€ãƒ›ã‚¹ãƒˆå】test_host1
ã€IPアドレス】192.168.0.106
サーãƒ2
ã€ãƒ›ã‚¹ãƒˆå】test_host2
ã€IPアドレス】192.168.0.107
CentOS 6.6 x86_64
pacemaker-1.1.12-1
corosync-2.3.4-1
(pacemaker-repo-1.1.12-1.1.el6.x86_64.rpmを使ã„インストールã—
SELinuxã¯disabled, iptablesã¯èµ·å‹•ã—ã¦ãŠã‚Šã¾ã›ã‚“。)
ï¼ï¼ï¼ï¼ï¼ï¼ï¼ï¼ï¼ï¼ï¼ï¼
# cat /var/log/pacemaker.log
Oct 13 09:26:25 [1146] test_host1 ifcheckd: notice:
_cs_cmap_connections_key_changed: Stop monitoring interface. Notified of
Pacemaker stop event
Oct 13 09:26:26 [1146] test_host1 ifcheckd: notice:
_regular_attr_init: Start to monitor interface after Pacemaker
restarted
Oct 13 09:26:59 [1146] test_host1 ifcheckd: notice:
_cs_cmap_connections_key_changed: Stop monitoring interface. Notified of
Pacemaker stop event
Oct 13 09:26:59 [1146] test_host1 ifcheckd: notice: _cs_cmap_destroy:
Stop monitoring interface. cmap connection is destroyed
Oct 13 09:27:44 [1146] test_host1 ifcheckd: notice: crm_ipc_send:
Connection to attrd closed
Oct 13 09:27:44 [1146] test_host1 ifcheckd: info:
attrd_update_delegate: Connecting to cluster... 4 retries remaining
Oct 13 09:27:44 [1146] test_host1 ifcheckd: info: crm_ipc_connect:
Could not establish attrd connection: Connection refused (111)
Oct 13 09:27:45 [28069] test_host1 pacemakerd: info: crm_log_init:
Changed active directory to /var/lib/heartbeat/cores/root
Oct 13 09:27:45 [28069] test_host1 pacemakerd: info: crm_ipc_connect:
Could not establish pacemakerd connection: Connection refused (111)
Oct 13 09:27:45 [28069] test_host1 pacemakerd: info: get_cluster_type:
Detected an active 'corosync' cluster
Oct 13 09:27:45 [28069] test_host1 pacemakerd: info: mcp_read_config:
Reading configure for stack: corosync
Oct 13 09:27:45 [28069] test_host1 pacemakerd: notice: crm_add_logfile:
Switching to /var/log/cluster/corosync.log
Oct 13 09:27:45 [1146] test_host1 ifcheckd: info:
attrd_update_delegate: Connecting to cluster... 3 retries remaining
Oct 13 09:27:45 [1146] test_host1 ifcheckd: info: crm_ipc_connect:
Could not establish attrd connection: Connection refused (111)
Oct 13 09:27:47 [1146] test_host1 ifcheckd: info:
attrd_update_delegate: Connecting to cluster... 2 retries remaining
Oct 13 09:27:48 [1146] test_host1 ifcheckd: notice:
_regular_attr_init: Start to monitor interface
Oct 13 09:27:56 [1146] test_host1 ifcheckd: notice:
_cs_cmap_connections_key_changed: Stop monitoring interface. Notified of
Pacemaker stop event
Oct 13 09:27:57 [1146] test_host1 ifcheckd: notice:
_regular_attr_init: Start to monitor interface after Pacemaker
restarted
Oct 13 09:27:58 [1146] test_host1 ifcheckd: notice:
_cs_cmap_connections_key_changed: Stop monitoring interface. Notified of
Pacemaker stop event
Oct 13 09:27:59 [1146] test_host1 ifcheckd: notice:
_regular_attr_init: Start to monitor interface after Pacemaker
restarted
/var/log/cluster/corosync.log抜粋
Oct 13 09:27:45 [28078] test_host1 crmd: info: crm_ipc_connect:
Could not establish cib_shm connection: Connection refused (111)
Oct 13 09:27:45 [28078] test_host1 crmd: debug:
cib_native_signon_raw: Connection unsuccessful (0 (nil))
Oct 13 09:27:45 [28078] test_host1 crmd: debug:
cib_native_signon_raw: Connection to CIB failed: Transport endpoint is
not connected
Oct 13 09:27:45 [28078] test_host1 crmd: debug:
cib_native_signoff: Signing out of the CIB Service
Oct 13 09:27:45 [28074] test_host1 stonithd: info: crm_ipc_connect:
Could not establish cib_rw connection: Connection refused (111)
Oct 13 09:27:45 [28074] test_host1 stonithd: debug:
cib_native_signon_raw: Connection unsuccessful (0 (nil))
Oct 13 09:27:45 [28074] test_host1 stonithd: debug:
cib_native_signon_raw: Connection to CIB failed: Transport endpoint is
not connected
Oct 13 09:27:45 [28074] test_host1 stonithd: debug:
cib_native_signoff: Signing out of the CIB Service
Oct 13 09:27:45 [28078] test_host1 crmd: info: crm_ipc_connect:
Could not establish cib_shm connection: Connection refused (111)
Oct 13 09:27:45 [28078] test_host1 crmd: debug:
cib_native_signon_raw: Connection unsuccessful (0 (nil))
Oct 13 09:27:45 [28078] test_host1 crmd: debug:
cib_native_signon_raw: Connection to CIB failed: Transport endpoint is
not connected
Oct 13 09:27:45 [28078] test_host1 crmd: debug:
cib_native_signoff: Signing out of the CIB Service
corosyncã®è¨å®šã¯ä»¥ä¸‹ã®ã‚ˆã†ã«ã—ã¦ãŠã‚Šã¾ã™ã€‚
# cat /etc/corosync/corosync.conf
totem {
version: 2
crypto_cipher: none
crypto_hash: none
secauth: off
rrp_mode: none
interface {
ringnumber: 0
bindnetaddr: 192.168.0.106
mcastport: 5405
ttl: 1
}
transport: udpu
}
logging {
fileline: off
to_logfile: yes
to_syslog: no
logfile: /var/log/cluster/corosync.log
debug: on
timestamp: on
logger_subsys {
subsys: QUORUM
debug: on
}
}
nodelist {
node {
ring0_addr: 192.168.0.106
}
node {
ring0_addr: 192.168.0.107
}
}
quorum {
provider: corosync_votequorum
expected_votes: 2
two_node: 1
}