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:
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
resize2fs 1.42.9 (4-Feb-2014) The filesystem is already 26212055 blocks long. Nothing to do!
same output display. No increase disk space.
What is issue. any one have a idea.