Table of contents
When we creating an EC2 instance in AWS, At the time of EC2 creation we can select the size of EBS storage. However you may run into a scenario where you need more storage than what you have provisioned . In that case. you can either increase the size of the storage or attach an extra EBS volume to your instance . In This post we can see how to add an extra volume to an EC2 instance.
Steps to ADD Extra Volume in EC2:
Lounch new EC2 instance, with defoult volume(30GB).
Create an EBS Volume: Go to "Volumes" in the left-hand menu under "Elastic Block Store." Click on "Create Volume" and configure the new EBS volume.
Attach EBS Volume to EC2 Instance:
Select the newly created EBS volume.
Click on "Actions" and choose "Attach Volume."
In the "Attach Volume" dialog, select the EC2 instance you want to attach the volume to and specify the device name (e.g., /dev/sdf for Windows). Click on "Attach" to attach the volume to the instance.
Connect to EC2 Instance: Connect to your EC2 with RDP.
Initialize and Format the Volume:
Go to RDP -->Server Manager on the Windows Server.
Go to -- >search bar and search Disk Management.
You will see the newly attached volume with Offline status make it Online.
Right-click on the disk and choose "Initialize Disk."
Right-click on the unallocated space, choose "New Simple Volume", then OK.
Mount the Volume (Optional): If you want to mount the volume to a specific folder, you can do so by assigning a drive letter or mounting it as a folder mount point.
Automount on Boot (Optional): By default, Windows will remember the volume configuration, and it will be automatically attached and mounted on boot.
Now The newly added volume is ready for use, and you can start storing data or installing applications on it.