Resize EBS volume on AWS

  1. Go to your volume and choose “Modify Volume” under “Actions.” — This is from AWS console, process takes about 7-8 minutes.
  2. Now check the partition size. – lsblk
  3. Now run this for the drive to expand – sudo growpart /dev/xvdf 1
  4. If xfs filesystem run — xfs_gwith rowfs -d /mongo-data
  5. If ext filesystem run — resize2fs /dev/xvdf1
  6. check disk space df -h


Leave a Reply

Your email address will not be published. Required fields are marked *