How to reduce or shrink the size of lvm partitions

Share this article with your friends

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

Steps to reduce the /home partition to 5GB

Step:1 Check the disk space using below command


Umount /home using below command :

[root@localhost ~]# umount  /home


Step:2 Use e2fsck command to check the file system
[root@localhost ~]# e2fsck -f /dev/mapper/VolGroup-LogVol01


Step:3 Resize the partition using below command


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


 Step:5 Mount and check the partition size


Free Download Linux e-Books

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *