Linux-HA MLメンãƒãƒ¼ã®çš†æ§˜
åˆã‚ã¾ã—ã¦ã€å¤ç©ã¨ç”³ã—ã¾ã™ã€‚
[質å•]
Corosync, Pacemaker, CMAN ã®å½¹å‰²ã®é•ã„ãŒç†è§£ã§ããã†ãª
日本語ã®è¨˜äº‹ãŒã‚ã‚Œã°æ•™ãˆã¦é ‚ã‘ãªã„ã§ã—ょã†ã‹ã€‚
[質å•ã®èƒŒæ™¯]
CentOS6 㧠Corosync + Pacemaker を使用ã—ã¦ã„ã¾ã—ãŸã€‚
検証環境構築ã®ç‚ºã€CentOS6.6 ã§ä¸‹è¨˜ãƒ‘ッケージをインストールã—ãŸã®ã§ã™ãŒã€‚
corosync-1.4.7-2.el6.x86_64
pacemaker-1.1.12-8.el6.x86_64
pcmk ã®è¨å®šã§ä¸‹è¨˜ã®é€šã‚Šè¨å®šã—ã€èµ·å‹•ã‚’試ã¿ãŸã¨ã“ã‚ã€
corosync.log ã« Pacemaker plugin for Corosync ãŒä½¿ç”¨ã§ããªã„æ—¨ã®
英文ãŒè¡¨ç¤ºã•ã‚Œã€pacemaker ãŒèµ·å‹•ã—ãªã„状態ã¨ãªã‚Šã¾ã—ãŸã€‚
ãªãŠã€è‹±æ–‡ã§ãƒ‰ã‚ュメントを確èªã™ã‚‹ã¨ã€pcmk 㧠1 ã‚’è¨å®šã™ã‚‹ã‚ˆã†
ä¸‹è¨˜è£œè¶³äº‹é …ã¨å…±ã«è¨˜è¼‰ãŒã‚る事を確èªã—ã€pcmk 㧠1 ã‚’è¨å®šã—ãŸã¨ã“ã‚
æ£å¸¸èµ·å‹•ã§ãる事ã¯ç¢ºèªã—ãŸã¨ã“ã‚ã§ã¯ã‚ã‚Šã¾ã™ã€‚
Clusters from Scratch ã®è¨˜äº‹ã‚„ã€ä¸‹è¨˜ quickstart ã‚’èªã‚€ã¨
cman 㨠pacemaker を組ã¿åˆã‚ã›ã¦ä½¿ç”¨ã™ã‚‹ä¾‹ã‚’多々見å—ã‘られã¾ã™ãŒã€
corosync, pacemaker, cman ã®å½¹å‰²ã®é•ã„ãŒã‚¤ãƒžã‚¤ãƒæ•´ç†å‡ºæ¥ãšã«å±…る状æ³ã§ã™ã€‚
今後ã¯ã©ã®ã‚ˆã†ãªçµ„ã¿åˆã‚ã›ã§æ§‹ç¯‰ã‚’ã™ã‚Œã°è‰¯ã„ã‹è€ƒãˆã‚‹åˆ¤æ–ææ–™ã¨ã—ã¦ã€
corosync, pacemaker, cman ã®å½¹å‰²ã®é•ã„ã«ã¤ã„ã¦èªè˜ã‚’æ•´ç†ã—ãŸã„為ã€
å‚考ã¨ãªã‚‹ã‚µã‚¤ãƒˆã‚„書ç±ã§ã‚‚良ã„ã®ã§ã€æ•™ãˆã¦é ‚ã‘ã¾ã™ã¨å¹¸ã„ã§ã™ã€‚
よã‚ã—ããŠé¡˜ã„致ã—ã¾ã™ã€‚
â– pcmkè¨å®š
# cat <<-END >>/etc/corosync/service.d/pcmk
service {
# Load the Pacemaker Cluster Resource Manager
name: pacemaker
ver: 0
}
END
â– /var/log/cluster/corosync.log ãƒã‚°æŠœç²‹
Aug 26 16:20:37 corosync [pcmk ] ERROR: process_ais_conf: You have
configured a cluster using the Pacemaker plugin for Corosync. The plugin is
not supported in this environment and will be removed very soon.
Aug 26 16:20:37 corosync [pcmk ] ERROR: process_ais_conf: Please see
Chapter 8 of 'Clusters from Scratch' (http://www.clusterlabs.org/doc) for
details on using Pacemaker with CMAN
■マニュアル抜粋
http://clusterlabs.org/doc/en-US/Pacemaker/1.1-plugin/html/Clusters_from_Scratch/_configuring_corosync.html
When run in version 1 mode, the plugin does not start the Pacemaker
daemons. Instead it just sets up the quorum and messaging interfaces needed
by the rest of the stack. Starting the dameons occurs when the Pacemaker
init script is invoked. This resolves two long standing issues:
1. Forking inside a multi-threaded process like Corosync causes all
sorts of pain. This has been problematic for Pacemaker as it needs a number
of daemons to be spawned.
2. Corosync was never designed for staggered shutdown - something
previously needed in order to prevent the cluster from leaving before
Pacemaker could stop all active resources.
â– quickstart
http://clusterlabs.org/quickstart.html
--
â€ï¼ï¼ï¼â€•â€•â€•â€•â€•â€•â€•â€•â€•â€•â€•â€•â€•â€•â€•â€•â€•â€•â€•â€•â€•ï¼ï¼ï¼â€
å¤ç© 広一(Kozumi Koichi)
E-Mail: kozumi@repica.co.jp
―――――――――――――――――――――
æ ªå¼ä¼šç¤¾ãƒ¬ãƒ”ã‚« (repica inc.)
レピカ事æ¥éƒ¨ 技術部 é‹ç”¨ã‚°ãƒ«ãƒ¼ãƒ—
〒107-0062 æ±äº¬éƒ½æ¸¯åŒºå—é’å±±2-24-15
é’山タワービル別館
TEL: 03-5414-3611 FAX: 03-5414-3622
URL: http://repica.jp/
â€ï¼ï¼ï¼â€•â€•â€•â€•â€•â€•â€•â€•â€•â€•â€•â€•â€•â€•â€•â€•â€•â€•â€•â€•â€•ï¼ï¼ï¼â€
â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”
â–¼9年連続シェアNo.1 å€‹äººæƒ…å ±æ¼ãˆã„対ç–ソフト
ã€P-Pointer】http://ppointer.jp/
「1分ã§ã‚ã‹ã‚‹ï¼P-pointerã€å‹•ç”»ã§ã”紹介ä¸ï¼
â””https://youtu.be/6uvuXlPAeHc
▼国内åˆï¼ç«‹ä½“物èªè˜ã«å¯¾å¿œã—ãŸARアプリ
ã€ARAPPLI】http://www.arappli.com/service/arappli/
â–¼ITビジãƒã‚¹ã‚’å‰µé€ ã—ãªãŒã‚‰æœªæ¥ã‚’創る
ã€VARCHAR】http://varchar.co.jp/
â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”repica groupâ”
åˆã‚ã¾ã—ã¦ã€å¤ç©ã¨ç”³ã—ã¾ã™ã€‚
[質å•]
Corosync, Pacemaker, CMAN ã®å½¹å‰²ã®é•ã„ãŒç†è§£ã§ããã†ãª
日本語ã®è¨˜äº‹ãŒã‚ã‚Œã°æ•™ãˆã¦é ‚ã‘ãªã„ã§ã—ょã†ã‹ã€‚
[質å•ã®èƒŒæ™¯]
CentOS6 㧠Corosync + Pacemaker を使用ã—ã¦ã„ã¾ã—ãŸã€‚
検証環境構築ã®ç‚ºã€CentOS6.6 ã§ä¸‹è¨˜ãƒ‘ッケージをインストールã—ãŸã®ã§ã™ãŒã€‚
corosync-1.4.7-2.el6.x86_64
pacemaker-1.1.12-8.el6.x86_64
pcmk ã®è¨å®šã§ä¸‹è¨˜ã®é€šã‚Šè¨å®šã—ã€èµ·å‹•ã‚’試ã¿ãŸã¨ã“ã‚ã€
corosync.log ã« Pacemaker plugin for Corosync ãŒä½¿ç”¨ã§ããªã„æ—¨ã®
英文ãŒè¡¨ç¤ºã•ã‚Œã€pacemaker ãŒèµ·å‹•ã—ãªã„状態ã¨ãªã‚Šã¾ã—ãŸã€‚
ãªãŠã€è‹±æ–‡ã§ãƒ‰ã‚ュメントを確èªã™ã‚‹ã¨ã€pcmk 㧠1 ã‚’è¨å®šã™ã‚‹ã‚ˆã†
ä¸‹è¨˜è£œè¶³äº‹é …ã¨å…±ã«è¨˜è¼‰ãŒã‚る事を確èªã—ã€pcmk 㧠1 ã‚’è¨å®šã—ãŸã¨ã“ã‚
æ£å¸¸èµ·å‹•ã§ãる事ã¯ç¢ºèªã—ãŸã¨ã“ã‚ã§ã¯ã‚ã‚Šã¾ã™ã€‚
Clusters from Scratch ã®è¨˜äº‹ã‚„ã€ä¸‹è¨˜ quickstart ã‚’èªã‚€ã¨
cman 㨠pacemaker を組ã¿åˆã‚ã›ã¦ä½¿ç”¨ã™ã‚‹ä¾‹ã‚’多々見å—ã‘られã¾ã™ãŒã€
corosync, pacemaker, cman ã®å½¹å‰²ã®é•ã„ãŒã‚¤ãƒžã‚¤ãƒæ•´ç†å‡ºæ¥ãšã«å±…る状æ³ã§ã™ã€‚
今後ã¯ã©ã®ã‚ˆã†ãªçµ„ã¿åˆã‚ã›ã§æ§‹ç¯‰ã‚’ã™ã‚Œã°è‰¯ã„ã‹è€ƒãˆã‚‹åˆ¤æ–ææ–™ã¨ã—ã¦ã€
corosync, pacemaker, cman ã®å½¹å‰²ã®é•ã„ã«ã¤ã„ã¦èªè˜ã‚’æ•´ç†ã—ãŸã„為ã€
å‚考ã¨ãªã‚‹ã‚µã‚¤ãƒˆã‚„書ç±ã§ã‚‚良ã„ã®ã§ã€æ•™ãˆã¦é ‚ã‘ã¾ã™ã¨å¹¸ã„ã§ã™ã€‚
よã‚ã—ããŠé¡˜ã„致ã—ã¾ã™ã€‚
â– pcmkè¨å®š
# cat <<-END >>/etc/corosync/service.d/pcmk
service {
# Load the Pacemaker Cluster Resource Manager
name: pacemaker
ver: 0
}
END
â– /var/log/cluster/corosync.log ãƒã‚°æŠœç²‹
Aug 26 16:20:37 corosync [pcmk ] ERROR: process_ais_conf: You have
configured a cluster using the Pacemaker plugin for Corosync. The plugin is
not supported in this environment and will be removed very soon.
Aug 26 16:20:37 corosync [pcmk ] ERROR: process_ais_conf: Please see
Chapter 8 of 'Clusters from Scratch' (http://www.clusterlabs.org/doc) for
details on using Pacemaker with CMAN
■マニュアル抜粋
http://clusterlabs.org/doc/en-US/Pacemaker/1.1-plugin/html/Clusters_from_Scratch/_configuring_corosync.html
When run in version 1 mode, the plugin does not start the Pacemaker
daemons. Instead it just sets up the quorum and messaging interfaces needed
by the rest of the stack. Starting the dameons occurs when the Pacemaker
init script is invoked. This resolves two long standing issues:
1. Forking inside a multi-threaded process like Corosync causes all
sorts of pain. This has been problematic for Pacemaker as it needs a number
of daemons to be spawned.
2. Corosync was never designed for staggered shutdown - something
previously needed in order to prevent the cluster from leaving before
Pacemaker could stop all active resources.
â– quickstart
http://clusterlabs.org/quickstart.html
--
â€ï¼ï¼ï¼â€•â€•â€•â€•â€•â€•â€•â€•â€•â€•â€•â€•â€•â€•â€•â€•â€•â€•â€•â€•â€•ï¼ï¼ï¼â€
å¤ç© 広一(Kozumi Koichi)
E-Mail: kozumi@repica.co.jp
―――――――――――――――――――――
æ ªå¼ä¼šç¤¾ãƒ¬ãƒ”ã‚« (repica inc.)
レピカ事æ¥éƒ¨ 技術部 é‹ç”¨ã‚°ãƒ«ãƒ¼ãƒ—
〒107-0062 æ±äº¬éƒ½æ¸¯åŒºå—é’å±±2-24-15
é’山タワービル別館
TEL: 03-5414-3611 FAX: 03-5414-3622
URL: http://repica.jp/
â€ï¼ï¼ï¼â€•â€•â€•â€•â€•â€•â€•â€•â€•â€•â€•â€•â€•â€•â€•â€•â€•â€•â€•â€•â€•ï¼ï¼ï¼â€
â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”
â–¼9年連続シェアNo.1 å€‹äººæƒ…å ±æ¼ãˆã„対ç–ソフト
ã€P-Pointer】http://ppointer.jp/
「1分ã§ã‚ã‹ã‚‹ï¼P-pointerã€å‹•ç”»ã§ã”紹介ä¸ï¼
â””https://youtu.be/6uvuXlPAeHc
▼国内åˆï¼ç«‹ä½“物èªè˜ã«å¯¾å¿œã—ãŸARアプリ
ã€ARAPPLI】http://www.arappli.com/service/arappli/
â–¼ITビジãƒã‚¹ã‚’å‰µé€ ã—ãªãŒã‚‰æœªæ¥ã‚’創る
ã€VARCHAR】http://varchar.co.jp/
â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”repica groupâ”