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.
Once you're ready, you may begin to create the LVM volume.
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.
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).
Once everything is done, you may proceed to query the LVM Disk status for double-checking.
That's all for creating new LVM volume.