1. create LVM partition:
2. initialization LVM partition:
3. create LVM group:
4. create logical volumes which is attached to group:
5. format volumes:
EXTEND
change size volume:
change size partition:
REDUCE
change size partition:
change size volume:
lvreduce -L -[size]G [LV_name_from_lvdisplay]
fdisk /dev/[disk]
change partition type from LINUX to LVM2. initialization LVM partition:
pvcreate /dev/[disk_partiton1] /dev/[disk_partition2]
check commands:
pvs
pvdisplay
pvdisplay
3. create LVM group:
vgcreate [group_name] /dev/[disk_partition1] /dev/[disk_partition2]
check commands:
vgs
vgdisplay
vgdisplay
4. create logical volumes which is attached to group:
lvcreate -L[size]M -n [vol_name] [group_name]
check commands:
lvs
lvdisplay
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]