sap-linuxlab / community.sap_install

Automation for SAP - Collection of Ansible Roles for various SAP software installation
Apache License 2.0
52 stars 55 forks source link

sap_hana_preconfigure: two kernel parameters for NetApp are not set correctly #196

Open berndfinger opened 2 years ago

berndfinger commented 2 years ago

NetApp recommends in SAP note 3024346 to set net.core.rmem_max and net.core.wmem_max in file /etc/sysctl.d/91-NetApp-HANA.conf. The role sap_hana_preconfigure typically sets these parameters to a lower value as per SAP note 2382421, and uses the file /etc/sysctl.d/sap_hana.conf to store these values. SAP note 2382421 recommends to use file /etc/sysctl.conf.

As per the sysctl precedence rules described in "man sysctl.d":

berndfinger commented 2 years ago

The role however does not set the two parameters net.core.rmem_max and net.core.wmem_max in /etc/sysctl.d/sap_hana.conf if sap_hana_preconfigure_use_netapp_settings_nfs is set to true. So the error can happen if the role is first executed with the default for sap_hana_preconfigure_use_netapp_settings_nfs, which is false, and then with sap_hana_preconfigure_use_netapp_settings_nfs set to true.

berndfinger commented 1 month ago

The solution appears to be not to set net.core.rmem_max and net.core.wmem_max in /etc/sysctl.d/sap_hana.conf if sap_hana_preconfigure_use_netapp_settings_nfs is set to true.

berndfinger commented 1 month ago

However, it still can happen that these entries are in file /etc/sysctl.d/sap_hana.conf. So the role should probably remove net.core.rmem_max and net.core.wmem_max if sap_hana_preconfigure_use_netapp_settings_nfs is set to true.