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
질문됨 2년 전317회 조회
1개 답변
1
수락된 답변

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
답변함 2년 전
profile pictureAWS
전문가
검토됨 2년 전
  • 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.

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠