LVM commands example – shrink existing LV and create new one as swap
In this particular case I had to add a swap partition to existing Ubuntu system. Shrink LVM df -h umount /var/www/owncloud/data resize2fs /dev/mapper/vg0-owncloud 15G lvresize -L 15G /dev/mapper/vg0-owncloud lvdisplay /dev/mapper/vg0-owncloud…