LVM resize question

Sweat, Ryan Ryan.Sweat at atmosenergy.com
Wed Mar 19 13:18:52 UTC 2008


> After lvm has been resized, you have to use resize tool of filesystem:
> 
> 
> [root at example~]# e2fsck -f /dev/domUarray/demodomU
> e2fsck 1.35 (28-Feb-2004)
> Pass 1: Checking inodes, blocks, and sizes
> Pass 2: Checking directory structure
> Pass 3: Checking directory connectivity
> Pass 4: Checking reference counts
> Pass 5: Checking group summary information
> /dev/domUarray/demodomU: 24528/89664 files (0.7% non-contiguous), 
> 161312/179200 blocks
> 
> [root at example~]# resize2fs /dev/domUarray/demodomU
> resize2fs 1.35 (28-Feb-2004)
> Resizing the filesystem on /dev/domUarray/demodomU to 1572864 
> (4k) blocks.
> The filesystem on /dev/domUarray/demodomU is now 1572864 blocks long.
> 
> 
> Or if using reiserfs:
> # resize_reiserfs -f /dev/domUarray/demodomU
> # resize_reiserfs /dev/domUarray/demodomU
> 
> Upper one of those is for online partition, below is one for offline 
> partition.


You can also resize ext3 file systems online (while mounted) with the
ext2online tool.






More information about the redhat-sysadmin-list mailing list