Adventures in Tech
Resizing the disks of a linux virtual machinePosted at: 2011-02-27 @ 17:11:36
So recently I had the situation where I needed to resize (or grow a linux partition)If your using an EXT2 EXT3 or EXT4 partition in native mode without LVM.
1. Allocate the additional space (normally done in a virtual server)
2. Work out which partition needs to be grown. This can be done with fdisk –l, although you MAY need to rescan the scsi disks prior to seeing the full space (see http://commscentral.net/tech/?post=44)
3. One you know the volume, run resize2fs -p /dev/sda2
4. Run df –h to confirm the disks have resized
This can all be done without a reboot of the VM.
Caveman