[CentOS] Consolidating LVM volumes..

Fri Mar 23 13:18:08 UTC 2007
Wojtek.Pilorz <wpilorz at bdk.pl>

On Fri, 23 Mar 2007, Theo Band wrote:


> To my understanding sometimes it is possible to resize live ext3 
> filesystems. (No experience myself). In that case you could simply do 
> something like this:
> resize2fs /dev/VolGroup00/VarVol00 2G
> lvreduce -L2G /dev/VolGroup00/VarVol00
> I would still prefer to do this when the disk is unmounted and checked 
> (e2fsck -f /dev/VolGroup00/VarVol00). But in that case you of course get 
> rid of the partition VarVol00 anyhow.
> Theo

Last time I tried reducing ext3 was only possible after
umount and e2fsck -f;

Enlarging ext3 was generally possible on mounted system, unless
you want to enlarge past some limit (depending on how fs was created); in that case
umount and e2fsck is also needed.

Best regards,