Personal tools
You are here: Home Knowledge Resizing an LVM partition

Resizing an LVM partition

Steps needed to resize an LVM (logical volume manager) partition.

 

Detailed steps are given in:

 

This can be done in multi-user mode, if the processes that are using the partition to be resized can be stopped.  That's certainly true for /var, /home, and the like.

Before unmounting, lsof will tell you which processes are using which directories and files.  All of those processes need to be stopped.

Before unmounting a partition, any sub-partitions must be unmounted.  In particular, /var/spool (if it exists) must be unmounted before /var can be unmounted.

resize2fs sizes must be specified in 4K blocks.  LVM commands can use arbitrary sizes, but 1K blocks is probably most convenient.

pvs is handy for seeing how much free space is left on the physical volumes.


If you enjoyed this article, we invite you to learn more about how you can become a high achieving computer professional.

 

 

 

Document Actions
Technology Questions or Problems?

Get Technology Support from Experienced Pros

Professional, prompt service. Competitive pricing. Practical, real-world solutions that save you time and money.

Learn more...

Computer Pros

Discover
How To Stop
The Competition From Eating Your Lunch


Read more...

« September 2010 »
September
SuMoTuWeThFrSa
1234
567891011
12131415161718
19202122232425
2627282930
 
x Computer Pros - Interstitial Page with Flash

Computer Pros:
Discover How To Stop
The Competition From
Eating Your Lunch

Welcome and thanks for stopping by!

Join Our Free Online Study Group And
You Will Learn How To:
 • Become an "In Demand" IT Pro
 • Earn More - Because You Deserve It
 • Improve Your Job Hunting Skills
 • Find Out What Employers and Clients Want
No Obligation - Cancel Anytime
Name
Email