I have an EC2 instance running on AWS. I want to clone it without rebooting it. I am using the AWS Management Console to do it. Hence, I have done the following:
I was wondering what could be the problem with doing that? Even with 10 GB AMI creation process is taking too much time, it's been 1 hr. Did anyone try this before?
I was wondering what could be the problem with doing that?
The problem is that you can't reduce EBS volume size. From docs :
Decreasing the size of an EBS volume is not supported . However, you can create a smaller volume and then migrate your data to it using an application-level tool such as rsync.
Basically, it means you can't decrease the size, only increase it. To use smaller volume, you have to migrate your data yourself to new, smaller volume.
So your AMI can't have smaller volume then the original instance.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.