Resizing EBS Volumes on AWS

Key Points:

Important Considerations:

Markdown Table Example:

Command Description
lsblk Lists block devices (volumes, partitions, etc.)
df -h Shows disk usage information in a human-readable format
sudo growpart /dev/xvda 1 Extends the partition on the specified device

Extras:

Do I need to restart ec2 to utilize new space after resizing?

Yes, in most cases, you'll need to restart your EC2 instance to fully utilize the new space after resizing an EBS volume. Here's why:

The Operating System's View

What Restarting Does

  1. Repartition: The restart allows you to use tools like growpart (Linux) to tell the operating system, "Hey, the disk is bigger! Extend the partition to use that new space."