Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix azure sbd stonith-timeout and add concurrent-fencing #290

Merged
merged 1 commit into from
Nov 11, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions ansible/playbooks/tasks/azure-cluster-hana.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
InstanceNumber="{{ sap_hana_install_instance_number }}"
when: hana_topology_resource | length == 0

- name: Set stonith-timeout [sdb]
- name: Set stonith-timeout [sbd]
ansible.builtin.command:
cmd: crm configure property stonith-timeout=144
when:
Expand All @@ -51,13 +51,20 @@
cmd: crm configure property stonith-timeout=900
when:
- stonith_timeout | length == 0
- use_sbd | bool
- not use_sbd | bool

- name: Enable stonith
ansible.builtin.command:
cmd: crm configure property stonith-enabled=true
when: stonith_enabled != 'true'

# see https://learn.microsoft.com/en-us/azure/sap/workloads/high-availability-guide-suse-pacemaker?tabs=msi#create-a-fencing-device-on-the-pacemaker-cluster
- name: Enable concurrent fencing (native fencing)
ansible.builtin.command:
cmd: crm configure property concurrent-fencing=true
when:
- not use_sbd | bool

- name: Create HANA topology clone
ansible.builtin.command:
cmd: >-
Expand Down
Loading