Unmount Linux File-systems Before Snapshot

0

I have an EC2 instance running ubuntu 20. I use several EBS volumes for ext4 file-systems. I want to backup the volumes with snapshots. Is it necessary for the snapshots to be taken while the file-systems are unmounted?

CLKsoft
preguntada hace 2 años318 visualizaciones
1 Respuesta
1
Respuesta aceptada

Normally it depends on type of workload running on the Filesystem.

Without unmount, snapshot is crash consistent. Based on workload (e.g. database), quiescing it will give app/db consistent snapshot. Below are some good blogs to manage the snapshot process and crash consistent snapshot.

https://aws.amazon.com/blogs/storage/automating-amazon-ebs-snapshots-management-using-data-lifecycle-manager/

https://aws.amazon.com/blogs/storage/taking-crash-consistent-snapshots-across-multiple-amazon-ebs-volumes-on-an-amazon-ec2-instance/

AWS
respondido hace 2 años
profile pictureAWS
EXPERTO
revisado hace 2 años
  • Can be done w/o unmount but, at least in Linux, beware of disk caches. I find some files missing in restored snapshots, Also I found that it is leveraged by issuing a good ol' sudo sync before live snapshotting the volume.

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas