AWS EC2 AMI – With or Without Reboot

amazon ec2amazon-amiamazon-web-services

When creating AMI's from an EC2 instance I always check "no reboot", I've been wondering, what are the pros/cons of creating images with/without a reboot? Does keeping the server live affect the quality of the ami produced or is it just as good as a reboot?

Best Answer

With a proper shutdown, it's stateless,in cold form and filesystems are sound. Basically nothing is in buffer or "moving around" while its creating the image. I believe the image creation also creates a bit of overhead as well. Rebooting is the most ideal situation an image will be in during creation. This doesn't mean you can't snapshot while it's up or that it's always bad.

Related Topic