aws-ec2-ebs-automatic-snapshot-bash icon indicating copy to clipboard operation
aws-ec2-ebs-automatic-snapshot-bash copied to clipboard

Does xfs_freeze need to be run before running the create-snapshot?

Open kentmw opened this issue 9 years ago • 1 comments

I'm reading how to backup mongo from an ebs volume and it suggests locking the db before doing a snapshot. It also suggests locking the filesystem if there's anything else on the volume. https://docs.mongodb.org/ecosystem/tutorial/backup-and-restore-mongodb-on-amazon-ec2/

I was wondering if there could be a way to trigger a lock and unlock before this cronjob runs. Has anyone run into issues where the snapshots aren't able to be used because there is data corrupted during the snapshot?

kentmw avatar Nov 17 '15 18:11 kentmw

Yes, I just ran into this issue. This script works well with ext4 but restoring snapshots of xfs volumes will not work. Should be an easy addition, though.

jstaffans avatar Jan 22 '16 09:01 jstaffans