NOTE: this repository is just for my development and might be removed in the future.
-
- download both the RHEL8 base ISO image and the HA addon ISO image
-
- set the RHEL8 base ISO image as a DVD media on the target hosts
-
- copy and rename the HA addon ISO image into ./roles/repo-setup/files/rhel-8.0-ha-x86_64-dvd.iso
-
- create the inventory file 'hosts'. see 'hosts.sample'
-
- setup repository
# ansible-playbook 00-repo-setup.yml
-
- setup cluster
# ansible-playbook 10-pacemaker-install.yml
-
- start cluster (run on the target host)
# pcs cluster start --all
-
- iscsid error logs
Jan 27 00:01:45 centos81-1 kernel: connection4:0: detected conn error (1020)
Jan 27 00:01:45 centos81-1 iscsid[15455]: iscsid: Kernel reported iSCSI connection 3:0 error (1020 - ISCSI_ERR_TCP_CONN_CLOSE: TCP connection closed) state (3)
** see: https://www.thegeekdiary.com/how-to-modify-the-iscsi-initiator-id-in-linux/
# cd /etc/iscsi
# mv initiatorname.iscsi initiatorname.iscsi.bak
# echo "InitiatorName=`/sbin/iscsi-iname`" > initiatorname.iscsi
# systemctl restart iscsid.service