basically allows you to span partitions over several disks/partitions as well as resize it.

it will take some practice to get used to it… nicely done video! Thanks Urban Pinguin 🙂

need more space 😀

under windows this is called „dynamic partitions“. They can be resized via compmgmt.msc gui.

apt-get install lvm2; # install needed software

fdisk /dev/sdc; # create two new partitions sdc1 and sdc2 (you will have to do this twice)
p (primary)
(start cylinder as default just hit enter)
+10G (each 10GByte in size)
t (type will be...)
8e (lvm)
w (write and quit)

pvcreate /dev/sdc1
pvcreate /dev/sdc2

vgcreate  vg1 /dev/sdc1 /dev/sdc2
lvcreate -L 1000M -n lvm vg1

mkfs.ext3 /dev/vg1/lvm -L "TestLVM"

mkdir -p /mnt/vg1/lvm1

mount /dev/vg1/lvm /mnt/vg1/lvm1

cd /mnt/vg1/lvm1

# now lets fill up that space
dd if=/dev/zero of=1GBybe.testfile bs=64M count=16 iflag=fullblock; # generate 1GByte test file that contains zeros (faster than random)

# will abort with no space left on device - need more, more! :-D (it seems like some people (all?) can never be rich enough. :( (there should be a limit like 1 Billion USD the rest is automatically distributed to good causes - that are determined by popular vote)

vgextend /dev/vg1
vgextend /dev/vg1/lvm
lvextend -L 1G /dev/mapper/vg1-lvm
lvextend -l +100%FREE /dev/mapper/vg1-lvm
resize2fs -p /dev/mapper/vg1-lvm

# pfanny enough - now we have turned 1GB partition into a 20GB partition
# holy moly... wasn't that hard was it? :-D now repeat another 20 times and you will get the hang of it.