Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What happens when I reboot an EC2 instance?

When I reboot an EC2 instance, do I get the initial image again, or is the state of the hard disk before the reboot kept?

And what happens with billing, does the hour start again, or do I continue with the fraction of the hour I was in when I rebooted?

like image 488
flybywire Avatar asked Mar 12 '09 08:03

flybywire


People also ask

Why does EC2 change after reboot?

Actually, When you stop/start your instance, the IP address will change. If you reboot the instance, it will keep the same IP addresses. Unfortunately, it is not possible for us to reassign the address to your instance as that address would have been released back into the pool used by other EC2 instances.

What happens to the data on an instance if the instance reboots?

The data in an instance store persists only during the lifetime of its associated instance. If an instance reboots (intentionally or unintentionally), data in the instance store persists.

How long does it take to reboot an AWS instance?

When an instance is scheduled for a System Reboot, you will be given a time window during which the reboot will occur. During that time window, you should expect your instance to be cleanly rebooted. This generally takes about 2-10 minutes but depends on the configuration of your instance.


2 Answers

Rebooting an instance is like rebooting a PC. The hard disk isn't affected. You don't return to the image's original state, but the contents of the hard disks are those before the reboot.

Rebooting isn't associated with billing. Billing starts when you instantiate an image and stops when you terminate it. Rebooting in between hasn't any effect.

like image 104
kgiannakakis Avatar answered Nov 10 '22 01:11

kgiannakakis


Rebooting keeps the disks intact.

If you shut down the instance and power up a new one, the disks will be reset to their initial states.

This doesn't apply to the EBS disks, which persist even across shutdowns.

like image 26
Barry Brown Avatar answered Nov 10 '22 00:11

Barry Brown