Storage

Storage administration and tricks, including LVM, SCSi etc.

LVM Extending from New Physical Volume

Create new physical volume from new partition

  1. Use fdisk utility to create new partition
  2. pvcreate /dev/<new partition>
  3. pvs

Adding physical volume to volume group

  1. vgextend <volume group> /dev/<new partition>

Extending logical volume

  1. lvextend -L+<size><G or M> /dev/<volume group>/<lv name>
  2. #For XFS:
  3. xfs_grow /<mount_point>
  4. #For EXT4:
  5. resize2fs /<mount>/<point>