我可以改变我的Amazon EC2实例的根EBS设备? [英] Can I change the root EBS device of my amazon EC2 instance?
本文介绍了我可以改变我的Amazon EC2实例的根EBS设备?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个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.
这篇关于我可以改变我的Amazon EC2实例的根EBS设备?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文