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 Local Storage LVM

Configuring Local Storage LVM

The built-in disks for installing the SAP HANA database can be configured during or after OS installation. The following describes how to configure the sdb partition after OS installation.

  1. Run the pvcreate /dev/sdb command to create a physical volume.

    [root@hw00001 ~]# pvcreate /dev/sdb
    Physical volume "/dev/sdb" successfully created

  2. Run the pvs command to view the created physical volumes.

    The physical volume /dev/sda2 was created during the OS installation, and /dev/sdb was the one newly created.

  3. Run the vgcreate vg_hana /dev/sdb command to create the vg_hana volume group on the /dev/sdb physical volume.

    [root@hw00001 ~]# vgcreate vg_hana /dev/sdb
    Volume group " vg_hana " successfully created

  4. Run the vgchange command to activate the volume group.

    1. A volume group is activated by default upon creation.
    2. Before mounting a logical volume you must activate it. Otherwise, problems will occur. You can add the command to the top part of the file, especially when SAN is used.
    hw00001:/hana/shared/hwcct # vgchange -a y vg_hana
    1 logical volume(s) in volume group "vg_hana" now active

  5. Run the vgs command to check volume groups.

    The VG vg_os was created during the OS installation, and vg_hana was the one newly created.

  6. Run the lvcreate command to create the lv_log, lv_data, and lv_shared LVs. The LV sizes 1 TB, 18 TB, and 7 TB used in this procedure are only examples.

    [root@hw00001 ~]# lvcreate -L 1T -n lv_log vg_hana
    Logical volume " lv_log " created
    [root@hw00001 ~]# lvcreate -L 18T -n lv_data vg_hana
    Logical volume " lv_data " created
    [root@hw00001 ~]# lvcreate -L 7T -n lv_shared vg_hana
    Logical volume " lv_shared " created

  7. Run the mkdir -p /hana/{shared,data,log} command to create a mount point.

    [root@hw00001 ~]# mkdir -p /hana/{shared,data,log}

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

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

  9. Run the vi /etc/fstab command to open the fstab file, and add logical volume mounting settings to the file.

    [root@hw00001 ~]# vi /etc/fstab
    # /etc/fstab
    # Created by anaconda on Thu Feb 23 16:39:35 2017
    # Accessible filesystems, by reference, are maintained under '/dev/disk'
    # See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
    /dev/mapper/vg_os-root  /                       ext4    defaults        1 1
    UUID=1bcc0f7d-fdc5-4314-996b-26a510cd95b8 /boot                   ext4    defaults        1 2
    /dev/mapper/vg_os-usr_sap /usr/sap                ext4    defaults        1 2
    /dev/mapper/vg_os-swap  swap                    swap    defaults        0 0
    /dev/mapper/vg_hana-lv_log    /hana/log       xfs  defaults  1 2
    /dev/mapper/vg_hana-lv_data   /hana/data     xfs  defaults  1 2
    /dev/mapper/vg_hana-lv_shared  /hana/shared  xfs  defaults  1 2

Updated: 2019-08-27

Document ID: EDOC1100004728

Views: 46167

Downloads: 139

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