Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Here's an even easier method. (My m2.2xlarge instance was created with RedHat Linux 6.2, I discovered it had a paltry 6gb of it's 850gb available):</p> <ol> <li><p>Via ssh, check space under root: <code>$df -h</code></p> <blockquote> <pre><code>Filesystem Size Used Avail Use% Mounted on /dev/xvde1 6G 6G 0G 100% / none 17G 0 17G 0% /dev/shm </code></pre> </blockquote></li> <li><p>From aws console, stop the instance</p></li> <li>From aws console, detach the volume (though note the mount point under attachment info, eg <code>/dev/sda1</code>)</li> <li>From aws console, take a snapshot of the volume</li> <li>From aws console, create a new volume using the snapshot (using all the remaining space for the instance type, eg 825gb in my m2.2xlarge case)</li> <li>From aws console, attach the new volume to original mount point /dev/sda1</li> <li>From aws console, restart the instance and ssh back in to the instance</li> <li><p>From ssh, run resize2fs on the root Filesystem (see <code>df -h</code> output in step 1)</p> <blockquote> <p>$resize2fs /dev/xvde1</p> </blockquote></li> <li><p>wait for a few minutes, possibly go and watch your buddy who is stopping <a href="http://www.ivarch.com/blogs/oss/2007/01/resize-a-live-root-fs-a-howto.shtml">all the root services etc</a> like a boss : )</p></li> <li>observe the new cavernous mount: $df -h <blockquote> <pre><code>Filesystem Size Used Avail Use% Mounted on /dev/xvde1 813G 3.7G 801G 1% / none 17G 0 17G 0% /dev/shm </code></pre> </blockquote></li> </ol>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload