Last active
March 4, 2019 17:38
-
-
Save jclaret/52bbc8a1f4f04b099712b0044a809587 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RH Docs: | |
======== | |
https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html-single/high_availability_add-on_reference/ | |
https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html-single/high_availability_add-on_overview/ | |
https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html-single/high_availability_add-on_administration/ | |
VMWARE FENCING | |
============== | |
https://access.redhat.com/solutions/82333 | |
https://access.redhat.com/solutions/917813 | |
RHEVM FENCING | |
============= | |
https://access.redhat.com/discussions/3098051 | |
https://access.redhat.com/solutions/3349841 | |
https://access.redhat.com/solutions/3607691 | |
subscription-manager repos --disable=* --enable=rhel-ha-for-rhel-7-server-rpms --enable=rhel-7-server-rpms | |
yum install firewalld -y | |
systemctl enable firewalld | |
systemctl start firewalld | |
firewall-cmd --permanent --add-service=high-availability | |
firewall-cmd --reload | |
yum install pcs fence-agents-all -y | |
systemctl enable pcsd | |
systemctl start pcsd | |
echo password | passwd --stdin hacluster | |
pcs cluster auth clu01.local.net clu02.local.net clu03.local.net | |
pcs cluster setup --start --enable --name cluster0 clu01.local.net clu02.local.net clu03.local.net | |
pcs cluster enable --all | |
pcs cluster status | |
pcs status | |
RHEVM FENCING | |
============= | |
fence_rhevm -o status --ssl --ssl-insecure -a engine.local.net --username=admin@internal --password=password --ipport=443 -n clu03 -z --disable-http-filter | |
pcs -f stonith_cfg stonith create rhev-fence fence_rhevm ipaddr=engine.local.net ipport=443 ssl_insecure=1 ssl=1 inet4_only=1 \ | |
login=admin@internal \ | |
passwd= PASSWORD \ | |
pcmk_host_map="clu01:clu01.local.net;clu02:clu02.local.net;clu03:clu03.local.net" \ | |
pcmk_host_check=static-list \ | |
pcmk_host_list="clu01.local.net,clu02.local.net,clu03.local.net" \ | |
power_wait=3 op monitor interval=90s | |
pcs -f stonith_cfg property set stonith-enabled=true | |
pcs -f stonith_cfg property set stonith-action=reboot | |
pcs -f stonith_cfg property set stonith-timeout=120s | |
pcs -f stonith_cfg property set no-quorum-policy=ignore | |
pcs cluster cib-push stonith_cfg | |
pcs stonith show rhev-fence | |
pcs stonith show | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment