How to add additional volume to an EC2 instance
Welcome to CloudAffaire and this is Debjeet
In the last blog post, we have discussed how to modify a launch template.
In this blog post, we are going to discuss how to add additional volume to an EC2 instance.
Prerequisites for this demo:
- One active AWS account.
- One active EC2 instance.
How to add additional volume to an EC2 instance:
Step 1: Login to AWS console and navigate to EC2 instance
Note: We need the instance id and availability zone information of the instance if we want to attach a volume to it.
Step 2: Click ‘Volumes’ under ELASTIC BLOCK STORE. Click ‘Create Volume’
Note: Existing volume displayed is the root volume of our existing instance which was created during instance creation.
Step 3: Provide the size of the new volume and availability zone according to an instance availability zone. Scroll down and click ‘Create Volume’
Note: We can add volume from an existing snapshot and also encrypt it.
One success message will be displayed. Click ‘Close’.
Our new volume has been created with 1 GB of storage space.
Step 4: Select the new volume and click ‘Actions’. Click ‘Attach Volume’
Step 5: Select instance id obtained in step 1 and click ‘Attach’
Note: We are not going to change the device name in this blog post. You can rename your device according to your instance host OS.
Our new volume has been attached to the instance and we can view the same under Instance description.
Hope you have enjoyed this blog post. In the next blog, we are going to create a snapshot of this newly built volume.