How to increase the size of EBS volume in AWS
An Amazon EBS (Elastic Block Store) volume is a durable, block-level storage device that we can attach to our instances. After attaching a volume to an instance, we can use it as a physical hard drive.
Increase the size of EBS volume
To Increase the size, please follow the below steps.
- Stop the Instance
- Detach the Volume
- Modify the Volume
- Attach the Volume
- Start the Instance
Stop the Instance
- Navigate to the EC2 Instance and Select it
- Click on Stop Instance from Instance State menu
Detach the Volume
- Navigate to the Volumes in Elastic Block Store
- Select the desired Volume
- Click on Detach Volume from Actions
Modify the Volume
- Select the desired volume
- Click on Modify
- Type the required Size
- Click on Modify
Attach the Volume
- Select the Size modified Volume
- Click on Actions
- Click on Attach Volume
- Select the Instance
- Add the device name ("/dev/sda1" is for root volume and "/dev/sd[f-p]" is for data volume)
- Click on Attach Volume
Start the Instance
- Navigate to the EC2 Instance and Select it
- Click on Start Instance from Instance State menu