Configuring the global.ini File

Scenarios

Obtain the global.ini file from the /hana/shared/ directory and modify the Storage HA configuration, Persistence configuration, and Communication parts in the file.

Procedure

  1. Log in to the jump host and use SSH to switch to the active SAP HANA BMS.
  2. View world wide names (WWNs) of volumes.

    Run the following command to view the WWNs of the two log volumes (512 GB each) and the two data volumes (6 TB each):

    upadmin show vlun

    This operation also needs to be performed on other SAP HANA nodes to check WWNs of volumes. WWNs of the four volumes on all nodes should be the same.

  3. Download the SAP HANA installation package.

    1. On the CLI, run the following commands to download SAP HANA installation packages:

      wget https://obs-sap.obs.myhwclouds.com/hana/software/sps12/51052383_part1.exe -P /hana/shared

      wget https://obs-sap.obs.myhwclouds.com/hana/software/sps12/51052383_part2.rar -P /hana/shared

      wget https://obs-sap.obs.myhwclouds.com/hana/software/sps12/51052383_part3.rar -P /hana/shared

    2. Run the following command to decompress the installation package:

      unrar x 51052383_part1.exe

  4. Prepare for the fcV3Client.py file.

    1. Download the fcV3Client.py file.

      wget https://obs-sap.obs.myhwclouds.com/hana/cfgandscript/scale_out_script.zip -P /hana/shared

    2. Switch to the /hana/shared/ directory and decompress the package to obtain the fcV3Client.py file.

      cd /hana/shared

      unzip scale_out_script.zip

    3. Copy the fcV3Client.py file to the /hana/shared/ directory.
    4. Copy the client.py file to the /hana/shared/ directory.

      Run the find /hana/shared -name client.py command to view the directory where the client.py file is stored.

  5. Configure the global.ini file.

    1. Copy the global.ini file to the /hana/shared/ directory.

      cp /hana/shared/scale_out_script/global.ini /hana/shared

    2. Configure the global.ini file.

      vi /hana/shared/global.ini

    3. Configure Storage HA configuration.

      Set ha_provider to fcV3Client and wwid of each partition to WWNs queried in 2. partition_*_log__mountoptionspartition_*_log__mountoptions is a mount parameter.

      An example is provided as follows:
      ########################################################################### 
      # Storage HA configuration 
      ###########################################################################
      # . short_desc 
      # storage HA configuration 
      [storage] 
      # .short_desc 
      # name of python HA provider script 
      ha_provider = fcV3Client
      ha_provider_path = /hana/shared/ 
      
      # these parameters name the WWIDs of the devices for each partition/usage_type combination  
      # if you have more nodes, add your LUNs here.  
      # for proper usage, replace the '...' with specified WWID in your system. 
      partition_*_*__prType = 5
      partition_*_data__mountoptions = -o noatime,nodiratime,wsync       
      partition_*_log__mountoptions = -o noatime,nodiratime,wsync
      partition_1_data__wwid = 680d4a51008ea4d90f0948f90000002d 
      partition_1_log__wwid = 680d4a51008ea4d9023c87b400000018 
      partition_2_data__wwid = 680d4a51008ea4d90f09748c0000002e 
      partition_2_log__wwid = 680d4a51008ea4d9023d394400000019 
    4. Configure Persistence configuration.

      Change to the actual SID of the SAP HANA database, for example, ANA.

      An example is provided as follows:

      ########################################################################### 
      # Persistence configuration 
      ########################################################################### 
      [persistence] 
      basepath_datavolumes=/hana/data/ANA/ 
      basepath_logvolumes=/hana/log/ANA/ 
      
      basepath_shared=yes
    5. Configure Communication.

      Change the IP addresses and hostnames in the following information to the actual IP addresses and hostnames.

      An example is provided as follows:

      ########################################################################### 
      # Communication 
      ########################################################################### 
      [communication] 
      listeninterface = .global 
      
      [internal_hostname_resolution] 
      10.0.2.2 = hana001 
      10.0.2.3 = hana002 
      10.0.2.4 = hana003