使用“实例存储”停止Amazon EC2实例

时间:2023-01-26 12:51:35

I have an EC2 instance with "instance store" device as a root device (I did not know the difference between it and EBS before launching it). I would like to stop it but I can not do it with the command ec2-stop-instances, the output is:

我有一个带有“实例存储”设备的EC2实例作为根设备(在启动之前我不知道它与EBS之间的区别)。我想停止它但我不能用命令ec2-stop-instances来做,输出是:

Client.UnsupportedOperation: The instance 'i-XXXXXXXX' does not have an 'ebs' root device type and cannot be stopped.

Client.UnsupportedOperation:实例'i-XXXXXXXX'没有'ebs'根设备类型,无法停止。

Does anybody know how to stop it with Windows Console (I am not the owner of the Amazon account and I won't be able to contact with him for weeks)

有没有人知道如何使用Windows控制台阻止它(我不是亚马逊帐户的所有者,我将无法与他联系数周)

Thanks in advance.

提前致谢。

1 个解决方案

#1


9  

EC2 instance with "instance store" cannot be stopped. They can only be terminated.

带有“实例存储”的EC2实例无法停止。它们只能被终止。

If you would like the ability to stop an instance, I suggest recreating the instance with an EBS root device. These types of instances support the ec2-stop-instances command. You can consider this command as a "pause", since it can be resumed at any time, and you will not be charged for the time the instance is stopped.

如果您希望能够停止实例,我建议使用EBS根设备重新创建实例。这些类型的实例支持ec2-stop-instances命令。您可以将此命令视为“暂停”,因为它可以随时恢复,并且您不会在实例停止时收取费用。

Amazon announced the ability to boot instances from an EBS root volume only in December 2009, so you will find that older documentation and tutorials ignore the extended command-set that came with the EBS root volumes.

亚马逊宣布仅在2009年12月才能从EBS根卷启动实例,因此您会发现较旧的文档和教程忽略了EBS根卷附带的扩展命令集。

Further reading: Amazon EC2 Instances Now Can Boot from Amazon EBS

进一步阅读:Amazon EC2实例现在可以从Amazon EBS启动


I am not the owner of the Amazon account and I won't be able to contact with him for weeks.

我不是亚马逊帐户的所有者,我将无法与他联系数周。

If you really want to "pause" this instance for a few weeks, you can create a machine image (AMI) of your instance and terminate it.

如果您真的想“暂停”此实例几周,则可以创建实例的机器映像(AMI)并终止它。

You will then be able to launch a new instance with your private AMI when you want to "resume" this instance. It will not be the same instance, as in it will have a different instance ID and a different IP, but you will be cloning the setup of your instance.

然后,当您想要“恢复”此实例时,您将能够使用私有AMI启动新实例。它将不是同一个实例,因为它将具有不同的实例ID和不同的IP,但您将克隆实例的设置。

The methods to build an AMI differ if your instance is running Windows or Linux, but you should be able to find adequate information on the web about both scenarios.

如果您的实例运行的是Windows或Linux,则构建AMI的方法会有所不同,但您应该能够在Web上找到有关这两种方案的充分信息。

#1


9  

EC2 instance with "instance store" cannot be stopped. They can only be terminated.

带有“实例存储”的EC2实例无法停止。它们只能被终止。

If you would like the ability to stop an instance, I suggest recreating the instance with an EBS root device. These types of instances support the ec2-stop-instances command. You can consider this command as a "pause", since it can be resumed at any time, and you will not be charged for the time the instance is stopped.

如果您希望能够停止实例,我建议使用EBS根设备重新创建实例。这些类型的实例支持ec2-stop-instances命令。您可以将此命令视为“暂停”,因为它可以随时恢复,并且您不会在实例停止时收取费用。

Amazon announced the ability to boot instances from an EBS root volume only in December 2009, so you will find that older documentation and tutorials ignore the extended command-set that came with the EBS root volumes.

亚马逊宣布仅在2009年12月才能从EBS根卷启动实例,因此您会发现较旧的文档和教程忽略了EBS根卷附带的扩展命令集。

Further reading: Amazon EC2 Instances Now Can Boot from Amazon EBS

进一步阅读:Amazon EC2实例现在可以从Amazon EBS启动


I am not the owner of the Amazon account and I won't be able to contact with him for weeks.

我不是亚马逊帐户的所有者,我将无法与他联系数周。

If you really want to "pause" this instance for a few weeks, you can create a machine image (AMI) of your instance and terminate it.

如果您真的想“暂停”此实例几周,则可以创建实例的机器映像(AMI)并终止它。

You will then be able to launch a new instance with your private AMI when you want to "resume" this instance. It will not be the same instance, as in it will have a different instance ID and a different IP, but you will be cloning the setup of your instance.

然后,当您想要“恢复”此实例时,您将能够使用私有AMI启动新实例。它将不是同一个实例,因为它将具有不同的实例ID和不同的IP,但您将克隆实例的设置。

The methods to build an AMI differ if your instance is running Windows or Linux, but you should be able to find adequate information on the web about both scenarios.

如果您的实例运行的是Windows或Linux,则构建AMI的方法会有所不同,但您应该能够在Web上找到有关这两种方案的充分信息。