LVM
- How to increase the size of LVM partition ?
- Use the lvextend command (lvextend -L +100M /dev/<Name of the LVM Partition> , in this example we are extending the size by 100MB.
- resize2fs /dev/<Name of the LVM Partition>
- check the size of partition using ‘df -h’ command
- How to reduce or shrink the size of LVM partition ?
- Umount the filesystem using umount command,
- use resize2fs command , e.g resiz2fs /dev/mapper/myvg-mylv 10G
- Now use the lvreduce command , e.g lvreduce -L 10G /dev/mapper/myvg-mylv