Skip to content
This repository has been archived by the owner on Jan 22, 2023. It is now read-only.

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

Open
kentmw opened this issue Nov 17, 2015 · 1 comment
Open

Comments

@kentmw
Copy link

kentmw commented Nov 17, 2015

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?

@jstaffans
Copy link

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants