- fdisk -l /dev/sdx and create new partition
- pvcreate /dev/sdx1
- vgdisplay ; list volume group name
CREATE VOLUME
- vgcreate volumn_name /dev/sdd
EXTEND VOLUME
- vgcreate volumn_name /dev/sdd
EXTEND VOLUME
- vgextend vol_group_name /dev/sdx1
CREATE LOGICAL VOLUME
- lvcreate -l 20m -n logical_vol vol_group
- lvcreate -l 100%FREE -n logical_vol vol_group
- lvdisplay ; list logcal volume group name
- lvcreate -l 100%FREE -n logical_vol vol_group
- lvdisplay ; list logcal volume group name
EXTEND LOGICAL VOLUME
- lvextend -l +100%FREE /dev/vol_group_name/logical_volume
or
- lvextend /dev/vol_group_name /dev/sdx1
or
- lvextend /dev/vol_group_name /dev/sdx1
RESIZE LVM
EXT:
- resize2fs /dev/log_vol_group_name
XFS:
XFS:
- xfs_growfs /MOUNT_POINT
EXT4:
- resize4fs /dev/log_vol_group_name
EXT4:
- resize4fs /dev/log_vol_group_name