EC2 Can't resize volume after increasing size

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

    Bootable flag (a) didn't worked in my case (EC2, centos6.5), so i had to re-create volume from snapshot. After repeating all steps EXCEPT bootable flag - everything worked flawlessly so i was able to resize2fs after. Thank you!

    0 讨论(0)
  • 2020-11-30 17:27

    Prefect comment by jperelli above.

    I faced same issue today. AWS documentation does not clearly mention growpart. I figured out the hard way and indeed the two commands worked perfectly on M4.large & M4.xlarge with Ubuntu

    sudo growpart /dev/xvda 1
    sudo resize2fs /dev/xvda1
    
    0 讨论(0)
提交回复
热议问题