¿Ã¸®±âÀü¿¡
/etc/host ¼öÁ¤ ==> corosync À» ÇϱâÀ§ÇÔ
systemctl enable pcsd.service //¸í·É¾î ½ÇÇà µ¥¸ó
systemctl start pcsd
systemctl status pcsd
pcs cluster start --all // corosync, pacemaker µÎ³ëµå µ¿½Ã ½ÇÇà
pcs resource cleanup // "pcs status" ¹®Á¦ÀÖ´Â ºÎºÐ clean
¿Ã¸°ÈÄ
<failcount ¼³Á¤>
pcs resource defaults
pcs resource defaults migration-threshold=1
<no Äõ·³ ignore -> stop º¯°æ >
pcs property set no-quorum-policy=stop
<REST fence device ¼³Á¤ >
pcs stonith create vmfence1 fence_vmware_rest ipaddr=10.40.30.33 login=hacluster passwd=dbslrtm03! pcmk_host_map=PIPCBPRD-node1:PIPCBPRDAP1 ssl_insecure=1 delay=15
pcs stonith create vmfence2 fence_vmware_rest ipaddr=10.40.30.33 login=hacluster passwd=dbslrtm03! pcmk_host_map=PIPCBPRD-node2:PIPCBPRDAP2 ssl_insecure=1
- 1¹ø³ëµå¿¡ 15ÃÊ µô·¹À̸¦ ÁÜ
- VMWARE¿¡¼ hacluster À¯Àú¸¦ »ý¼º ÇØÁà¾ßÇÔ
- PIPCBPRD-node1:PIPCBPRDAP1 ¾ÕÀº /etc/hosts±âÁØ, µÚ¿¡´Â VMWARE¿¡¼ »ç¿ëÇÏ´Â À̸§
pcs stonith update vmfence1 op monitor interval=1800s
pcs stonith update vmfence2 op monitor interval=1800s
<fence »èÁ¦>
pcs stonith delete hafence1
pcs stonith delete hafence2
<fence monitor ¹æÇâ ¼³Á¤>
pcs constraint location vmfence1 avoids PIPCBPRD-node1
pcs constraint location vmfence2 avoids PIPCBPRD-node2
PIPCBPRD-rg ¿ì¼±¼øÀ§
pcs constraint location PIPCBPRD-rg prefers PIPCBPRD-node1=1000
pcs constraint location PIPCBPRD-rg prefers PIPCBPRD-node2=500
<wait_for_all ¼³Á¤ º¯°æ> µ¿½Ã¿¡ ±âµ¿ ¸øÇÏ°Ô ÇÏ´Â ¼³Á¤ ½ºÇø´ºê·¹ÀÎ ¹æÁö
# vim /etc/corosync/corosync.conf
quorum {
provider: corosync_votequorum
wait_for_all: 1 (0 - 1º¯°æ)
two_node: 1
}
pcs cluster sync
pcs cluster stop --all
pcs cluster start --all
pcs quorum status
Flags: 2Node Quorate===> 2Node Quorate WaitForAll º¯°æÈ®ÀÎ
<ÆÄÀϽýºÅÛ write üũ ¿É¼Ç>
pcs resource update fs1_cssoddata op monitor monitor interval=20 timeout=40 OCF_CHECK_LEVEL=20
pcs resource update fs2_arch op monitor monitor interval=20 timeout=40 OCF_CHECK_LEVEL=20
pcs resource update fs3_cssodprd op monitor monitor interval=20 timeout=40 OCF_CHECK_LEVEL=20
pcs resource update fs4_cssodlog op monitor monitor interval=20 timeout=40 OCF_CHECK_LEVEL=20
pcs property set stonith-enabled=true