Interview Prep/AWS/S3, EBS and EFS

You grew an EBS volume from 20 to 50 GiB, but the server still says `No space left on device`.

BeginnerTroubleshootingS3, EBS and EFS
Answer

Likely causes → You resized the volume, but not the partition and filesystem inside it.

Diagnose →

aws ec2 describe-volumes-modifications --volume-ids vol-0abc --query 'VolumesModifications[].ModificationState'
lsblk                 # disk 50G, partition still 20G
df -hT /

Fix →

sudo growpart /dev/nvme0n1 1
sudo xfs_growfs -d /          # XFS (Amazon Linux)
# or
sudo resize2fs /dev/nvme0n1p1 # ext4 (Ubuntu)

If df shows the disk is not full, check inodes: df -i.

Prevent → Alarm on disk usage from the CloudWatch agent (disk_used_percent), and send logs off-box so they do not fill the disk.

aws All AWS questions Roadmap: AWS core services

More on S3, EBS and EFS