Pacemaker インストール手順


目的：MySQLをクラスタ化
実現案：DRBD + Pacemaker
内容：Pacemaker のインストール手順
　　　※設定は基本的な正常性確認の範囲内※

http://clusterlabs.org/quickstart-redhat.html

```
yum install -y pacemaker
//
Dependencies Resolved

================================================================================
 Package                            Arch   Version                Repository
                                                                           Size
================================================================================
Installing:
 pcs                                x86_64 0.9.162-5.el7.centos.1 updates 5.0 M
Installing for dependencies:
 avahi-libs                         x86_64 0.6.31-19.el7          base     61 k
 bc                                 x86_64 1.06.95-13.el7         base    115 k
 cifs-utils                         x86_64 6.2-10.el7             base     85 k
 clufter-bin                        x86_64 0.77.0-2.el7           base     25 k
 clufter-common                     noarch 0.77.0-2.el7           base     72 k
 corosync                           x86_64 2.4.3-2.el7_5.1        updates 220 k
 corosynclib                        x86_64 2.4.3-2.el7_5.1        updates 132 k
 cups-libs                          x86_64 1:1.6.3-35.el7         base    357 k
 device-mapper-event                x86_64 7:1.02.146-4.el7       base    185 k
 device-mapper-event-libs           x86_64 7:1.02.146-4.el7       base    184 k
 device-mapper-persistent-data      x86_64 0.7.3-3.el7            base    405 k
 fontpackages-filesystem            noarch 1.44-8.el7             base    9.9 k
 gnutls                             x86_64 3.3.26-9.el7           base    677 k
 gssproxy                           x86_64 0.7.0-17.el7           base    108 k
 keyutils                           x86_64 1.5.8-3.el7            base     54 k
 libaio                             x86_64 0.3.109-13.el7         base     24 k
 libbasicobjects                    x86_64 0.1.1-29.el7           base     25 k
 libcgroup                          x86_64 0.41-15.el7            base     65 k
 libcollection                      x86_64 0.7.0-29.el7           base     41 k
 liberation-fonts-common            noarch 1:1.07.2-16.el7        base     27 k
 liberation-sans-fonts              noarch 1:1.07.2-16.el7        base    279 k
 libevent                           x86_64 2.0.21-4.el7           base    214 k
 libini_config                      x86_64 1.3.1-29.el7           base     63 k
 libldb                             x86_64 1.2.2-1.el7            base    131 k
 libnfsidmap                        x86_64 0.25-19.el7            base     50 k
 libpath_utils                      x86_64 0.2.1-29.el7           base     28 k
 libqb                              x86_64 1.0.1-6.el7            base     95 k
 libref_array                       x86_64 0.1.5-29.el7           base     26 k
 libtalloc                          x86_64 2.1.10-1.el7           base     33 k
 libtdb                             x86_64 1.3.15-1.el7           base     48 k
 libtevent                          x86_64 0.9.33-2.el7           base     37 k
 libtirpc                           x86_64 0.2.4-0.10.el7         base     88 k
 libverto-libevent                  x86_64 0.2.5-4.el7            base    8.9 k
 libwbclient                        x86_64 4.7.1-6.el7            base    107 k
 libxslt                            x86_64 1.1.28-5.el7           base    242 k
 libyaml                            x86_64 0.1.4-11.el7_0         base     55 k
 lvm2                               x86_64 7:2.02.177-4.el7       base    1.3 M
 lvm2-libs                          x86_64 7:2.02.177-4.el7       base    1.0 M
 nettle                             x86_64 2.7.1-8.el7            base    327 k
 nfs-utils                          x86_64 1:1.3.0-0.54.el7       base    407 k
 overpass-fonts                     noarch 2.1-1.el7              base    700 k
 pacemaker                          x86_64 1.1.18-11.el7_5.2      updates 456 k
 pacemaker-cli                      x86_64 1.1.18-11.el7_5.2      updates 348 k
 pacemaker-cluster-libs             x86_64 1.1.18-11.el7_5.2      updates 152 k
 pacemaker-libs                     x86_64 1.1.18-11.el7_5.2      updates 619 k
 psmisc                             x86_64 22.20-15.el7           base    141 k
 python-backports                   x86_64 1.0-8.el7              base    5.8 k
 python-backports-ssl_match_hostname
                                    noarch 3.5.0.1-1.el7          base     13 k
 python-clufter                     noarch 0.77.0-2.el7           base    320 k
 python-ipaddress                   noarch 1.0.16-2.el7           base     34 k
 python-lxml                        x86_64 3.2.1-4.el7            base    758 k
 python-setuptools                  noarch 0.9.8-7.el7            base    397 k
 quota                              x86_64 1:4.01-17.el7          base    179 k
 quota-nls                          noarch 1:4.01-17.el7          base     90 k
 resource-agents                    x86_64 3.9.5-124.el7          base    398 k
 rpcbind                            x86_64 0.2.0-44.el7           base     59 k
 ruby                               x86_64 2.0.0.648-33.el7_4     base     71 k
 ruby-irb                           noarch 2.0.0.648-33.el7_4     base     92 k
 ruby-libs                          x86_64 2.0.0.648-33.el7_4     base    2.8 M
 rubygem-bigdecimal                 x86_64 1.2.0-33.el7_4         base     83 k
 rubygem-io-console                 x86_64 0.4.2-33.el7_4         base     54 k
 rubygem-json                       x86_64 1.7.7-33.el7_4         base     79 k
 rubygem-psych                      x86_64 2.0.0-33.el7_4         base     82 k
 rubygem-rdoc                       noarch 4.0.0-33.el7_4         base    322 k
 rubygems                           noarch 2.0.14.1-33.el7_4      base    219 k
 samba-client-libs                  x86_64 4.7.1-6.el7            base    4.8 M
 samba-common                       noarch 4.7.1-6.el7            base    205 k
 samba-common-libs                  x86_64 4.7.1-6.el7            base    162 k
 tcp_wrappers                       x86_64 7.6-77.el7             base     78 k
 trousers                           x86_64 0.3.14-2.el7           base    289 k

Transaction Summary
================================================================================
Install  1 Package (+70 Dependent packages)

Total download size: 26 M
Installed size: 81 M
Downloading packages:
(1/71): bc-1.06.95-13.el7.x86_64.rpm                       | 115 kB   00:00
(2/71): avahi-libs-0.6.31-19.el7.x86_64.rpm                |  61 kB   00:00
(3/71): cifs-utils-6.2-10.el7.x86_64.rpm                   |  85 kB   00:00
(4/71): clufter-bin-0.77.0-2.el7.x86_64.rpm                |  25 kB   00:00
(5/71): clufter-common-0.77.0-2.el7.noarch.rpm             |  72 kB   00:00
(6/71): cups-libs-1.6.3-35.el7.x86_64.rpm                  | 357 kB   00:00
(7/71): device-mapper-event-libs-1.02.146-4.el7.x86_64.rpm | 184 kB   00:00
(8/71): device-mapper-persistent-data-0.7.3-3.el7.x86_64.r | 405 kB   00:00
(9/71): fontpackages-filesystem-1.44-8.el7.noarch.rpm      | 9.9 kB   00:00
(10/71): corosynclib-2.4.3-2.el7_5.1.x86_64.rpm            | 132 kB   00:00
(11/71): gnutls-3.3.26-9.el7.x86_64.rpm                    | 677 kB   00:00
(12/71): corosync-2.4.3-2.el7_5.1.x86_64.rpm               | 220 kB   00:00
(13/71): device-mapper-event-1.02.146-4.el7.x86_64.rpm     | 185 kB   00:00
(14/71): keyutils-1.5.8-3.el7.x86_64.rpm                   |  54 kB   00:00
(15/71): gssproxy-0.7.0-17.el7.x86_64.rpm                  | 108 kB   00:00
(16/71): libaio-0.3.109-13.el7.x86_64.rpm                  |  24 kB   00:00
(17/71): libbasicobjects-0.1.1-29.el7.x86_64.rpm           |  25 kB   00:00
(18/71): libcollection-0.7.0-29.el7.x86_64.rpm             |  41 kB   00:00
(19/71): libcgroup-0.41-15.el7.x86_64.rpm                  |  65 kB   00:00
(20/71): liberation-fonts-common-1.07.2-16.el7.noarch.rpm  |  27 kB   00:00
(21/71): libevent-2.0.21-4.el7.x86_64.rpm                  | 214 kB   00:00
(22/71): liberation-sans-fonts-1.07.2-16.el7.noarch.rpm    | 279 kB   00:00
(23/71): libini_config-1.3.1-29.el7.x86_64.rpm             |  63 kB   00:00
(24/71): libnfsidmap-0.25-19.el7.x86_64.rpm                |  50 kB   00:00
(25/71): libldb-1.2.2-1.el7.x86_64.rpm                     | 131 kB   00:00
(26/71): libpath_utils-0.2.1-29.el7.x86_64.rpm             |  28 kB   00:00
(27/71): libref_array-0.1.5-29.el7.x86_64.rpm              |  26 kB   00:00
(28/71): libqb-1.0.1-6.el7.x86_64.rpm                      |  95 kB   00:00
(29/71): libtalloc-2.1.10-1.el7.x86_64.rpm                 |  33 kB   00:00
(30/71): libtdb-1.3.15-1.el7.x86_64.rpm                    |  48 kB   00:00
(31/71): libtevent-0.9.33-2.el7.x86_64.rpm                 |  37 kB   00:00
(32/71): libverto-libevent-0.2.5-4.el7.x86_64.rpm          | 8.9 kB   00:00
(33/71): libtirpc-0.2.4-0.10.el7.x86_64.rpm                |  88 kB   00:00
(34/71): libwbclient-4.7.1-6.el7.x86_64.rpm                | 107 kB   00:00
(35/71): libxslt-1.1.28-5.el7.x86_64.rpm                   | 242 kB   00:00
(36/71): libyaml-0.1.4-11.el7_0.x86_64.rpm                 |  55 kB   00:00
(37/71): lvm2-2.02.177-4.el7.x86_64.rpm                    | 1.3 MB   00:00
(38/71): nettle-2.7.1-8.el7.x86_64.rpm                     | 327 kB   00:00
(39/71): lvm2-libs-2.02.177-4.el7.x86_64.rpm               | 1.0 MB   00:00
(40/71): pacemaker-1.1.18-11.el7_5.2.x86_64.rpm            | 456 kB   00:00
(41/71): pacemaker-cluster-libs-1.1.18-11.el7_5.2.x86_64.r | 152 kB   00:00
(42/71): pacemaker-libs-1.1.18-11.el7_5.2.x86_64.rpm       | 619 kB   00:00
(43/71): pacemaker-cli-1.1.18-11.el7_5.2.x86_64.rpm        | 348 kB   00:00
(44/71): python-backports-1.0-8.el7.x86_64.rpm             | 5.8 kB   00:00
(45/71): psmisc-22.20-15.el7.x86_64.rpm                    | 141 kB   00:00
(46/71): python-backports-ssl_match_hostname-3.5.0.1-1.el7 |  13 kB   00:00
(47/71): python-ipaddress-1.0.16-2.el7.noarch.rpm          |  34 kB   00:00
(48/71): python-clufter-0.77.0-2.el7.noarch.rpm            | 320 kB   00:00
(49/71): python-setuptools-0.9.8-7.el7.noarch.rpm          | 397 kB   00:00
(50/71): quota-4.01-17.el7.x86_64.rpm                      | 179 kB   00:00
(51/71): quota-nls-4.01-17.el7.noarch.rpm                  |  90 kB   00:00
(52/71): resource-agents-3.9.5-124.el7.x86_64.rpm          | 398 kB   00:00
(53/71): rpcbind-0.2.0-44.el7.x86_64.rpm                   |  59 kB   00:00
(54/71): python-lxml-3.2.1-4.el7.x86_64.rpm                | 758 kB   00:00
(55/71): ruby-2.0.0.648-33.el7_4.x86_64.rpm                |  71 kB   00:00
(56/71): ruby-irb-2.0.0.648-33.el7_4.noarch.rpm            |  92 kB   00:00
(57/71): overpass-fonts-2.1-1.el7.noarch.rpm               | 700 kB   00:01
(58/71): rubygem-bigdecimal-1.2.0-33.el7_4.x86_64.rpm      |  83 kB   00:00
(59/71): rubygem-json-1.7.7-33.el7_4.x86_64.rpm            |  79 kB   00:00
(60/71): rubygem-psych-2.0.0-33.el7_4.x86_64.rpm           |  82 kB   00:00
(61/71): nfs-utils-1.3.0-0.54.el7.x86_64.rpm               | 407 kB   00:01
(62/71): rubygem-rdoc-4.0.0-33.el7_4.noarch.rpm            | 322 kB   00:00
(63/71): rubygem-io-console-0.4.2-33.el7_4.x86_64.rpm      |  54 kB   00:00
(64/71): samba-common-4.7.1-6.el7.noarch.rpm               | 205 kB   00:00
(65/71): samba-common-libs-4.7.1-6.el7.x86_64.rpm          | 162 kB   00:00
(66/71): tcp_wrappers-7.6-77.el7.x86_64.rpm                |  78 kB   00:00
(67/71): ruby-libs-2.0.0.648-33.el7_4.x86_64.rpm           | 2.8 MB   00:00
(68/71): trousers-0.3.14-2.el7.x86_64.rpm                  | 289 kB   00:00
(69/71): rubygems-2.0.14.1-33.el7_4.noarch.rpm             | 219 kB   00:01
(70/71): samba-client-libs-4.7.1-6.el7.x86_64.rpm          | 4.8 MB   00:01
(71/71): pcs-0.9.162-5.el7.centos.1.x86_64.rpm             | 5.0 MB   00:03
--------------------------------------------------------------------------------
Total                                              4.5 MB/s |  26 MB  00:05
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : ruby-libs-2.0.0.648-33.el7_4.x86_64                         1/71
  Installing : libxslt-1.1.28-5.el7.x86_64                                 2/71
  Installing : libqb-1.0.1-6.el7.x86_64                                    3/71
  Installing : libtalloc-2.1.10-1.el7.x86_64                               4/71
  Installing : 7:device-mapper-event-libs-1.02.146-4.el7.x86_64            5/71
  Installing : libtdb-1.3.15-1.el7.x86_64                                  6/71
  Installing : libtevent-0.9.33-2.el7.x86_64                               7/71
  Installing : python-lxml-3.2.1-4.el7.x86_64                              8/71
  Installing : keyutils-1.5.8-3.el7.x86_64                                 9/71
  Installing : libevent-2.0.21-4.el7.x86_64                               10/71
  Installing : psmisc-22.20-15.el7.x86_64                                 11/71
  Installing : samba-common-4.7.1-6.el7.noarch                            12/71
  Installing : libref_array-0.1.5-29.el7.x86_64                           13/71
  Installing : fontpackages-filesystem-1.44-8.el7.noarch                  14/71
  Installing : libbasicobjects-0.1.1-29.el7.x86_64                        15/71
  Installing : libcollection-0.7.0-29.el7.x86_64                          16/71
  Installing : avahi-libs-0.6.31-19.el7.x86_64                            17/71
  Installing : libtirpc-0.2.4-0.10.el7.x86_64                             18/71
  Installing : rpcbind-0.2.0-44.el7.x86_64                                19/71
  Installing : 1:cups-libs-1.6.3-35.el7.x86_64                            20/71
  Installing : overpass-fonts-2.1-1.el7.noarch                            21/71
  Installing : 1:liberation-fonts-common-1.07.2-16.el7.noarch             22/71
  Installing : 1:liberation-sans-fonts-1.07.2-16.el7.noarch               23/71
  Installing : libverto-libevent-0.2.5-4.el7.x86_64                       24/71
  Installing : libldb-1.2.2-1.el7.x86_64                                  25/71
  Installing : samba-common-libs-4.7.1-6.el7.x86_64                       26/71
  Installing : libwbclient-4.7.1-6.el7.x86_64                             27/71
  Installing : samba-client-libs-4.7.1-6.el7.x86_64                       28/71
  Installing : cifs-utils-6.2-10.el7.x86_64                               29/71
  Installing : 7:device-mapper-event-1.02.146-4.el7.x86_64                30/71
  Installing : 7:lvm2-libs-2.02.177-4.el7.x86_64                          31/71
  Installing : clufter-common-0.77.0-2.el7.noarch                         32/71
  Installing : clufter-bin-0.77.0-2.el7.x86_64                            33/71
  Installing : python-clufter-0.77.0-2.el7.noarch                         34/71
  Installing : tcp_wrappers-7.6-77.el7.x86_64                             35/71
  Installing : python-ipaddress-1.0.16-2.el7.noarch                       36/71
  Installing : libnfsidmap-0.25-19.el7.x86_64                             37/71
  Installing : libaio-0.3.109-13.el7.x86_64                               38/71
  Installing : device-mapper-persistent-data-0.7.3-3.el7.x86_64           39/71
  Installing : 7:lvm2-2.02.177-4.el7.x86_64                               40/71
  Installing : libpath_utils-0.2.1-29.el7.x86_64                          41/71
  Installing : libini_config-1.3.1-29.el7.x86_64                          42/71
  Installing : gssproxy-0.7.0-17.el7.x86_64                               43/71
  Installing : python-backports-1.0-8.el7.x86_64                          44/71
  Installing : python-backports-ssl_match_hostname-3.5.0.1-1.el7.noarch   45/71
  Installing : python-setuptools-0.9.8-7.el7.noarch                       46/71
  Installing : libyaml-0.1.4-11.el7_0.x86_64                              47/71
  Installing : rubygem-io-console-0.4.2-33.el7_4.x86_64                   48/71
  Installing : rubygem-bigdecimal-1.2.0-33.el7_4.x86_64                   49/71
  Installing : rubygem-json-1.7.7-33.el7_4.x86_64                         50/71
  Installing : ruby-2.0.0.648-33.el7_4.x86_64                             51/71
  Installing : ruby-irb-2.0.0.648-33.el7_4.noarch                         52/71
  Installing : rubygem-psych-2.0.0-33.el7_4.x86_64                        53/71
  Installing : rubygems-2.0.14.1-33.el7_4.noarch                          54/71
  Installing : rubygem-rdoc-4.0.0-33.el7_4.noarch                         55/71
  Installing : libcgroup-0.41-15.el7.x86_64                               56/71
  Installing : corosync-2.4.3-2.el7_5.1.x86_64                            57/71
  Installing : corosynclib-2.4.3-2.el7_5.1.x86_64                         58/71
  Installing : 1:quota-nls-4.01-17.el7.noarch                             59/71
  Installing : 1:quota-4.01-17.el7.x86_64                                 60/71
  Installing : 1:nfs-utils-1.3.0-0.54.el7.x86_64                          61/71
  Installing : bc-1.06.95-13.el7.x86_64                                   62/71
  Installing : resource-agents-3.9.5-124.el7.x86_64                       63/71
  Installing : nettle-2.7.1-8.el7.x86_64                                  64/71
  Installing : trousers-0.3.14-2.el7.x86_64                               65/71
  Installing : gnutls-3.3.26-9.el7.x86_64                                 66/71
  Installing : pacemaker-libs-1.1.18-11.el7_5.2.x86_64                    67/71
  Installing : pacemaker-cli-1.1.18-11.el7_5.2.x86_64                     68/71
  Installing : pacemaker-cluster-libs-1.1.18-11.el7_5.2.x86_64            69/71
  Installing : pacemaker-1.1.18-11.el7_5.2.x86_64                         70/71
  Installing : pcs-0.9.162-5.el7.centos.1.x86_64                          71/71
  Verifying  : device-mapper-persistent-data-0.7.3-3.el7.x86_64            1/71
  Verifying  : ruby-libs-2.0.0.648-33.el7_4.x86_64                         2/71
  Verifying  : pcs-0.9.162-5.el7.centos.1.x86_64                           3/71
  Verifying  : python-backports-ssl_match_hostname-3.5.0.1-1.el7.noarch    4/71
  Verifying  : libtirpc-0.2.4-0.10.el7.x86_64                              5/71
  Verifying  : corosynclib-2.4.3-2.el7_5.1.x86_64                          6/71
  Verifying  : avahi-libs-0.6.31-19.el7.x86_64                             7/71
  Verifying  : pacemaker-libs-1.1.18-11.el7_5.2.x86_64                     8/71
  Verifying  : libcollection-0.7.0-29.el7.x86_64                           9/71
  Verifying  : rubygem-rdoc-4.0.0-33.el7_4.noarch                         10/71
  Verifying  : python-lxml-3.2.1-4.el7.x86_64                             11/71
  Verifying  : libbasicobjects-0.1.1-29.el7.x86_64                        12/71
  Verifying  : trousers-0.3.14-2.el7.x86_64                               13/71
  Verifying  : nettle-2.7.1-8.el7.x86_64                                  14/71
  Verifying  : libqb-1.0.1-6.el7.x86_64                                   15/71
  Verifying  : python-setuptools-0.9.8-7.el7.noarch                       16/71
  Verifying  : fontpackages-filesystem-1.44-8.el7.noarch                  17/71
  Verifying  : rubygem-io-console-0.4.2-33.el7_4.x86_64                   18/71
  Verifying  : bc-1.06.95-13.el7.x86_64                                   19/71
  Verifying  : libref_array-0.1.5-29.el7.x86_64                           20/71
  Verifying  : cifs-utils-6.2-10.el7.x86_64                               21/71
  Verifying  : rubygem-bigdecimal-1.2.0-33.el7_4.x86_64                   22/71
  Verifying  : 7:device-mapper-event-1.02.146-4.el7.x86_64                23/71
  Verifying  : overpass-fonts-2.1-1.el7.noarch                            24/71
  Verifying  : samba-common-4.7.1-6.el7.noarch                            25/71
  Verifying  : libini_config-1.3.1-29.el7.x86_64                          26/71
  Verifying  : samba-common-libs-4.7.1-6.el7.x86_64                       27/71
  Verifying  : samba-client-libs-4.7.1-6.el7.x86_64                       28/71
  Verifying  : rpcbind-0.2.0-44.el7.x86_64                                29/71
  Verifying  : 1:liberation-sans-fonts-1.07.2-16.el7.noarch               30/71
  Verifying  : psmisc-22.20-15.el7.x86_64                                 31/71
  Verifying  : 7:lvm2-2.02.177-4.el7.x86_64                               32/71
  Verifying  : python-clufter-0.77.0-2.el7.noarch                         33/71
  Verifying  : 1:quota-nls-4.01-17.el7.noarch                             34/71
  Verifying  : libcgroup-0.41-15.el7.x86_64                               35/71
  Verifying  : gnutls-3.3.26-9.el7.x86_64                                 36/71
  Verifying  : libtdb-1.3.15-1.el7.x86_64                                 37/71
  Verifying  : libldb-1.2.2-1.el7.x86_64                                  38/71
  Verifying  : pacemaker-1.1.18-11.el7_5.2.x86_64                         39/71
  Verifying  : libyaml-0.1.4-11.el7_0.x86_64                              40/71
  Verifying  : libevent-2.0.21-4.el7.x86_64                               41/71
  Verifying  : libxslt-1.1.28-5.el7.x86_64                                42/71
  Verifying  : rubygem-json-1.7.7-33.el7_4.x86_64                         43/71
  Verifying  : libverto-libevent-0.2.5-4.el7.x86_64                       44/71
  Verifying  : 1:nfs-utils-1.3.0-0.54.el7.x86_64                          45/71
  Verifying  : libtalloc-2.1.10-1.el7.x86_64                              46/71
  Verifying  : pacemaker-cli-1.1.18-11.el7_5.2.x86_64                     47/71
  Verifying  : clufter-bin-0.77.0-2.el7.x86_64                            48/71
  Verifying  : python-backports-1.0-8.el7.x86_64                          49/71
  Verifying  : resource-agents-3.9.5-124.el7.x86_64                       50/71
  Verifying  : 1:quota-4.01-17.el7.x86_64                                 51/71
  Verifying  : libpath_utils-0.2.1-29.el7.x86_64                          52/71
  Verifying  : ruby-2.0.0.648-33.el7_4.x86_64                             53/71
  Verifying  : 1:cups-libs-1.6.3-35.el7.x86_64                            54/71
  Verifying  : libaio-0.3.109-13.el7.x86_64                               55/71
  Verifying  : libtevent-0.9.33-2.el7.x86_64                              56/71
  Verifying  : 7:device-mapper-event-libs-1.02.146-4.el7.x86_64           57/71
  Verifying  : libnfsidmap-0.25-19.el7.x86_64                             58/71
  Verifying  : rubygems-2.0.14.1-33.el7_4.noarch                          59/71
  Verifying  : corosync-2.4.3-2.el7_5.1.x86_64                            60/71
  Verifying  : gssproxy-0.7.0-17.el7.x86_64                               61/71
  Verifying  : keyutils-1.5.8-3.el7.x86_64                                62/71
  Verifying  : python-ipaddress-1.0.16-2.el7.noarch                       63/71
  Verifying  : tcp_wrappers-7.6-77.el7.x86_64                             64/71
  Verifying  : 1:liberation-fonts-common-1.07.2-16.el7.noarch             65/71
  Verifying  : pacemaker-cluster-libs-1.1.18-11.el7_5.2.x86_64            66/71
  Verifying  : clufter-common-0.77.0-2.el7.noarch                         67/71
  Verifying  : 7:lvm2-libs-2.02.177-4.el7.x86_64                          68/71
  Verifying  : rubygem-psych-2.0.0-33.el7_4.x86_64                        69/71
  Verifying  : ruby-irb-2.0.0.648-33.el7_4.noarch                         70/71
  Verifying  : libwbclient-4.7.1-6.el7.x86_64                             71/71

Installed:
  pcs.x86_64 0:0.9.162-5.el7.centos.1

Dependency Installed:
  avahi-libs.x86_64 0:0.6.31-19.el7
  bc.x86_64 0:1.06.95-13.el7
  cifs-utils.x86_64 0:6.2-10.el7
  clufter-bin.x86_64 0:0.77.0-2.el7
  clufter-common.noarch 0:0.77.0-2.el7
  corosync.x86_64 0:2.4.3-2.el7_5.1
  corosynclib.x86_64 0:2.4.3-2.el7_5.1
  cups-libs.x86_64 1:1.6.3-35.el7
  device-mapper-event.x86_64 7:1.02.146-4.el7
  device-mapper-event-libs.x86_64 7:1.02.146-4.el7
  device-mapper-persistent-data.x86_64 0:0.7.3-3.el7
  fontpackages-filesystem.noarch 0:1.44-8.el7
  gnutls.x86_64 0:3.3.26-9.el7
  gssproxy.x86_64 0:0.7.0-17.el7
  keyutils.x86_64 0:1.5.8-3.el7
  libaio.x86_64 0:0.3.109-13.el7
  libbasicobjects.x86_64 0:0.1.1-29.el7
  libcgroup.x86_64 0:0.41-15.el7
  libcollection.x86_64 0:0.7.0-29.el7
  liberation-fonts-common.noarch 1:1.07.2-16.el7
  liberation-sans-fonts.noarch 1:1.07.2-16.el7
  libevent.x86_64 0:2.0.21-4.el7
  libini_config.x86_64 0:1.3.1-29.el7
  libldb.x86_64 0:1.2.2-1.el7
  libnfsidmap.x86_64 0:0.25-19.el7
  libpath_utils.x86_64 0:0.2.1-29.el7
  libqb.x86_64 0:1.0.1-6.el7
  libref_array.x86_64 0:0.1.5-29.el7
  libtalloc.x86_64 0:2.1.10-1.el7
  libtdb.x86_64 0:1.3.15-1.el7
  libtevent.x86_64 0:0.9.33-2.el7
  libtirpc.x86_64 0:0.2.4-0.10.el7
  libverto-libevent.x86_64 0:0.2.5-4.el7
  libwbclient.x86_64 0:4.7.1-6.el7
  libxslt.x86_64 0:1.1.28-5.el7
  libyaml.x86_64 0:0.1.4-11.el7_0
  lvm2.x86_64 7:2.02.177-4.el7
  lvm2-libs.x86_64 7:2.02.177-4.el7
  nettle.x86_64 0:2.7.1-8.el7
  nfs-utils.x86_64 1:1.3.0-0.54.el7
  overpass-fonts.noarch 0:2.1-1.el7
  pacemaker.x86_64 0:1.1.18-11.el7_5.2
  pacemaker-cli.x86_64 0:1.1.18-11.el7_5.2
  pacemaker-cluster-libs.x86_64 0:1.1.18-11.el7_5.2
  pacemaker-libs.x86_64 0:1.1.18-11.el7_5.2
  psmisc.x86_64 0:22.20-15.el7
  python-backports.x86_64 0:1.0-8.el7
  python-backports-ssl_match_hostname.noarch 0:3.5.0.1-1.el7
  python-clufter.noarch 0:0.77.0-2.el7
  python-ipaddress.noarch 0:1.0.16-2.el7
  python-lxml.x86_64 0:3.2.1-4.el7
  python-setuptools.noarch 0:0.9.8-7.el7
  quota.x86_64 1:4.01-17.el7
  quota-nls.noarch 1:4.01-17.el7
  resource-agents.x86_64 0:3.9.5-124.el7
  rpcbind.x86_64 0:0.2.0-44.el7
  ruby.x86_64 0:2.0.0.648-33.el7_4
  ruby-irb.noarch 0:2.0.0.648-33.el7_4
  ruby-libs.x86_64 0:2.0.0.648-33.el7_4
  rubygem-bigdecimal.x86_64 0:1.2.0-33.el7_4
  rubygem-io-console.x86_64 0:0.4.2-33.el7_4
  rubygem-json.x86_64 0:1.7.7-33.el7_4
  rubygem-psych.x86_64 0:2.0.0-33.el7_4
  rubygem-rdoc.noarch 0:4.0.0-33.el7_4
  rubygems.noarch 0:2.0.14.1-33.el7_4
  samba-client-libs.x86_64 0:4.7.1-6.el7
  samba-common.noarch 0:4.7.1-6.el7
  samba-common-libs.x86_64 0:4.7.1-6.el7
  tcp_wrappers.x86_64 0:7.6-77.el7
  trousers.x86_64 0:0.3.14-2.el7

Complete!
//

(cluster01)
ip a
//
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
2: enp0s3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
    link/ether 08:00:27:44:78:40 brd ff:ff:ff:ff:ff:ff
    inet 192.168.11.101/24 brd 192.168.11.255 scope global noprefixroute enp0s3
       valid_lft forever preferred_lft forever
3: enp0s8: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
    link/ether 08:00:27:cf:b8:db brd ff:ff:ff:ff:ff:ff
    inet 172.16.0.1/24 brd 172.16.0.255 scope global noprefixroute enp0s8
       valid_lft forever preferred_lft forever
4: enp0s9: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
    link/ether 08:00:27:42:02:9e brd ff:ff:ff:ff:ff:ff
    inet 10.0.0.1/24 brd 10.0.0.255 scope global noprefixroute enp0s9
       valid_lft forever preferred_lft forever
//

(cluster02)
//
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
2: enp0s3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
    link/ether 08:00:27:36:dd:33 brd ff:ff:ff:ff:ff:ff
    inet 192.168.11.102/24 brd 192.168.11.255 scope global noprefixroute enp0s3
       valid_lft forever preferred_lft forever
3: enp0s8: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
    link/ether 08:00:27:2f:9b:0b brd ff:ff:ff:ff:ff:ff
    inet 172.16.0.2/24 brd 172.16.0.255 scope global noprefixroute enp0s8
       valid_lft forever preferred_lft forever
4: enp0s9: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
    link/ether 08:00:27:b6:0e:48 brd ff:ff:ff:ff:ff:ff
    inet 10.0.0.2/24 brd 10.0.0.255 scope global noprefixroute enp0s9
       valid_lft forever preferred_lft forever
//

+++ create cluster 

(cluster01,cluster02)

systemctl start pcsd
systemctl enable pcsd

echo CHANGEME | passwd --stdin hacluster
//
Changing password for user hacluster.
passwd: all authentication tokens updated successfully.
//

(cluster01)
pcs cluster auth cluster01 cluster02 -u hacluster -p CHANGEME --force
//
cluster02: Authorized
cluster01: Authorized
//

pcs cluster setup --force --name pacemaker1 cluster01 cluster02
//
Destroying cluster on nodes: cluster01, cluster02...
cluster01: Stopping Cluster (pacemaker)...
cluster02: Stopping Cluster (pacemaker)...
cluster02: Successfully destroyed cluster
cluster01: Successfully destroyed cluster

Sending 'pacemaker_remote authkey' to 'cluster01', 'cluster02'
cluster02: successful distribution of the file 'pacemaker_remote authkey'
cluster01: successful distribution of the file 'pacemaker_remote authkey'
Sending cluster config files to the nodes...
cluster01: Succeeded
cluster02: Succeeded

Synchronizing pcsd certificates on nodes cluster01, cluster02...
cluster02: Success
cluster01: Success
Restarting pcsd on the nodes in order to reload the certificates...
cluster02: Success
cluster01: Success
//

+++ start cluster
(cluster01)
pcs cluster start --all
//
cluster02: Starting Cluster...
cluster01: Starting Cluster...
//

pcs property set stonith-enabled=false
pcs property set no-quorum-policy=ignore
pcs resource defaults migration-threshold=1
//
Warning: Defaults do not apply to resources which override them with their own defined values
//

+++ Add a Resource
pcs resource create mycluster ocf:pacemaker:Dummy op monitor interval=5s

pcs status
//
Cluster name: pacemaker1
Stack: corosync
Current DC: cluster01 (version 1.1.18-11.el7_5.2-2b07d5c5a9) - partition with quorum
Last updated: Sun Jun 24 17:45:23 2018
Last change: Sun Jun 24 17:45:10 2018 by root via cibadmin on cluster02

2 nodes configured
1 resource configured

Online: [ cluster01 cluster02 ]

Full list of resources:

 mycluster      (ocf::pacemaker:Dummy): Started cluster01 ★

Daemon Status:
  corosync: active/disabled
  pacemaker: active/disabled
  pcsd: active/enabled
//

crm_resource --resource mycluster --force-stop
//
Operation stop for mycluster (ocf:pacemaker:Dummy) returned: 'ok' (0)
/

pcs status
//
Cluster name: pacemaker1
Stack: corosync
Current DC: cluster01 (version 1.1.18-11.el7_5.2-2b07d5c5a9) - partition with quorum
Last updated: Sun Jun 24 17:49:44 2018
Last change: Sun Jun 24 17:45:20 2018 by root via cibadmin on cluster02

2 nodes configured
1 resource configured

Online: [ cluster01 cluster02 ]

Full list of resources:

 mycluster      (ocf::pacemaker:Dummy): Started cluster02

Failed Actions:
* mycluster_monitor_120000 on cluster01 'not running' (7): call=7, status=complete, exitreason='',
    last-rc-change='Sun Jun 24 17:49:20 2018', queued=0ms, exec=0ms


Daemon Status:
  corosync: active/disabled
  pacemaker: active/disabled
  pcsd: active/enabled
//

```

（以上）