When you run lsblk
and see a large disk (e.g., 3.2TB), but df -h
shows only a few GB (e.g., 2.7GB), you might be using LVM and not utilizing the full disk space.
This guide shows how to extend the logical volume and filesystem to use all available space.
lsblk
shows full disk size:
- But
df -h
shows:
Run:
lvdisplay
lvextend -l +100%FREE /dev/datastore/LOG
resize2fs /dev/mapper/datastore-LOG
Now run df -h
again to check if the disk space has been extended..
If this guide helped you, feel free to star ⭐ this repository and share it with others!