[LINUX-LVM] shrinking a volume inside an LVM

Brian McCullough bdmc at bdmcc-us.com
Sat Jan 5 06:37:36 UTC 2008


On Fri, Jan 04, 2008 at 03:58:43PM -0600, Kemp, Levi wrote:
> Ok I understand. Is there anything I need to do to the volume to prep it first, as in defragment it or something similar? I'm unsure as to how the ext2/3 file systems work with data, so I didn't know if it needed to be moved before shrinking the file system, then shrinking the LV, then exanding the file system to fill the LV, leaving room in the LVM to create another LV with whatever file system I want correct? Doesn't sound as complicated now. Thanks.

As long as the "/" volume isn't actually "Live," this can be done "in
place."   ( don't you love quotation marks? )

The "e2fsck" does a form of defragment as a side effect of "cleaning up"
the filesystem.


Brian





More information about the linux-lvm mailing list