我可以改变我的Amazon EC2实例的根EBS设备?我的、实例、设备、Amazon

由网友(你余生有我)分享简介:我有一个EBS支持的Amazon EC2实例。我想改变root设备上的此实例。你能请告知去了解这一点的最好方法是什么? I have an EBS backed Amazon EC2 instance. I'd like to change the root device on this instance. Can...

我有一个EBS支持的Amazon EC2实例。我想改变root设备上的此实例。你能请告知去了解这一点的最好方法是什么?

I have an EBS backed Amazon EC2 instance. I'd like to change the root device on this instance. Can you please advise the best way to go about this?

我只找到改变块设备的几个属性的文件,但他们似乎并不包括其设置为根设备。提前致谢。

I only find documentation on changing several attributes of block devices, but they don't seem to include setting it as the root device. Thanks in advance.

推荐答案

是的,它的死很容易:

停止实例。 分离根EBS卷。 附加备用EBS卷(作为root例如/ dev / sda1的) 启动实例。

这presupposes您的备用EBS卷,当然是启动, - 它必须包含可引导的操作系统映像

This presupposes that your alternate EBS volume is bootable, of course - it has to contain the bootable OS image.

阅读全文

相关推荐

最新文章