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.

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则