首页 > 解决方案 > 如何将 AWS EC2 从 t2.2xlarge 升级到 t3.2xlarge?

问题描述

我有一个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-servicesamazon-ec2

解决方案


我试图启动一个t3.2xlarge输入us-east-1e并得到以下错误:

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

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


推荐阅读