我可以更改我的亚马逊 EC2 实例的根 EBS 设备吗? [英] Can I change the root EBS device of my amazon EC2 instance?

查看:24
本文介绍了我可以更改我的亚马逊 EC2 实例的根 EBS 设备吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个 EBS 支持的 Amazon EC2 实例.我想更改此实例上的根设备.你能建议最好的方法吗?

I have an EBS backed Amazon EC2 instance. I would 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.

推荐答案

是的,这很容易:

  1. 停止实例.
  2. 分离根 EBS 卷.
  3. 将备用 EBS 卷附加为根:/dev/sda1
  4. 启动实例.

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

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

这篇关于我可以更改我的亚马逊 EC2 实例的根 EBS 设备吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆