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


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


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

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).
Configuring the Multipath Service

Configuring the Multipath Service

If external storage is used, you need to install and configure the multipath service. Pay attention to the following when configuring the multipath service:

  • If log volumes use SSD cards during multipath configuration, two LUNs as well as local disks are mapped in the /dev/disk/by-id directory, and two WWIDs are generated. When editing the /etc/multipath.conf file, you only need to search for and configure the LUNs and aliases of the data and shared volumes.
  • If log volumes do not use SSD cards, three LUNs as well as local disks are mapped in the /dev/disk/by-id directory, and three WWIDs are generated. When editing the /etc/multipath.conf file, you need to search for and configure the LUNs and aliases of the data, shared, and log volumes.
  1. Run the systemctl enable multipathd command to configure the DM service to auto-startup upon power-on.

    #systemctl enable multipathd

  2. Create the /etc/multipath.conf file.

    • For SLES 12 SP1 for SAP, you can run the following command to copy a template to create the file:
      HW00001:~ # cp /usr/share/doc/packages/multipath-tools/multipath.conf.synthetic  /etc/multipath.conf
    • For SLES 12 SP2 for SAP, you need to manually create the file because the preceding path does not exist.

  1. Query the WWIDs of local RAID storage devices and external SAN storage LUNs.

    1. Run the cd /dev/disk/by-id command.
    2. Run the ls –l /dev/disk/by-id command to check which disks are in SAN storage LUNs and which are in local RAID arrays.

    3. Run the fdisk –l command to determine which disks are in the SAN storage LUNs and which disks are in the local storage RAID array.

      Local disks have partitions. It can be determined that sda is a local disk, and the WWID of the local disk is 36e0247f95eef70022090c84d27c3f694.

      The rest disks dm-0, dm-1, and dm-2 have no partitions, indicating that these are the LVMs created during OS installation. It can be determined that sdb, sdc, and sdd are mapped LUNs, and their WWIDs are 3648fd8e100c44d8900138eee00000000, 3648fd8e100c44d8900139fed00000001, and 3648fd8e100c44d890013d8b800000002 respectively.

    4. Log in to the OceanStor DeviceManager WebUI, choose Huawei Storage > Provisioning > LUN, and select a LUN to view WWID and LUN mapping.

      This document uses LUN_log as an example.

    5. Click Properties. In the displayed dialog box, you can view the local WWN and compare it with the WWID of the mapped LUN, and determine that sdb corresponds to LUN_log. Use the same method to determine the mappings of other LUNs.

    6. Open the multipath.conf file and add the array information of the OceanStor 2600 V3 to the file.
      HW00001:~ # vi /etc/multipath.conf
      # Blacklist. The local RAID array does not require multipath, and therefore it is added to the blacklist.
      blacklist {
                 wwid 3600508e0000000008d8994c8db7f6b01          
      # Multipath information
      multipaths {
      # WWID and alias of the log volume
                 multipath {
                            wwid 3648fd8e100c44d8900138eee00000000
                            alias hana_log
      # WWID and alias of the data volume
                 multipath {
                            wwid 3648fd8e100c44d8900139fed00000001
                            alias hana_data
      # WWID and alias of the shared volume
                 multipath {
                            wwid 3648fd8e100c44d890013d8b800000002
                            alias hana_shared
      # Device information
      devices {
                 device {
                            verndor"HUA WEI "
                            product"XSG1 "
                            path_grouping_policy group_by_prio
                            getuid_callout  "/lib/udev/scsi_id --whitelisted --device=/dev/%n"
                            prio alua
                            path_checker tur
                            path_selector "round-robin 0"
                            failback immediate
                            rr_min_io 1
    7. Run the following commands to restart the multipath service.
      # systemctl restart multipathd
      # systemctl status multipathd
    8. Run the command to search for devices.
      HW00001:~ #
      /usr/bin/ line 647: [: 1.11: integer expression expected
      Host adapter 0 (megaraid_sas) found.
      Host adapter 1 (ahci) found.
      Host adapter 2 (ahci) found.
      Host adapter 3 (ahci) found.
      Host adapter 4 (ahci) found.
      Host adapter 5 (ahci) found.
      Host adapter 6 (ahci) found.
      Host adapter 7 (qla2xxx) found.
      Host adapter 8 (qla2xxx) found.
    9. Run the following multipath commands to load the LUNs:
      HW00001:~ # multipath -F
      HW00001:~ # multipath -v2
      HW00001:~ # multipath -ll
    10. Run the following commands to check LUN WWIDs:
      HW00001:~ # ll /dev/mapper
      HW00001:~ # ll /dev/disk/by-id/
    11. Update the WWID information in the multipath.conf file.

      Compare the scanned LUN information with that in multipath.conf and update the scanned information to the multipath.conf file.

    12. Run the multipath reload command to reload the multipath service.
      HW00001:~ # multipath reload
    13. Run the mkfs.xfs command to create the XFS file system for the DM.

      Run the ll /dev/disks/by-id/ command to find out the preceding three LUNs corresponding to the DM devices, for example, dm-3, dm-4, and dm-5.

      mkfs.xfs -f -d agcount=60 /dev/dm-3
      mkfs.xfs -f -d agcount=60 /dev/dm-4
      mkfs.xfs -f -d agcount=60 /dev/dm-5

Updated: 2019-08-27

Document ID: EDOC1100004728

Views: 46583

Downloads: 145

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