[root@node1 ~]# pcs cluster setup hacluster node1 node2
No addresses specified for host 'node2', using 'node1'
No addresses specified for host 'node2', using 'node2'
....
Cluster has been successfully set up.
[root@node1 ~]#
最後に両ノードでPacemakerを起動します。
[root@node1 ~]# systemctl start pacemaker
[root@node1 ~]# systemctl status pacemaker
● pacemaker.service - Pacemaker High Availability Cluster Manager
Loaded: loaded (/usr/lib/systemd/system/pacemaker.service; disabled; vendor preset: disabled)
Active: active (running) since 金 2020-07-17 13:32:04 JST; 20s ago
Docs: man:pacemakerd
Main PID: 2471 (pacemakerd)
CGroup: /system.slice/pacemaker.service
├─2471 /usr/sbin/pacemakerd -f
├─2472 /usr/libexec/pacemaker/cib
├─2473 /usr/libexec/pacemaker/stonithd
├─2474 /usr/libexec/pacemaker/lrmd
├─2475 /usr/libexec/pacemaker/attrd
├─2476 /usr/libexec/pacemaker/pengine
└─2477 /usr/libexec/pacemaker/crmd
7月 17 13:32:07 node1.example.com crmd[2477]: notice: Could not obtain a node name for corosync nodeid 2
7月 17 13:32:07 node1.example.com crmd[2477]: notice: Could not obtain a node name for corosync nodeid 2
7月 17 13:32:07 node1.example.com crmd[2477]: notice: Node (null) state is now member
7月 17 13:32:07 node1.example.com attrd[2475]: notice: Could not obtain a node name for corosync nodeid 2
7月 17 13:32:07 node1.example.com attrd[2475]: notice: Node (null) state is now member
7月 17 13:32:07 node1.example.com stonith-ng[2473]: notice: Could not obtain a node name for corosync nodeid 2
7月 17 13:32:07 node1.example.com stonith-ng[2473]: notice: Node (null) state is now member
7月 17 13:32:07 node1.example.com cib[2472]: notice: Could not obtain a node name for corosync nodeid 2
7月 17 13:32:07 node1.example.com cib[2472]: notice: Node (null) state is now member
7月 17 13:32:08 node1.example.com crmd[2477]: notice: Could not obtain a node name for corosync nodeid 2