Expand EBS in AWS

Alexander Ibrahim
2 min readMay 25, 2020

Recently most of my nodes in my cluster had full storage disk. The options are you add more node or expand your disk for each node. The first choice is the easy one because just add more node. The latter is little bit cumbersome. After see my monitoring, I got notice that RAM and CPU usage is below 50%. So those are not fully utilized although disk spaces are full. So I decide to expand my disk.

  1. Go to AWS console
  2. Find the instance you want to expand
see the instance description to find volume

3. Go link EBS ID, and take actions — Modify Volume

4. Expand the instance volume

5. After all complete we need to ssh to the server

6. check your disk

7. Run sudo growpart /dev/xvda 1

8. Run sudo xfs_growfs -d /

9. Check your disk block

Now you have new disk space. I hope this will help you. Cheers

--

--

Alexander Ibrahim
Alexander Ibrahim

Written by Alexander Ibrahim

A seasoned software engineer with 10+ years in designing and scaling high-performance systems. I love reading books on technology and beyond.

No responses yet