【问题标题】:How to upgrade AWS EC2 from t2.2xlarge to t3.2xlarge?如何将 AWS EC2 从 t2.2xlarge 升级到 t3.2xlarge?
【发布时间】:2020-11-25 04:53:39
【问题描述】:

我有一个 t2.2xlarge AWS EC2 实例,我需要将其类型更改为 t3.2xlarge。 但是当我尝试启动它时,我得到了一个

"错误启动实例请求的配置当前不是 支持的。请查看支持的文档 配置。”

当我运行检查脚本时,一切都很好

https://github.com/awslabs/aws-support-tools/tree/master/EC2/NitroInstanceChecks

OK NVMe Module is installed and available on your instance
OK ENA Module with version is installed and available on your instance
OK fstab file looks fine and does not contain any device names.

我也做了这里描述的所有检查

https://aws.amazon.com/premiumsupport/knowledge-center/boot-error-linux-nitro-instance/

aws ec2 describe-instances --instance-ids my-instance-id --query "Reservations[].Instances[].EnaSupport"
[
    true
]

还有什么我应该改变才能以 t3.2xlarge 启动它吗?

复制:

  1. 使用默认设置创建 t2.2xlarge 实例
  2. 停止并将类型更改为 t3.2xlarge
  3. 尝试启动它

关于实例的更多详细信息

aws ec2 describe-instances
    {
        "Reservations": [
            {
                "Groups": [],
                "Instances": [
                    {
                        "AmiLaunchIndex": 0,
                        "ImageId": "ami-***********",
                        "InstanceId": "i-***********",
                        "InstanceType": "t2.2xlarge",
                        "KeyName": "***********",
                        "LaunchTime": "2020-11-24T06:11:41+00:00",
                        "Monitoring": {
                            "State": "disabled"
                        },
                        "Placement": {
                            "AvailabilityZone": "us-east-1e",
                            "GroupName": "",
                            "Tenancy": "default"
                        },
                        "PrivateDnsName": "ip-***********.ec2.internal",
                        "PrivateIpAddress": "***********",
                        "ProductCodes": [],
                        "PublicDnsName": "ec2-***********.compute-1.amazonaws.com",
                        "PublicIpAddress": "***********",
                        "State": {
                            "Code": 16,
                            "Name": "running"
                        },
                        "StateTransitionReason": "",
                        "SubnetId": "subnet-***********",
                        "VpcId": "vpc-***********",
                        "Architecture": "x86_64",
                        "BlockDeviceMappings": [
                            {
                                "DeviceName": "/dev/sda1",
                                "Ebs": {
                                    "AttachTime": "2020-10-06T05:07:35+00:00",
                                    "DeleteOnTermination": true,
                                    "Status": "attached",
                                    "VolumeId": "vol-***********"
                                }
                            }
                        ],
                        "ClientToken": "",
                        "EbsOptimized": false,
                        "EnaSupport": true,
                        "Hypervisor": "xen",
                        "NetworkInterfaces": [
                            {
                                "Association": {
                                    "IpOwnerId": "amazon",
                                    "PublicDnsName": "***********.compute-1.amazonaws.com",
                                    "PublicIp": "***********"
                                },
                                "Attachment": {
                                    "AttachTime": "2020-10-06T05:07:34+00:00",
                                    "AttachmentId": "eni-attach-***********",
                                    "DeleteOnTermination": true,
                                    "DeviceIndex": 0,
                                    "Status": "attached",
                                    "NetworkCardIndex": 0
                                },
                                "Description": "",
                                "Groups": [
                                    {
                                        "GroupName": "launch-wizard-1",
                                        "GroupId": "sg-***********"
                                    }
                                ],
                                "Ipv6Addresses": [],
                                "MacAddress": "***********",
                                "NetworkInterfaceId": "eni-***********",
                                "OwnerId": "***********",
                                "PrivateDnsName": "ip-***********.ec2.internal",
                                "PrivateIpAddress": "***********",
                                "PrivateIpAddresses": [
                                    {
                                        "Association": {
                                            "IpOwnerId": "amazon",
                                            "PublicDnsName": "ec2-***********.compute-1.amazonaws.com",
                                            "PublicIp": "***********"
                                        },
                                        "Primary": true,
                                        "PrivateDnsName": "ip-***********.ec2.internal",
                                        "PrivateIpAddress": "***********"
                                    }
                                ],
                                "SourceDestCheck": true,
                                "Status": "in-use",
                                "SubnetId": "subnet-***********",
                                "VpcId": "vpc-***********",
                                "InterfaceType": "interface"
                            }
                        ],
                        "RootDeviceName": "/dev/sda1",
                        "RootDeviceType": "ebs",
                        "SecurityGroups": [
                            {
                                "GroupName": "launch-wizard-1",
                                "GroupId": "sg-***********"
                            }
                        ],
                        "SourceDestCheck": true,
                        "Tags": [
                            {
                                "Key": "Name",
                                "Value": ""
                            }
                        ],
                        "VirtualizationType": "hvm",
                        "CpuOptions": {
                            "CoreCount": 8,
                            "ThreadsPerCore": 1
                        },
                        "CapacityReservationSpecification": {
                            "CapacityReservationPreference": "open"
                        },
                        "HibernationOptions": {
                            "Configured": false
                        },
                        "MetadataOptions": {
                            "State": "applied",
                            "HttpTokens": "optional",
                            "HttpPutResponseHopLimit": 1,
                            "HttpEndpoint": "enabled"
                        },
                        "EnclaveOptions": {
                            "Enabled": false
                        }
                    }
                ],
                "OwnerId": "***********",
                "ReservationId": "r-***********"
            }
        ]
    }

【问题讨论】:

    标签: amazon-web-services amazon-ec2


    【解决方案1】:

    我尝试在us-east-1e 中启动t3.2xlarge 并收到以下错误:

    您请求的可用区 (us-east-1e) 不支持您请求的实例类型 (t3.2xlarge)。请通过不指定可用区或选择 us-east-1a、us-east-1b、us-east-1c、us-east-1d、us-east-1f 来重试您的请求。

    AWS 可能在此 AZ 中没有可用的 t3.2xlarge 实例。

    【讨论】:

    • 你说得对,如果我选中“请求 Spot 实例”选项,唯一可用的可用区是:us-east-1a、us-east-1b、us-east-1c、us-east -1d,我们-东-1f。然后,我将尝试将我的实例移动到可用的 AZ 之一。谢谢。
    • 成功了。以下是步骤:1)停止实例 2)右键单击它/图像/创建图像 3)转到图像/AMI,右键单击刚刚创建的 AMI 并使用所需的实例类型启动它(在我的情况下为 t3. 2 倍大)。所以它会自动分配正确的AZ。谢谢!
    猜你喜欢
    • 2018-11-05
    • 2019-06-04
    • 2020-10-15
    • 2020-02-19
    • 2016-08-29
    • 2016-05-19
    • 2016-08-26
    • 2018-07-18
    • 1970-01-01
    相关资源
    最近更新 更多