如何增加一个运行实例的EBS卷的大小? [英] How do I increase the EBS volume size of a running instance?

查看:189
本文介绍了如何增加一个运行实例的EBS卷的大小?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我运行Ubuntu的最新的AMI来自Canonical公司的服务器。在EBS启动卷的大小为8GB。我知道,我可以拍摄快照,创建一个新的体积和扩大分区就可以调整EBS卷。我要如何增加音量的大小,机器运行时?如果这是不可能的,什么是preferred方法,用最少的停机时间增加开机音量大小?

I have a server running the recent Ubuntu AMIs from Canonical. The size of the EBS boot volume is 8GB. I know that I can resize EBS volumes by taking a snapshot, creating a new volume and expanding the partition on it. How can I increase the size of the volume while the machine is running? If this is not possible, what is the preferred method for increasing the boot volume size with minimal downtime?

推荐答案

不幸的是,不可能以增加亚马逊EBS <大小/ A>根设备存储容量的亚马逊EC2实例运行时 - 埃里克·哈蒙德已经写了一个详细的(我倾向于说的'规范',了解调整大小根磁盘上正在运行的EBS启动EC2实例

Unfortunately it is not possible to increase the size of an Amazon EBS root device storage volume while the Amazon EC2 instance is running - Eric Hammond has written a detailed (I'm inclined to say the 'canonical' ;) article about Resizing the Root Disk on a Running EBS Boot EC2 Instance:

只要你是确定与一个小​​的停机时间的EC2实例(几   分),它能够改变出根EBS卷带   较大的拷贝,而不需要启动新实例

As long as you are ok with a little down time on the EC2 instance (few minutes), it is possible to change out the root EBS volume with a larger copy, without needing to start a new instance.

如果您正确prepare他所描述的步骤(我强烈建议用一个扔掉的EC2实例最先结识的程序进行测试),你应该能够用几分钟的停机时间完成该过程只确实如此。

If you properly prepare the steps he describes (I highly recommend to test them with a throw away EC2 instance first to get acquainted with the procedure), you should be able to finish the process with a few minutes downtime only indeed.

祝你好运!

这篇关于如何增加一个运行实例的EBS卷的大小?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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