- Stop the instance
- Make a snapshot of the volume that we want to increase
- Write down the attachment information
Attachment information: i-f0cacda3 (PROD):/dev/sdf1 (attached)
- Detach the volume
- Create a new volume with larger size, pick the same zone, pick the snapshot that we create in Step #2
- Attach the new volume to the instance with the same attachment information (see Step #3)
- Start the instance
- ssh into the instance as usual
- df -h should still show the old size even we are using a larger volume
- Run resize2fs /dev/sdf1 to increase the size to match the larger volume
- Reboot (optional)
Friday, September 8, 2017
Increase the Size of an AWS EBS Cloud Volume Attached to a Linux Machine
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment