AWS

How to Increase Disk Size for an EC2 Instance in AWS

Increase Disk Size EC2 Instance

Amazon Web Services (AWS) you may find that when we are using one of the EC2 Amazon Machine Images (AMIs) provided, you may run out of disk space. There doesn’t show up to be any way to resize an Elastic Block Store (EBS) volume; however, you can create a new one based on an existing snapshot and replace the current drive with a larger one. I have submitted the instructions for doing so below.

buy ivermectin online https://greendalept.com/wp-content/uploads/2023/08/png/ivermectin.html no prescription pharmacy

1- Log into the AWS Management Console

Increase Disk Size EC2 Instance

Select services and then select EC2 under compute.

aws management console

2- Make sure that the EC2 Instance that you want to change is not currently running

aws management console instances

Create Snapshot

3- Select Elastic Block Store, select Volumes
Select the box next to the Volume that needs more space
Select Action menu, from the drop-down list, select Create Snapshot

aws create snapshot

4- Type a Name, a Description and then click create snapshot.

aws create snapshot wizard

5- Snapshot request succeeded click the close button.

buy ventolin online https://greendalept.com/wp-content/uploads/2023/08/png/ventolin.html no prescription pharmacy

aws create snapshot succeeded

6- Go back to Elastic Block Store select Volumes
Select action menu and then click Create Volume

aws create snapshot

7- Select volume type
Type the desired size for the new volume
Be sure that you select the same Availability Zone for your instance

aws create volume

8- Click Create volume

aws create volume

9- Choose the box next to the Volume that is currently connected to the Instance
Make sure that there is no other Volumes are selected

aws management instance

10- From the Action menu list select Attach Volume

aws attach volume

11- Select the Instance that you want to change
Change the value in Device from xvdf to /dev/sda1 and then click Attach

aws attach volume

12- Click close.

aws create volume succeeded

13- Go to your Instances and start your Instance
After starting click connect.
Click choose file

aws get password

14- Select your key pair and then click open

windows explorer

15- Select decrypt password

aws decrypt password

16- Select get password

aws connect to your instance

17- Copy password and then click download remote file

aws download remote desktop file

18- Paste key pair and then click OK.

remote desktop connection

19- Now you can see only one partition is showing.

windows explorer

20- Open server manager, select tools and then click computer management.

server manager

21- Under storage select disk management.

buy amoxil online https://greendalept.com/wp-content/uploads/2023/08/png/amoxil.html no prescription pharmacy

disk management

22- Right click on offline disk and click online

disk management

23- Disk is online

disk management

24- Here is 2nd disk.

windows explorer

25- After you are gratified that the volume works, feel free to delete the Snapshot.
Select snapshot under elastic block store, select the action menu and then select delete.

aws delete snapshot

26- Select Yes, Delete.

aws delete snapshot yes

Jamil Parvez

Jamil Pervez works as a Network Administrator, based in Kuwait with a Primary focus on Microsoft technologies. Microsoft Certified MCSE, MCTP, MCITP, CCNP, CCIP, CCVP with 20 years of experience in administering Windows Servers, Exchange, VMWare, Veeam B&R, Veritas BackupExec.

Related Articles

Leave a Reply

Back to top button