Skip to content

About snapshot creation of RBD images with exclusive-lock feature #4959

Closed Answered by idryomov
satoru-takeuchi asked this question in Q&A
Discussion options

You must be logged in to vote

I assume we can map RBD images with the exclusive-lock feature without actually acquiring the lock (using the --exclusive option), and still create snapshots without causing metadata corruption. Is my understanding correct?

Correct, you don't need to use --exclusive option to take advantage of fast-diff. Without --exclusive option, krbd would acquire the lock as needed (for I/O) and release it as needed (for a maintenance operation, such as creating a snapshot).

I'm concerned that creating snapshots of such RBD images might lead to inconsistencies between the in-memory object map and the on-disk one.

This shouldn't happen. There was a very nasty bug in this area which affected both kr…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by idryomov
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
component/rbd Issues related to RBD
2 participants