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.

posta 2 anni fa206 visualizzazioni
1 Risposta
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
ESPERTO
kentrad
con risposta 2 anni fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande