Wednesday, 10 December 2014

reduce-the-size-of-lvm-partitions



How to reduce or shrink the size of logical Volume Manager Partitions


In my case I will shrink or reduce the /data size using lvreduce command. To reduce lvm size first umount the partition and run e2fsck & then resize2fs.

Steps to reduce the /data partition to 3GB

Step:1 Check the disk space using below command












Step:2Umount /data using below command : 










Step:3 Use e2fsck command to check the file system









Step:4 Resize the partition using below command







Step:5 Use lvreduce command to reduce the size as shown below










Step:6 Mount and check the partition size












Note: Now you can see that your LVM size is 3 G only. 


Enjoy !!!!












No comments:

Post a Comment