无法修改或调整 Amazon EBS 卷的大小

Cant Modify or Resize Amazon EBS Volume

无法修改或调整 Amazon EBS 卷的大小。在 us-east-1d N. Virginia。它连接的实例是 t2.medium CentOS 7.

如有任何帮助,我们将不胜感激。

停止 EBS 卷附加到的实例。 然后应该可以使用修改选项。

如果这不起作用,请尝试分离卷。

http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-expand-volume.html

更新:以下答案在编写时是正确的,但随后在 2018 年 6 月 28 日被此公告取代:

Starting today, Elastic Volumes extends support to Amazon Elastic Block Store (EBS) magnetic (standard) volume type. You can now dynamically increase capacity or change the type of magnetic (standard) volumes with no downtime or performance impact using a simple API call or a few console clicks.

https://aws.amazon.com/about-aws/whats-new/2018/06/amazon-ebs-extends-elastic-volumes-to-support-ebs-magnetic--standard--volume-type/

最初触发此问题的问题应该不会再出现了。


在屏幕截图中,卷类型显示 standard.

那是一个previous generation磁体。

The previous generation Magnetic volume type is not supported by the volume modification methods [...]

http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/limitations.html

无法调整大小,因此该选项显示为灰色。您的 AMI 新实例可能有一个 gp2 SSD 卷,它支持调整大小。

如@michael-sqlbot所说,您正在使用磁性 "standard" EBS 卷,您可以按照以下步骤转换为 ssd "gp2" 卷:

  1. 创建 EBS 卷的快照
  2. 从您的 EBS 创建新的 PIOPS/General 用途 SSD 卷 快照
  3. 正在从 实例
  4. 附加新的 PIOPS/General 用途 SSD 卷

更多信息:https://n2ws.com/blog/how-to-guides/how-to-change-your-ebs-volume-type