cyburdine/ December 23, 2017/ Uncategorized

Below is a quick cheatsheet that shows how to quickly create an LVM partition.


fdisk /dev/sdb
create a new partition (n)
change the partition type to be Linux LVM (t 8e)
write changes (w)


pvcreate /dev/sdbX
vgcreate vg /dev/sdbX
lvcreate -l +100%FREE -n opt vg
mkfs.xfs /dev/vg/opt