DEV Community

Tai Ha for AWS Community ASEAN

Posted on • Edited on

4

AWS EBS root volume expansion

**
Modify Volume
**

EC2 > Volumes > Actions > Select Volume > Modify Volume

It can be changed while EC2 Instance is running.

image

image
image
image
image

・Restriction

Once changed, it cannot be changed for 6 hours.

image

Command

    df -h                                                                                               
    lsblk                                                                                               
    sudo growpart /dev/xvda 1                                                                                               
    lsblk                                                                                               
    sudo xfs_growfs /dev/xvda1                      For Linux 1 AMI: resize2fs /dev/xvda1                                                                       
    df -h   
NVME
    sudo growpart /dev/nvme0n1 1
        xfs_growfs /dev/nvme0n1p1                                                                                       
Enter fullscreen mode Exit fullscreen mode

・EC2 Instance (Command)

image

Ref https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/recognize-expanded-volume-linux.html

Billboard image

Deploy and scale your apps on AWS and GCP with a world class developer experience

Coherence makes it easy to set up and maintain cloud infrastructure. Harness the extensibility, compliance and cost efficiency of the cloud.

Learn more

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay