twitter
Categories:- Unix Commands

How to reduce or shrink the size of lvm partitions

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

 

 

 

 

Post Your Comments
Name:
Email:
Comment:
Security Code  *
Enter Security Code  *
Can't read the image? click here to refresh