Skip to content

Commit

Permalink
sap_hana_preconfigure: Ensure the absence of two NetApp NFS parameters
Browse files Browse the repository at this point in the history
... in file __sap_hana_preconfigure_etc_sysctl_saphana_conf.

Solves issue sap-linuxlab#814.

Signed-off-by: Bernd Finger <[email protected]>
  • Loading branch information
berndfinger committed Jul 19, 2024
1 parent 6e766fa commit 6b962bf
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions roles/sap_hana_preconfigure/tasks/sapnote/3024346.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,22 @@
loop_control:
loop_var: line_item

# Due to sysctl config file precedence rules, it can happen that previous entries in
# __sap_hana_preconfigure_etc_sysctl_saphana_conf remain in effect even after setting
# different parameter values in __sap_hana_preconfigure_etc_sysctl_netapp_hana_conf.
# So we have to ensure that those duplicate entries are not present.
# See also https://github.com/sap-linuxlab/community.sap_install/issues/196.
- name: Ensure kernel tunables for NetApp NFS are not in file '{{ __sap_hana_preconfigure_etc_sysctl_saphana_conf }}'
ansible.builtin.lineinfile:
path: "{{ __sap_hana_preconfigure_etc_sysctl_saphana_conf }}"
regexp: ^{{ line_item }}
state: absent
with_items:
- 'net.core.wmem_max'
- 'net.core.rmem_max'
loop_control:
loop_var: line_item

# Note: The sole purpose of the following two tasks is to collect the current value(s) of the kernel parameters
# in __sap_hana_preconfigure_etc_sysctl_netapp_hana_conf so that the "Reload kernel parameters from file ..." task
# can correctly report its 'changed' state. See also https://github.com/sap-linuxlab/community.sap_install/issues/752 .
Expand Down

0 comments on commit 6b962bf

Please sign in to comment.