EC2 Can't resize volume after increasing size

后端 未结 14 549
青春惊慌失措
青春惊慌失措 2020-11-30 16:30

I have followed the steps for resizing an EC2 volume

  1. Stopped the instance
  2. Took a snapshot of the current volume
  3. Created a new volume out of t
14条回答
  •  青春惊慌失措
    2020-11-30 17:08

    1. login into AWS web console -> EBS -> right mouse click on the one you wish to resize -> "Modify Volume" -> change "Size" field and click [Modify] button

    2. growpart /dev/xvda 1

    3. resize2fs /dev/xvda1

    This is a cut-to-the-chase version of Dmitry Shevkoplyas' answer. AWS documentation does not show the growpart command. This works ok for ubuntu AMI.

提交回复
热议问题