I've noticed that when I create a VM and look at disk use (using df -h) that the root partition is 1GB and the /mnt partition is however big the VM type I'm using is. How should I go about installing system updates that cause my VM to go over the 1GB disk size?
Another way is to ...
$ sudo fsck.ext3 -f IMAGE
$ sudo resize2fs IMAGE SIZE
Where "IMAGE" is the name of the IMAGE file and "SIZE" is the new size of the file (make sure to add "G" on the end for GBs).
Example: To resize the image "ubuntu-9.04-i386.img" to be 8GB, do this:
$ sudo fsck.ext3 -f ubuntu-9.04-i386.img
$ sudo resize2fs ubuntu-9.04-i386.img 8G
Now, you can "euca-upload-image" the new image to Eucalyptus, and run it. If your Eucalyptus config has a 20G image maximum then "df -h" would show something like:
/dev/sda1 8G /
/dev/sda2 11G /mnt
It's really fast, too.
Hello,
thanks for sharing! I think you don't even need to be root to sun the commands. Do you care of adding this method to our community wiki?
cheers
graziano
Posted: Wed, 03/10/2010 - 17:40
The following doc should help.
http://open.eucalyptus.com/wiki/changing-size-images