Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I created an EC2 instance with type of m1.small and later found it's lack of space. I then stop the instance and change the type to m1.xlarge. However, I have no luck on getting more space.

df -a shows as below:

Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/xvde1             5905712   5694380    151336  98% /
none                         0         0         0   -  /proc
none                         0         0         0   -  /sys
none                         0         0         0   -  /dev/pts
none                   7685872         0   7685872   0% /dev/shm
none                         0         0         0   -  /proc/sys/fs/binfmt_misc
sunrpc                       0         0         0   -  /var/lib/nfs/rpc_pipefs

Observing that there are 7G space at /dev/shm with no filesystem mounted, I wonder if there's any way to "borrow" this to /dev/xvde1.

share|improve this question

migrated from stackoverflow.com Sep 27 '12 at 4:07

This question came from our site for professional and enthusiast programmers.

    
Are you using EBS? –  horte Sep 26 '12 at 9:43
    
There's only one volume for the instance. I guess you are asking extra EBS disk. –  Catherine Dai Sep 26 '12 at 10:00
    
I'm confused that since it's m1.xlarge instance type which should have more than the displayed size, how come it still shows as 5G for /dev/xvde1? –  Catherine Dai Sep 26 '12 at 10:54
1  
Anyhow, I suggest you to not choose instance size based on how much disk space you need. Instead I suggest you to start an EBS backed instance and create a volume with the needed size. Then you can have as much disk space you want. –  horte Sep 26 '12 at 13:45

1 Answer 1

The m1.small and m1.xlarge instance sizes you are referring to is the size of the CPU power, the RAM memory, number of cores, processor, etc. Not the actual drive. The size of your drive is found not in the type, but in the EBS volume. You want to enlarge your EBS volume to get more disk space.

Here are my notes to resize a partition in Amazon EBS console:

  1. Stop server
  2. Create an EBS snapshot
  3. Add new volume with more space
  4. Create using the snapshot you just made
  5. Attach and mount the new ebs volume as /dev/sda1 (for boot)
  6. Run sudo resize2fs /dev/xvda1 - for the actual resizing.
share|improve this answer
    
Thanks! I do make it work with this method. –  Catherine Dai Sep 27 '12 at 2:37

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.