No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

Huawei SAP HANA Appliance Single Node Installation Guide (KunLun 9008 and 9016) 09

Rate and give feedback :
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
Installing Patch Packages and Configuring Parameters

Installing Patch Packages and Configuring Parameters

Installing Patch Packages

  1. Configure a yum source.

    1. Mount the image file using the KVM. (You can also upload the image file to the server using xftp.)

    2. Run the mkdir -p /mnt/cdrom command to create the cdrom directory in /mnt for mounting the ISO file.
      [root@hw00001 ~]# mkdir -p /mnt/cdrom
    3. Run the mount /dev/sr0 /mnt/cdrom/ command to mount the CD-ROM drive to the /mnt/cdrom directory.
      The CD-ROM drive directory sr0 is used in this example. Change it as required.
      [root@hw00001 ~]# mount /dev/sr0 /mnt/cdrom/
      mount: block device /dev/sr0 is write-protected, mounting read-only
    4. Run the vi /etc/yum.repos.d/rhel.repo command to open rhel.repo file and configure the yum source.
      [root@hw00001 yum.repos.d]# vi /etc/yum.repos.d/rhel.repo
      [rhel-rpms]
      name=Red Hat Enterprise Linux $releasever - $basearch - Source
      baseurl=file:///mnt/cdrom
      enabled=1
      gpgcheck=0
      gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release

  1. Download the following patch packages from the official Red Hat website:

    • resource-agents-sap-hana-3.9.5-54.el7_2.10.x86_64
    • tuned-profiles-sap-hana-2.5.1-4.el7_2.3.noarch
    • tuned-2.5.1-4.el7_2.3.noarch
    • tuned-utils-2.5.1-4.el7_2.3.noarch
    • resource-agents-3.9.5-54.el7_2.10.x86_64 (1)
    • systemd-libs-219-19.el7_2.9.x86_64
    • systemd-python-219-19.el7_2.9.x86_64
    • systemd-219-19.el7_2.9.x86_64
    • systemd-sysv-219-19.el7_2.9.x86_64
    • libgudev1-219-19.el7_2.9.x86_64
    • uuid-1.6.2-26.el7.x86_64
    • compat-libstdc++-33-3.2.3-72.el7.x86_64
    • libstdc++-4.8.5-4.el7.x86_64
    • libuuid-2.23.2-26.el7.x86_64
    • uuidd-2.23.2-26.el7.x86_64

  1. Run the yum install -y tuned tuned-utils libtool-ltdl ntp command to install the patch packages.

    yum install -y tuned tuned-utils libtool-ltdl ntp

  2. Use xftp to upload the patch packages to the /home directory.

    1. Obtain the xftp installation package and install it.
    2. Use Xshell to log in to the IP address of the server OS management port.
    3. Click the file transfer icon, as shown in the following figure.

    4. Double-click the upgrade file to be uploaded in the left pane. The file is uploaded and displayed in the root directory in the right pane.

      This procedure uses an image file as an example to show the file transfer process. If you want to upload a file to the /home directory, select the /home directory in the right pane.

  3. Run the cd /home command and then the yum localinstall -y *.rpm command to install the downloaded patch packages.

    cd /home
    yum localinstall -y *.rpm

Setting SAP HANA Parameters

  1. Run the following command to set tuned to profile sap.

    # yum install tuned-profiles-sap-hana
    # systemctl start tuned
    # systemctl enable tuned
    # tuned-adm profile sap-hana

  1. Run the vi /etc/sysctl.d/sap_hana.conf command to open the sap_hana.conf file. Add kernel.numa_balancing = 0 to the file to disable auto-numa balancing. Then run the sysctl -p /etc/sysctl.d/sap_hana.conf command for the configuration to take effect.

    [root@hw00001 ~]#vi /etc/sysctl.d/sap_hana.conf
    kernel.numa_balancing = 0
    [root@hw00001 ~]#sysctl -p /etc/sysctl.d/sap_hana.conf

  1. Run the systemctl stop numad and systemctl disable numad commands to disable numad.

    [root@hw00001 ~]#systemctl stop numad
    [root@hw00001 ~]#systemctl disable numad

  1. Run the echo never > /sys/kernel/mm/transparent_hugepage/enabled command to disable transparent huge page.

    [root@hw00001 ~]#echo never > /sys/kernel/mm/transparent_hugepage/enabled

  1. Run the vi /etc/default/grub command to open the grub file and insert the following content to the GRUB_CMDLINE_LINUX line.

    [root@hw00001 ~]# vi /etc/default/grub
    GRUB_TIMEOUT=5
    GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)"
    GRUB_DEFAULT=saved
    GRUB_DISABLE_SUBMENU=true
    GRUB_TERMINAL_OUTPUT="console"
    GRUB_CMDLINE_LINUX="crashkernel=auto rhgb quiet efi=old_map transparent_hugepage=never intel_idle.max_cstate=1 processor.max_cstate=1 nowatchdog nosoftlockup rcupdate.rcu_cpu_stall_timeout=600 rcupdate.rcu_cpu_stall_suppress=1"
    GRUB_DISABLE_RECOVERY="true"

  1. Run the grub2-mkconfig -o /boot/efi/EFI/redhat/grub.cfg command to generate a new grub file.

    [root@hw00001 ~]#grub2-mkconfig -o /boot/efi/EFI/redhat/grub.cfg

  1. Run the vi /etc/sysconfig/selinux command and change SELINUX=enforcing to SELINUX=disabled to disable SELINUX.

    [root@hw00001 ~]# vi /etc/sysconfig/selinux
    
    # This file controls the state of SELinux on the system.
    # SELINUX= can take one of these three values:
    #     enforcing - SELinux security policy is enforced.
    #     permissive - SELinux prints warnings instead of enforcing.
    #     disabled - No SELinux policy is loaded.
    SELINUX=disabled
    # SELINUXTYPE= can take one of three two values:
    #     targeted - Targeted processes are protected,
    #     minimum - Modification of targeted policy. Only selected processes are protected.
    #     mls - Multi Level Security protection.
    SELINUXTYPE=targeted

  1. Run the vi /etc/systemd/logind.conf command to edit the file and insert RemoveIPC=no.

    [root@hw00001 ~]#vi /etc/systemd/logind.conf
    RemoveIPC=no

  2. Run the systemctl restart systemd-logind.service command for the configuration to take effect.

    [root@hw00001 ~]#systemctl restart systemd-logind.service

  3. Run the following commands to generate SAP HANA links:

    ln -s /usr/lib64/libldap-2.3.so.0 /usr/lib64/libldap.so.199
    ln -s /usr/lib64/liblber-2.3.so.0 /usr/lib64/liblber.so.199
    ln -s /usr/lib64/libssl.so.0.9.8e /usr/lib64/libssl.so.0.9.8
    ln -s /usr/lib64/libssl.so.1.0.1e /usr/lib64/libssl.so.1.0.1
    ln -s /usr/lib64/libcrypto.so.0.9.8e /usr/lib64/libcrypto.so.0.9.8
    ln -s /usr/lib64/libcrypto.so.1.0.1e /usr/lib64/libcrypto.so.1.0.1

  4. Run the vim /etc/systemd/system.conf command to open the system.conf file and change the file process waiting time to 900 seconds. Then restart the server for the configuration to take effect.

  5. Check that the systemd version is systemd-219-19.el7_2.4 or later.
  6. If the following error information is displayed when the database is started, comment out Defaults requiretty in the /etc/sudoers file.

    "/etc/sudoers mismatch for required permissions of Storage Connector" when using hdb_ha.fcClientLVM"

  7. If the error message "ERROR: ld.so: object '/opt/rh/SAP/lib64/compat-sap-c++.so' from LD_PRELOAD cannot be preloaded: ignored" is displayed during SAP HANA 1 installation, ignore this message. If you want to clear this message, perform the following steps:

    1. In the home directory of the database user, delete the following line from the hdbenv.csh file:
      setenv LD_PRELOAD /opt/rh/SAP/lib64/compat-sap-c++.so
    2. In the home directory of the database user, delete the following line from the hdbenv.sh file:
      LD_PRELOAD=/opt/rh/SAP/lib64/compat-sap-c++.so

  8. If the error message Cannot access required library '/opt/rh/SAP/lib64/compat-sap-c++-5.so': No such file or directory is displayed during the installation of SAP HANA 2, run the yum install compat-sap-c++-5 command to install the compat-sap-c++-5 software package with the latest version of compat-sap-c++-5-5.3.1-10.

    [root@hw00001 ~]# yum install compat-sap-c++-5

  9. If the database fails to be started, and the error information /etc/sudoers mismatch for required permissions of storage connector is displayed, comment out Defaults requiretty from the /etc/sudoers file.

    # Defaults requiretty

  10. Add fs.aio-max-nr=196608 to the sysctl.con file and run :wq to save the modification and exit.

    [root@hw00001 ~]vim /etc/sysctl.conf

  11. Run the sysctl -p /etc/sysctl.conf command to restart the server for the configuration to take effect.

    [root@hw00001 ~] sysctl -p /etc/sysctl.conf

Translation
Download
Updated: 2019-06-17

Document ID: EDOC1100004728

Views: 37084

Downloads: 122

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Share
Previous Next