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

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
Computer Pros

Computer
Professionals

Discover Your Full Potential

Find out what's different about high-achieving computer professionals and discover what may be holding you back.

Read more...

 
x Computer Pros - Interstitial Page with Flash

Computer Professionals:
Discover How You Can
Become a Top-Achiever

Join True Blade's Free Online Study Group — give yourself the chance to:
 • Learn More
 • Earn More
 • Improve Your Job Security
No Obligation - Cancel Anytime
Name
Email

If you're skeptical, we understand. But please give us a moment to explain why you can trust us, and to explain how you'll benefit from subscribing.