Adapted from these sites:
Red Hat
Red Hat 2
MIT
How to Geek
change | create | display | extend | reduce | remove | resize | s | |
pv | pvchange | pvcreate | pvdisplay | pvextend | pvreduce | pvremove | pvresize | pvs |
lv | lvchange | lvcreate | lvdisplay | lvextend | lvreduce | lvremove | lvresize | lvs |
vg | vgchange | vgcreate | vgdisplay | vgextend | vgreduce | vgremove | vgresize | vgs |
pv: physical volume (actual disk drive)
lv: logical volume, created from a part of or a single pv
vg: volume group, collection of one or more lv’s
change: change parameters
create: make a new one
display: list the current ones
extend: make it bigger
reduce: make it smaller
remove: make it go poof
resize: change the size
s: display information
Steps to make a new vg:
pvcreate /dev/sdx1
vgcreate VGNAME /dev/sdx1
lvcreate -L sizeGB -n <lvname> <vgname>
Steps to remove a vg:lvreduce <lvname>
lvremove <lvname>
vgremove <vgname>
pvremove <pvname>