EBS根实例似乎没有任何实例存储

发布于 2024-10-14 08:22:21 字数 123 浏览 1 评论 0原文

EBS 根实例似乎没有任何实例存储 - 这是正确的还是一些奇怪的错误?

我期望 /dev/sda 成为 EBS 支持的卷,然后将其他实例存储设备作为 /dev/sdb 等...

这是一个错误的假设吗?

EBS root instances seem to not have any instance storage - is this correct or some odd bug?

I'm expecting to have /dev/sda to be the EBS backed volume, and then have the other instance storage devices there as /dev/sdb etc...

Is this an incorrect assumption?

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

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

发布评论

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

评论(1

甩你一脸翔 2024-10-21 08:22:21

这不是一个错误。与 Ephemeral 不同,基于 EBS 的实例不会为您提供任何免费存储空间。

不过,您可以创建一个新的 EBS 卷并将其附加到您的实例。

干杯

编辑:我相信我让你误入歧途,因为这似乎已经改变了。您仍然无法将本地磁盘附加到现有正在运行的实例,但这似乎在启动时是可能的。
看:
http://docs.amazonwebservices.com/AWSEC2/latest/UserGuide /index.html?Using_AddingDefaultLocalInstanceStorageToAMI.html

取自上述 URL,具有 80GB EBS 根卷和临时存储的设备映射。

https://ec2.amazonaws.com/
?Action=RegisterImage
&Name=MyImage
&KernelId=aki-f70657b2
&RamdiskId=ari-ff0d5cba
&RootDeviceName=/dev/sda1
&BlockDeviceMapping.1.DeviceName=/dev/sda1
&BlockDeviceMapping.1.Ebs.SnapshotId=snap-12345678
&BlockDeviceMapping.1.Ebs.VolumeSize=80
&BlockDeviceMapping.1.Ebs.DeleteOnTermination=false
&BlockDeviceMapping.2.DeviceName=/dev/sdc
&BlockDeviceMapping.2.VirtualName=ephemeral0
&...auth parameters...

It's not a bug. Unlike Ephemeral, EBS based instances don't give you any free storage.

You can however create a new EBS volume and attach it to your instance.

Cheers

Ray

EDIT: I believe I led you astray as this seems to have changed. You still cannot attach local disk to an existing running instance but this does seem to be possible at launch time.
See:
http://docs.amazonwebservices.com/AWSEC2/latest/UserGuide/index.html?Using_AddingDefaultLocalInstanceStorageToAMI.html

Taken from the above url, device mapping with an 80gb EBS root volume plus ephemeral storage.

https://ec2.amazonaws.com/
?Action=RegisterImage
&Name=MyImage
&KernelId=aki-f70657b2
&RamdiskId=ari-ff0d5cba
&RootDeviceName=/dev/sda1
&BlockDeviceMapping.1.DeviceName=/dev/sda1
&BlockDeviceMapping.1.Ebs.SnapshotId=snap-12345678
&BlockDeviceMapping.1.Ebs.VolumeSize=80
&BlockDeviceMapping.1.Ebs.DeleteOnTermination=false
&BlockDeviceMapping.2.DeviceName=/dev/sdc
&BlockDeviceMapping.2.VirtualName=ephemeral0
&...auth parameters...
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文