Skip to main content

LVM

Create a volume group

# vgcreate [OPTIONS] VG_new PV ...
vgcreate --autobackup y ceph0 /dev/disk/by-id/nvme-INTEL_SSDPE2KX020T8_PHLJ1060024S2P0BGN

Create a thin pool

# lvcreate --type thin-pool --size Size[m|UNIT] VG [COMMON_OPTIONS]
lvcreate --type thin-pool --extents 100%FREE ceph0 --name thinpool

Create a thin LV in a thin pool

# lvcreate -V|--virtualsize Size[m|UNIT] --thinpool LV VG [COMMON_OPTIONS]
lvcreate --virtualsize 180Gib --thinpool thinpool ceph0 --name metadata0
lvcreate --virtualsize 180Gib --thinpool thinpool ceph0 --name metadata1