Unmount the filesystem using unmount command,
Use resize2fs command , e.g resiz2fs /dev/mapper/myvg-mylv 10G
Now use the lvreduce command as lvreduce -L 10G /dev/mapper/myvg-mylv
The above Command will shrink the size LVM partition and fixes the filesystem size to 10GB.Most in-depth, industry-led curriculum in linux.
Comments
Please follow the steps:
Unmount the filesystem using unmount command,
Use resize2fs command , e.g resiz2fs /dev/mapper/myvg-mylv 10G
Now use the lvreduce command as lvreduce -L 10G /dev/mapper/myvg-mylv
The above Command will shrink the size LVM partition and fixes the filesystem size to 10GB.Most in-depth, industry-led curriculum in linux.