- 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
- 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
- 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
- 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
- Enter the following command to verify that the physical volume is created:
pvdisplay
- Enter the following command to verify that the volume group you created is listed:
vgdisplay
- Enter the following command to verify that the logical volume you created is listed:
lvdisplay