Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have my database backed up to an EBS drive. My current backup method is

1) queue all writes (not important how)

2) kill database process

3) detach + umount ebs volume

4) take snapshot

5) reattach AFTER snapshot is complete

My question is, the snap actually takes a while, can I re-attach my EBS while my EC2 snapshot is in the pending state, or do I risk corruption / data lose?

share|improve this question
add comment

2 Answers

up vote 1 down vote accepted

Yes, you can use an EBS volume while a snapshot of that volume is pending (being created).

Writes to the volume will not affect what gets put in the snapshot. The snapshot will be a point-in-time copy of the EBS volume at the time of the create-snapshot call.

Note, however, that you may find writes to the volume have increased latency as they may be slowed down by the snapshot creation activity.

share|improve this answer
add comment

After the snapshot API call returns, you are safe to resume IO on that volume.

From AWS's documentation on this:

You may remount and use your volume while the snapshot status is pending.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.