How to Create LVM & Thin LVM

lvm and thin lvm

lvm and thin lvm

Before we try to create LVM and thin LVM we should know common abbreviations you should know:
LVM = Logical Volume Manager
PV = Physical Volumes
VG = Volume Groups
LV = Logical Volumes

Let say you have single disk /dev/sdb
first, create a PV

pvcreate /dev/sdb

next, create a VG

vgcreate vg_name /dev/sdb

if you have multiple disks you can combine them into single VG

vgcreate vg_name /dev/sdb /dev/sdc /dev/sdd

last, you can create LVM or Thin LVM, example for LVM

lvcreate -n lv_centos -l 100%FREE vg_name

or you can create Thin LVM:

lvcreate --size 500G --type thin-pool --thinpool my_thin_pool_name vg_name

 

See also  Enable or Disable SELinux

You May Also Like

About the Author: thehoster