View the physical volume:

  • pvs

View the volume group:

  • vgs

View the logical volume:

  • lvs

Display the logical volumes:

  • lvdisplay

Display the volume group details:

  • vgdisplay

Extend the actual logical volume:

  • lvextend -l +[Free PE / Size] /dev/[volume group name]/[logical volume]

Resize the actual logical volume:

  • resize2fs /dev/[volume group name]/[logical volume]
  • xfs_growfs /dev/[volume group name]/[logical volume]

Tecmint | Stackoverflow

# Unmount the filesystem/partition
umount /dev/sdb1 /mnt/seafile


# Delete the partition
# Create the partition at the same start sector (2048)
# Keep disk signature of Linux, don't overwrite

fdisk /dev/sdb

# Check the filesystem/partition

e2fsck -f /dev/sdb1

# Resize the filesystem/partition

resize2fs /dev/sdb1

# Mount the filesystem/partition

mount /dev/sdb1 /mnt/seafile

Redhat