AWS ec2 root volume increase: Expanding elastic root volume on aws ubuntu instance not working

前端 未结 3 883
暗喜
暗喜 2021-02-15 23:58

I\'ve followed aws doc for expanding elastic root volume and got my root volume size increased from 8 GB to 20 GB, which i confirmed using lsblk.

NAM

3条回答
  •  迷失自我
    2021-02-16 01:04

    /dev/xvda1 is an 8 GiB partition on a 20 GiB device and there are no other partitions on the volume. In this case, the partition must be resized in order to use the remaining space on the volume.

    After you resize the partition, you can extend the file system (via sudo resize2fs /dev/xvda1) to occupy all of the space on the partition.

提交回复
热议问题