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

I have a Amazon EC2 instance of 100GB disk space

My disk most probably full only 5 GB space is available so I want to increase space.

For increase disk space I followed below steps:

- Log into the AWS Management Console
- Stop instance
- Navigate to Elastic Block Store > Volumes
- Check the box next to the Volume that needs more space
- Click the More… drop down list and select Create Snapshot
- Enter a Name and a Description
- Navigate to Elastic Block Store> Snapshots
- Monitor the progress of the Snapshot for completion
- Once complete, navigate back to Elastic Block Store > Volumes
- Click Create Volume
- Enter the desired size for the new volume
- Make sure that you select the same Availability Zone for your instance
- Select the Snapshot that you just created
- Click Yes, Create
- Monitor the progress of the Volume for completion
- Once complete, Check the box next to the Volume that is currently connected to the Instance
- Make sure that no other Volumes are selected
- Click the More… drop down list and select Click the More… drop down list and select Detach Volume
- Uncheck the box selected and check the box next to the new Volume
- Click the More… drop down list and select Click the More… drop down list and select Attach Volume
- Select the Instance that you wish to change
- Change the value in Device from xvdf  to /dev/sda1
- Click Yes, Attach
- Navigate to Instances and start your Instance

After complete process log into instance

Fire command below:

df -h

O/P:

Filesystem      Size  Used Avail Use% Mounted on
/dev/xvda1       99G   88G  6.9G  93% /
none            4.0K     0  4.0K   0% /sys/fs/cgroup
udev            3.7G  4.0K  3.7G   1% /dev
tmpfs           749M  340K  748M   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


>> resize2fs /dev/xvda1

O/P:

resize2fs 1.42.9 (4-Feb-2014) The filesystem is already 26212055 blocks long. Nothing to do!

then type

df -h

same output display. No increase disk space.

What is issue. any one have a idea.

Thanks

share|improve this question

migrated from superuser.com Jul 10 '14 at 2:16

This question came from our site for computer enthusiasts and power users.

    
You already have 100 GB, so there is nothing to do! –  Michael Hampton Jul 10 '14 at 2:18
    
Thanks reply but may be its not 100 GB limit but its go upto 1024GB (1TB). So, what is wrong –  harsh4u Jul 13 '14 at 5:48

Your Answer

 
discard

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

Browse other questions tagged or ask your own question.