[CentOS] Partitionning for future.

Sun Jun 28 15:52:36 UTC 2009
David Goldsmith <dgoldsmith at sans.org>

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Jorge Fábregas wrote:
> On Sunday 28 June 2009 11:38:48 am David Goldsmith wrote:
>> resize2fs /dev/VolGroup00/LogVol03
> 
> Does it performs the resizing while the filesystem is mounted? 

Resizing to make an ext2/ext3 filesystem larger can be done while the
filesystem is mounted.  Resizing to shrink a filesystem requires the
filesystem to not be mounted.

Example of online resizing:

# df -h /var
Filesystem            Size  Used Avail Use% Mounted on
/dev/mapper/vg0-varlv
                      2.0G  605M  1.3G  33% /var
# lvextend -L +1G /dev/vg0/varlv
  Extending logical volume varlv to 3.00 GB
  Logical volume varlv successfully resized

# resize2fs /dev/vg0/varlv
resize2fs 1.39 (29-May-2006)
Filesystem at /dev/vg0/varlv is mounted on /var; on-line resizing required
Performing an on-line resize of /dev/vg0/varlv to 786432 (4k) blocks.
The filesystem on /dev/vg0/varlv is now 786432 blocks long.

# df -h /var
Filesystem            Size  Used Avail Use% Mounted on
/dev/mapper/vg0-varlv
                      3.0G  605M  2.2G  22% /var

- --
David Goldsmith
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkpHkcQACgkQ417vU8/9Qfl1wQCfTvtzeYz6xeDNC6sHyt4A6dT2
W7oAoIHVnagZmxOfjuUGqYmzUmFEOTU3
=wnz+
-----END PGP SIGNATURE-----