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.

gefragt vor 2 Jahren206 Aufrufe
1 Antwort
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
EXPERTE
kentrad
beantwortet vor 2 Jahren

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen