Create New LVM Volume
To create a new LVM volume, you will need to list out all the necessary physical disks and be ready for inter-disk LVM volume creation. This section guides you to create a new and fresh LVM volume.
Creating LVM Volume
Creating LVM Volume
Once you're ready, you may begin to create the LVM volume.
Identify Disks through LSBLK
Identify Disks through LSBLK
The first thing to do is to identify your physical or encrypted disks using lsblk
command. You need to make sure everything is matching correctly because creating LVM Volume can destroy data on any mistaken disk.
Create LVM Disk
Create LVM Disk
To create disk, use the vgcreate
command. Example:
$ vgcreate lvmVG01 /dev/sdb /dev/sdc /dev/sdd
OR
$ vgcreate localstore /dev/mapper/sdb_crypt /dev/mapper/sdc_crypt /dev/mapper/sdd_crypt
Then wait its completion (not status output).
Query Disk Status
Query Disk Status
Once everything is done, you may proceed to query the LVM Disk status for double-checking.
That's all for creating new LVM volume.