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.

Is it safe to use an EBS volumne while a snapshot is being created?

I've currently got a 100Gb EBS volume mounted. I am in the process of snapshotting it. Goodness it's slow!! It's going to end up taking more than 45 minutes to snapshot.

My question : Is the EBS volume already copied and just being saved somewhere? Or, is the snapshot actively copying from my mounted volume right now?

Basically, if I start using it before the snapshot completes, am I hosed?

I just can't believe it takes this long to copy. There really isn't even 100GB in use. It's more like 25Gb.

share|improve this question
add comment

2 Answers

up vote 15 down vote accepted

You're safe to use the volume once you have triggered the snapshot, even if it's still in a pending state according to AWS - see this post.

If you're taking a snapshot for the first time, it probably will take a while as it has to make a full copy to the region-wide S3 bucket, but remember, it's incremental after the first one has been stored so should be a lot faster.

NOTE: You can't create a volume out of a snapshot which is in a pending state. You'll get the error "Snapshot is in invalid state" if you do this.

So please make sure to wait until the snapshot is in the "available" state.

share|improve this answer
add comment

It's perfectly safe to use the volume during a snapshot. As soon as the snapshot command returns, the drive goes into a mode where new data is written elsewhere, so the snapshot is of what the drive looked like when you started.

However, you will experience very degraded performance (as you have noticed) until the snapshot is complete.

So make sure you only take your snapshots during off peak hours.

share|improve this answer
    
Do the EBS volumes reside inside on LVM voumes then as image files? Given you create any arbitary filesystems inside an EC2 guest? e.g. /dev/ebs_uuid/image.bin ? –  mattcodes Oct 15 '12 at 5:14
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.