When you decide that you need bigger volume to store your data (in EC2), you do the following in your EC2 console.
Create a snapshot of your current volume. Create new volume from the snapshot. Attach the volume to your instance.
You might need to reboot the instance and mount the volume (/dev/sdf) to you instance. I usually start the mysql afterwords as my mysql data are stored on the volume so system can’t access them when rebooting. You might have better setup so you do not need to mount the dist manually after restart and start the mysql.
Update: There is fix for the solution above – Using Cron read more
Here comes the problem.
If you originally had 1gig volume and you have now created 100gig and use the snapshot of the 1gig the system will thing the dist has still 1gig.
You can resize the disk on the fly with the resize2fs command.
Parameters -p means it will print what is the command doing and -f mean force so it will force to do certain changes which needs to be done. (Google resize2fs for full description of the syntax)
sudo resize2fs -p -f /dev/sdf "SIZEOFYOURDISK"
Note: Replace “SIZEOFYOURDISK” with actual size of your new Volume.