Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rbd: add support for mirror image promotion/demotion/resync #8138

Merged
merged 10 commits into from Mar 16, 2016

Conversation

dillaman
Copy link

No description provided.

@dillaman
Copy link
Author

@jdurgin I quickly threw these CLI commands together since I need to reference them in the admin documentation.

Jason Dillaman added 6 commits March 15, 2016 20:14
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
return -EBUSY;
}

r = Journal<>::allocate_tag(ictx, Journal<>::LOCAL_MIRROR_UUID);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess we might want an interlock with rbd-mirror here so that it doesn't have any i/o in flight to the local image after it's promoted, so it can be used after promotion immediately

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah -- might be good for me to throw a TODO here

Jason Dillaman added 4 commits March 15, 2016 20:38
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
When a client is disconnected from the journal, entries can be
pruned regardless of the affected client's commit position.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
A secondary image will store its resync request to the primary
image's journal. When the local rbd mirror process detects the
flag being set, it can initiate a resync from the remote.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
jdurgin added a commit that referenced this pull request Mar 16, 2016
rbd: add support for mirror image promotion/demotion/resync

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
@jdurgin jdurgin merged commit d04da80 into ceph:master Mar 16, 2016
@dillaman dillaman deleted the wip-15141 branch March 16, 2016 01:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants