From my experience, the way I do it is create a snapshot of your current image, then once its done you'll see it as an option when launching new instances. Simply launch it as a large instance at that point.
This is my approach if I do not want any downtime(i.e. production server) because this solution only takes a server offline only after the new one is up and running(I also use it to add new machines to my clusters by using this approach to only add new machines). If Downtime is acceptable then see Marcel Castilho's answer.
启动大型 EBS 实例 具有相同的 AMI 类型(请注意,此时磁盘将包含创建此 AMI 时存在的数据,而不是您的最新更改)
完全启动后,停止新实例
<强>分离已停止实例的根卷
从之前在新实例的同一可用区中创建的快照创建虚拟磁盘
将根卷附加到 /dev/sda1 >
再次启动新实例
Use the AWS EC2 console, not ElasticFox.
First Way:
Create a new AMI of the instance
Launch it
Alternative Way:
Make a snapshot of the disk
Launch a large EBS instance with the same AMI type (please note that at this point the disk will contain the data that was present when this AMI was created, not your latest changes)
Once is fully booted, stop the new instance
Detach the root volume from the stopped instance
Create a virtual disk from the snapshot created before in the same availability zone of the new instance
发布评论
评论(5)
使用 AWS 管理控制台:
Using AWS Management Console:
根据我的经验,我的做法是创建当前图像的快照,然后一旦完成,您将在启动新实例时看到它作为一个选项。此时只需将其作为大型实例启动即可。
如果我不希望任何停机(即生产服务器),这是我的方法,因为此解决方案仅在新服务器启动并运行后才使服务器离线(我还使用它通过使用此方法将新计算机添加到我的集群中仅添加新机器)。如果停机时间可以接受,请参阅 Marcel Castilho 的回答。
From my experience, the way I do it is create a snapshot of your current image, then once its done you'll see it as an option when launching new instances. Simply launch it as a large instance at that point.
This is my approach if I do not want any downtime(i.e. production server) because this solution only takes a server offline only after the new one is up and running(I also use it to add new machines to my clusters by using this approach to only add new machines). If Downtime is acceptable then see Marcel Castilho's answer.
使用 AWS 管理控制台
Using the AWS Management Console
使用 AWS EC2 控制台,而不是 ElasticFox。
第一种方法:
替代方法:
Use the AWS EC2 console, not ElasticFox.
First Way:
Alternative Way:
创建 AMI ->在大型实例上启动 AMI。
更多信息 http://docs.amazonwebservices.com/AmazonEC2/gsg/ 2006-06-26/creating-an-image.html
您也可以通过 aws.amazon.com 的管理控制台执行这一切
Create AMI -> Boot AMI on large instance.
More info http://docs.amazonwebservices.com/AmazonEC2/gsg/2006-06-26/creating-an-image.html
You can do this all from the admin console too at aws.amazon.com