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 年前檢視次數 318 次
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.

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南