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) 11

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).
Creating LVMs

Creating LVMs

After the multipath service is configured, LVMs must be created for the mapped LUNs. LVM aliases can be checked in /dev/mapper. If the log volumes use SSD cards, create LVMs only on the mapped data and shared volumes. If the log volumes do not use SSD cards, perform the following steps to create LVMs for all volumes.

  1. Run the following command to check the name of the device for which physical volumes are to be created.

    [root@hw00001 ~]# cd /dev/mapper
    [root@hw00001 mapper]# ll

  1. Run the pvcreate command to create three physical volumes.

    [root@hw00001 ~]# pvcreate /dev/mapper/hana_data
    Physical volume "/dev/mapper/hana_data" successfully created
    [root@hw00001 ~]# pvcreate /dev/mapper/hana_log
    Labels on physical volume "/dev/mapper/hana-log" successfully wiped
    [root@hw00001 ~]# pvcreate /dev/mapper/hana_shared
    Labels on physical volume "/dev/mapper/hana_shared" successfully wiped

  1. Run the pvs command to view the created physical volumes.
  2. Run the vgcreate commands to create VGs:

    [root@hw00001 ~]# vgcreate vg_data /dev/mapper/hana_data
    Volume group " vg_data " successfully created
    [root@hw00001 ~]# vgcreate vg_log /dev/mapper/hana_log
    Volume group " vg_log" successfully created
    [root@hw00001 ~]# vgcreate vg_shared /dev/mapper/hana_shared
    Volume group " vg_shared " successfully created

  1. Run the vgs command to check the created VGs.
  2. Run the lvcreate command to create LVs. Change the LV sizes based on the configuration scheme.

    [root@hw00001 ~]# lvcreate -L 1T -n lv_log vg_log
    Logical volume " lv_log " created
    [root@hw00001 ~]# lvcreate -L 24T -n lv_data vg_data
    Logical volume " lv_data " created
    [root@hw00001 ~]# lvcreate -L 8T -n lv_shared vg_shared
    Logical volume " lv_shared " created

  1. Run the mkdir command to create a mount point.

    # mkdir –p /hana/shared
    # mkdir –p /hana/data
    # mkdir –p /hana/log

  1. Run the mkfs.xfs command to format the LVs.

    [root@hw00001 ~]# mkfs.xfs /dev/mapper/vg_log-lv_log
    [root@hw00001 ~]# mkfs.xfs /dev/mapper/vg_data-lv_data
    [root@hw00001 ~]# mkfs.xfs /dev/mapper/vg_shared-lv_shared

  1. Run the mount command to mount the storage.

    #mount -o noatime,nodiratime /dev/mapper/vg_log-lv_log  /hana/log
    #mount -o noatime,nodiratime /dev/mapper/vg_data-lv_data   /hana/data
    #mount -o noatime,nodiratime /dev/mapper/vg_shared-lv_shared   /hana/shared

  1. Run the vim /etc/fstab command. Press i to enter the editing mode and add the following information (If the log volumes use SSD cards, you do not need to mount the log volume).

  2. Press Esc and run :wq to save the configuration and exit.
Updated: 2019-11-07

Document ID: EDOC1100004728

Views: 55216

Downloads: 160

Average rating:
This Document Applies to these Products

Related Version

Related Documents

Previous Next