Bernd Finger
Bernd Finger
Copy of https://github.com/linux-system-roles/sap-hana-preconfigure/issues/124#issuecomment-750316413 (comment by [berndfinger](https://github.com/berndfinger)): The role does not use the ksm service at all but uses file based configuration as per SAP note 2777782 v17 (RHEL 8) and...
Copy of https://github.com/linux-system-roles/sap-hana-preconfigure/issues/124#issuecomment-750343224 (comment by [berndfinger](https://github.com/berndfinger)): As per https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/virtualization_tuning_and_optimization_guide/chap-ksm#sect-KSM-The_KSM_service , the ksm service is part of package qemu-kvm. In RHEL 7 and RHEL 8, as per: $ yum whatprovides /usr/lib/systemd/system/ksm.service...
To be on the safe side, we could just disable services ksm and ksm.tuned in case the corresponding package is installed or these services are available.
No further comment or related request after the last update on 28-Jan-2022 -> backlog
@rob0d @sean-freeman @remrozk After merging https://github.com/sap-linuxlab/community.sap_install/pull/748, what are your thoughts about the alternative approach suggested here (defaulting to `sap_swpm_db_system_password` if `sap_swpm_db_schema_abap_password` is undefined?
One more change must be done for NetApp, see https://github.com/sap-linuxlab/community.sap_install/issues/196#issuecomment-2236742969.
See also https://access.redhat.com/solutions/6535871 - `How do I configure TCP maximum slot table entries to 128 for RHEL 7/8 NFS clients?` .
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...
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`.
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`.