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

发布于 2024-08-20 18:08:21 字数 297 浏览 6 评论 0原文

我有一个 EC2 实例,以“实例存储”设备作为根设备(在启动它之前我不知道它和 EBS 之间的区别)。我想停止它,但无法使用命令 ec2-stop-instances 来执行此操作,输出为:

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

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

提前致谢。

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:

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

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)

Thanks in advance.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

秋意浓 2024-08-27 18:08:21

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

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

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

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


我不是亚马逊的所有者
帐户,我将无法联系
和他在一起几个星期。

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

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

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

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

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.

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.

Further reading: Amazon EC2 Instances Now Can Boot from 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.

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.

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文