- Get the ID of the Amazon EBS volume and the Availability Zone of a running instance for which you want to increase the root storage size.
- Stop the instance.
- Detach the original volume from the instance.
- Create a snapshot of the detached volume.
- Create a new volume from the snapshot by specifying a larger size.
- Attach the new volume to the stopped instance.
- Start the instance and get the new IP address/hostname.
- Connect to the instance using the new IP address/hostname.
- Resize the root file system to the extent of the new Amazon EBS volume.
- Check the size of the root device. The root device now shows the increased size.
- (Optional) Delete the old Amazon EBS volume, if you no longer need it.
The snapshot is created using an Amazon EBS volume. We can use this snapshot to create a new EBS-backed AMI or to launch another instance.
Comments