Lifecycle Manager signals to EC2 process

0

We use Lifecycle Manager to do regular EBS Snapshots of our EC2 data volumes. Since as noted in the docs the snapshot data is stable once the snapshot enters the 'pending' state, I wondered if there was any way a process on the EC2 can know when a snapshot is started and when it has entered pending ? The reason being it may need to stop a process using that data volume for this short period to avoid possible inconsistency of the snapshot from the applications point of view.

From :

https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-creating-snapshot.html

Snapshots occur asynchronously; the point-in-time snapshot is created immediately, but the status of the snapshot is pending until the snapshot is complete (when all of the modified blocks have been transferred to Amazon S3), which can take several hours for large initial snapshots or subsequent snapshots where many blocks have changed. While it is completing, an in-progress snapshot is not affected by ongoing reads and writes to the volume.

asked 2 years ago198 views
1 Answer
0

I don't think this is possible with DLM. However, you could recreate the DLM functionality using Systems Manager automation that would allow you inject a process pause before the snapshot is taken and a resume after. See: Amazon EBS.

profile pictureAWS
EXPERT
kentrad
answered 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions