1. create LVM partition:

fdisk /dev/[disk]

change partition type from LINUX to LVM

2. initialization LVM partition:

pvcreate /dev/[disk_partiton1] /dev/[disk_partition2]

check commands:

pvs
pvdisplay

3. create LVM group:

vgcreate [group_name] /dev/[disk_partition1] /dev/[disk_partition2]

check commands:

vgs
vgdisplay

4. create logical volumes which is attached to group:

lvcreate -L[size]M -n [vol_name] [group_name]

check commands:

lvs
lvdisplay

5. format volumes:

mkfs.ext3 [LV_name_from_lvdisplay]


EXTEND
change size volume:

lvextend -L +[size]M [LV_name_from_lvdisplay]

change size partition:

resize2fs [LV_name_from_lvdisplay]

REDUCE

fsck -f [LV_name_from_lvdisplay]

change size partition:

resize2fs [LV_name_from_lvdisplay] [size]G

change size volume:

lvreduce -L -[size]G [LV_name_from_lvdisplay]

install lvm on ubuntu:
use ubuntu live:
* format LVM partition using fdisk without /boot
* install lvm2
* create pvs,vgs,lvs
use ubuntu install:
* before partition install lvm2
* activate previous lvm partitions using: vgchange -a y
* install system on previous partitions
after restart, system crashed because default ubuntu do not install lvm
use ubuntu live:
* install lvm2
* activate lvm partitions: vgchange -a y
* mount /dev/vg_system/lv_root /mnt/dupa
* mount /sda4/boot /mnt/dupa/boot
* mount –bind /dev/ /mnt/dupa/dev
* chroot /mnt/dupa
* mount -t sysfs sysfs /sys
* mount -t proc proc /proc
* install lvm2 in chroot