How to make existing LVM Logical Volume smaller

Sometime you will need to make Logical Volume smaller because you require extra space somewhere. Follow following steps to achieve that:

We have 6.88 Gb Logical Volume. We need it to be 5 GB.

Boot into rescue mode using installation CD/DVD
# lvm vgscan
# lvm vgchange -ay
# lvm lvs
# e2fsck -f /dev/VolGroup00/LogVol00
# resize2fs /dev/VolGroup00/LogVol00 5G
# lvm lvreduce -L-1.88G /dev/VolGroup00/LogVol00

Done!

Moving your apps to Amazon or Miscrosoft Clouds?

We can help you analyze your existing infrastructure, identify the cost savings we can achieve by migrating to a cloud provider. We can then execute end-to-end migration plan of your infrastructure and bringing down your TCO.

Cloud Computing

Ready for IPv6 Migration?

The Internet is running out of the equivalent of phone numbers - familiar problem, non-trivial solution.

The world has to move to IPv6, with its 128-bit addresses. But that's easier said than done.

IPv6 Migration

Are you fluent in "Linux"?

Learn Linux from a leading expert and quickly master you Linux skills.

Learn how to simplify your workflow and increase your productivity using tips and techniques of the pros.

Ideal training for Corporate IT Beginners and Advanced IT Admins alike.

Corporate Linux Training

Who's Online

We have 6 guests and no members online