Can I change the root EBS device of my amazon EC2 instance?

前端 未结 6 404
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-12 12:43

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 do

6条回答
  •  北荒
    北荒 (楼主)
    2020-12-12 13:05

    This is the aws suggested solution You can detach the root volume from the original instance after stopping it. The root volume is attached at /dev/sda1. Once this is detached, please attach it to the new instance. After the volume is attached, you may have to mount it from the OS. After it's mounted, you should see the data within it.

    After you've done adding the new key, you can detach it and attach to the original instance at /dev/sda1.

    I suggest creating a snapshot of the root volume before making any changes.

    Before trying out any solutions just try out in the not important instances or spot instances

提交回复
热议问题