My AWS instance has run out of space, though I should have 32GB available

I have an AWS m3.large instance running, which should have 32GB of storage available. However, it appears as though only 8GB is available… Why is this and how can I use the full capacity?

Thanks, Pete

Hi Pete! This is standard AWS behavior - they generally provide you with a 8GB drive mounted to your root folder. Any instance storage is available elsewhere, but Cloud 66 will use the 8GB drive. For example:

ubuntu@ip-172-31-31-134:/var$ df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/xvda1      7.8G  3.3G  4.1G  45% /
none            4.0K     0  4.0K   0% /sys/fs/cgroup
udev            3.7G   12K  3.7G   1% /dev
tmpfs           752M  288K  752M   1% /run
none            5.0M     0  5.0M   0% /run/lock
none            3.7G     0  3.7G   0% /run/shm
none            100M     0  100M   0% /run/user
/dev/xvdb        30G   45M   28G   1% /mnt

You’ll need to copy your /var/deploy folder to the /dev/xvdb drive and then mount it:

sudo cp -r /var/deploy/stack_name /dev/xvdb
sudo mount /dev/xvdb /var/deploy

You will now see this:

ubuntu@ip-172-31-31-134:/var$ df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/xvda1      7.8G  3.3G  4.1G  45% /
none            4.0K     0  4.0K   0% /sys/fs/cgroup
udev            3.7G   12K  3.7G   1% /dev
tmpfs           752M  288K  752M   1% /run
none            5.0M     0  5.0M   0% /run/lock
none            3.7G     0  3.7G   0% /run/shm
none            100M     0  100M   0% /run/user
/dev/xvdb        30G   45M   28G   1% /var/deploy

You must be logged in to answer this question