Are azure disk snapshots not atomic? #3696
Unanswered
scoopex
asked this question in
Community support Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
One of my backup mechanisms of my postgres databases running on a AKS cluster data is based on velero disk snapshots.
I implemented a automated test procedure to verify my active backup-mechanisms. This procedure automatically runs a backup every night at 2AM, deletes a namespace and restores that namespace at 3AM (a situation of very low activity).
Unfortunately the restored postgresql database (pvc/pv created for the snapshot) does not start properly after restart with the following messages.
In my understanding a postgresql-situation like this only can happen if disk snapshots are not atomic.
Obviously, a restored snapshot is always in a unclean mount state and unclean database state.
The data located on the snapshot should be consistent in the moment of the snapshot from a point of view of binary write operations order. I my situation this not seems to be true because the database is not capable to recover in a automated way after the filesystem recovery.
Are azure disk snapshots not atomic and how do disk-snapshots make sense if they are not?
Beta Was this translation helpful? Give feedback.
All reactions