EC2 Can't resize volume after increasing size

后端 未结 14 527
青春惊慌失措
青春惊慌失措 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:09

    So in Case anyone had the issue where they ran into this issue with 100% use , and no space to even run growpart command (because it creates a file in /tmp)

    Here is a command that i found that bypasses even while the EBS volume is being used , and also if you have no space left on your ec2 , and you are at 100%

    /sbin/parted ---pretend-input-tty /dev/xvda resizepart 1 yes 100%
    

    see this site here:

    https://www.elastic.co/blog/autoresize-ebs-root-volume-on-aws-amis

提交回复
热议问题