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.

feita há 2 anos206 visualizações
1 Resposta
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
ESPECIALISTA
kentrad
respondido há 2 anos

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas