Creating the physical volume on the multipath disk

Deploying an HCP VM System on KVM

Version
9.6.x
Audience
anonymous
Part Number
MK-94HCP009-07
  1. Enter the following command to create a physical volume on a multipath disk:
    pvcreate /dev/mapper/multipath-disk-name For example: pvcreate /dev/mapper/mpatha
  2. Enter the following command to create a volume group:
    vgcreate volume-group-name /dev/mapper/multipath-disk-name For example: vgcreate mpathafc1 /dev/mapper/mpatha
  3. Enter the following command to create a logical volume on the volume group you created in the previous step:
    lvcreate -n lv-name -L 1T volume-group-name
    For example:
    lvcreate -n kvmfc1 -L 1023G mpathafc1
  4. Enter the following command to create an ext4 file system on the multipath disk logical volume:
    mkfs.ext4 /dev/mapper/file-system-path For example: mkfs.ext4 /dev/mapper/mpathafc1-kvmfc1
  5. Enter the following command to verify that the physical volume is created:
    pvdisplay
  6. Enter the following command to verify that the volume group you created is listed:
    vgdisplay
  7. Enter the following command to verify that the logical volume you created is listed:
    lvdisplay