Get your server issues fixed by our experts for a price starting at just 25 USD/Hour. Click here to register and open a ticket with us now!

Author Topic: Shrinking an LVM volume  (Read 2403 times)

0 Members and 1 Guest are viewing this topic.

Vinil

  • Guest
Shrinking an LVM volume
« on: November 21, 2013, 10:07:24 pm »
The following steps will show you how to shrink a LVM volume.  In this example we will be shrinking volume VolGroup00-LogVol00 down to 20GB. This is achieved by running the following commands:

Code: [Select]
# umount /dev/mapper/VolGroup00-LogVol00
# e2fsck -f /dev/mapper/VolGroup00-LogVol00
# resize2fs /dev/mapper/VolGroup00-LogVol00 20G
# lvreduce -L 20G /dev/mapper/VolGroup00-LogVol00
# e2fsck -f /dev/mapper/VolGroup00-LogVol00