How to reduce or shrink the size of lvm partitions

0
3183

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

df-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

reduce-shrink-lvm-partitions

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

reduce-shrink-lvm-partitions1

 Step:5 Mount and check the partition size

reduce-shrink-lvm-partitions2

LEAVE A REPLY