LinuxCzar

Engineering Software, Linux, and Observability. The website of Jack Neely.    

Extending an LVM Volume to Its Max

Unless a System Administrator states a partitioning or LVM layout (which the junior level folks may not be able to do) I use a default layout in their Kickstarts.  It does a basic layout using about 20G and leaving the rest unallocated in a single Volume Group in LVM.  So what’s a common question I get?  You guessed it, how do you resize a volume.  How do you resize it to take up the rest of the available space?

Usually its the volume mounted at / that folks want to enlarge.

lvresize -l+100%FREE /dev/mapper/Volume00-root

The easy part to remember is how to do an on-line resize of that file system.

resize2fs /dev/mapper/Volume00-root

 Previous  Up  Next


comments powered by Disqus