Ravi Sir's Cards › AWS
Add storage with LVM
This revision card explains Add storage with LVM. It starts from the need that see disks. It describes disk to pool. The how-to section notes make a volume. An example on the card is grow online.
Read card text
What this card says
Why do we need it?
See disks.
lsblk -f
What is it?
Disk to pool.
pvcreate /dev/sdb; vgcreate vg01 /dev/sdb
How to do it
Make a volume.
lvcreate -L 20G -n data vg01
Example
Grow online.
lvextend -r -L +10G vg01/data