Formatting a BMS (physical.kl1.2xlarge.hba) Disk

Scenarios

The data volumes of SAP HANA nodes can be used only after they are formatted and then attached to required directories.

This section describes how to format a BMS (physical.kl1.2xlarge.hba) disk.

Procedure

  1. Log in to the jump host. Ensure that user root and the key file are used for authentication. Then, use SSH to switch to SAP HANA nodes.
  2. Use LVM to logically divide local data disks (13 x 3.2 TB SAS) into a log volume, a data volume, and a shared volume.

    View the disk information and find the drive letter, for example, /dev/sdb.

    Run the following commands to partition the disk:

    parted /dev/sdb mklabel gpt y

    parted /dev/sdb mkpart primarty 0% 100%

  3. Run the following command to create a physical volume:

    pvcreate /dev/sdb1

  4. Run the following command to create a volume group:

    vgcreate vghana /dev/sdb1

  5. Run the following command to query the available capacity of the volume group:

    vgdisplay vghana

  6. Run the following commands to create logical volumes:

    lvcreate -n lvhanalog -L 512G vghana

    lvcreate -n lvhanadata -L 12T vghana

    lvcreate -n lvhanashared -L 4T vghana

  7. Run the following commands to format the logical volumes and attach them to the corresponding directories:

    mkfs -t xfs /dev/mapper/vghana-lvhanalog

    mkfs -t xfs /dev/mapper/vghana-lvhanadata

    mkfs -t xfs /dev/mapper/vghana-lvhanashared

    mkdir -p /hana/log

    mkdir -p /hana/data

    mkdir -p /hana/shared

    mount /dev/mapper/vghana-lvhanalog /hana/log

    mount /dev/mapper/vghana-lvhanadata /hana/data

    mount /dev/mapper/vghana-lvhanashared /hana/shared

  8. Run the following commands to write disk attaching relationships into the /etc/fstab file:

    /dev/mapper/vghana-lvhanalog /hana/log xfs defaults 0 0

    /dev/mapper/vghana-lvhanadata /hana/data xfs defaults 0 0

    /dev/mapper/vghana-lvhanashared /hana/shared xfs defaults 0 0

  9. Format the data volume of the other BMS.