Google News
logo
Linux - Interview Questions
How to reduce or shrink the size of the LVM partition?
Below are the logical steps to reduce the size of the LVM partition :

* Unmount the file system using the unmount command

* Use the resize2fs command as follows:
resize2fs /dev/mapper/myvg-mylv 10G?


* Then, use the lvreduce command as follows:
lvreduce -L 10G /dev/mapper/myvg-mylv?


This way, we can reduce the size of the LVM partition and fix the size of the file system to 10 GB.
Advertisement