I’ve asked this question before, but I am still confused. What’s the correct and quickest way to take a snapshot (I only use EBS-backed Unix and Windows machines, so that’s all my interest right now). Some ideas:
- Just take the snapshot… This seems to sometimes cause system corruption.
- Stop the machine, take the snapshot and then start the machine. I guess this also means I need to wait for each individual task to complete, making scirpting a bit of a challenge?
- Take a snapshot with the ‘reboot machine’ flag set. There is very little in the documentation to specify why a reboot is needed…
Hope you EC2 experts can help me.
Taking a snapshot often requires scheduled downtime.
Procedure:
Afaik, the only viable way for a consistent snapshot.
If you could share more about what kind of data is on the snapshot (e.g. a database?), then I could probably extend my answer.
I cannot comment on Windows-based instances since I’m not at all familiar with it but in order to avoid redundancy, check out this blog entry explains as it explains a lot:
In a nutshell, they use the
xfsfile system and when they freeze it to create the snapshot, they allow updates to the filesystem to pass. According to the comments, it seems to work for most people.