Friday, 8 July 2011

Linux - Increase Filesystem

You can increase the size of a filesystem on Linux boxes whilst not having to unmount them, therefore doing the increase whilst they are online.

Linux / OEL

On a redhat or OEL system you can use the following:
# df -h
/home/krobbe > df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VolGroup00-LogVol00 2.0G 204M 1.7G 11% /
....etc
# lvextend --size +1G /dev/VolGroup00/LogVol24
then either:
# ext2online /dev/VolGroup00/LogVol24
or:
# resize2fs /dev/VolGroup00/LogVol24

No comments:

Post a Comment

Please feel free to leave a comment