Project

General

Profile

Subtask #13296

Feature #12901: librbd: zone + zonegroup configuration

Mirroring API + rbd CLI updates for images

Added by Jason Dillaman over 5 years ago. Updated about 5 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Target version:
% Done:

0%

Source:
other
Tags:
Backport:
Reviewed:
Affected Versions:
Pull request ID:

Description

A new "mirroring enabled" field should be added to the RBD image header. Mirroring should not rely on a feature bit.

* rbd mirror image enable <image-spec>
        This is an alias for 'rbd feature enable mirroring'

* rbd mirror image disable <image-spec>
        This is an alias for 'rbd feature disable mirroring'

* rbd mirror image resync <image-spec>
        This will delete the local image and initiate a full resync
        with a remote primary image.  This can be used to fix an
        inconsistent secondary image.

Also add journal details/mirroring status support to 'rbd info' and 'rbd status'

Associated revisions

Revision c048d2b8 (diff)
Added by Ricardo Dias about 5 years ago

rbd: rbd-mirroring: Added mirroing info to image info command in RBD CLI

Signed-off-by: Ricardo Dias <>
Fixes: #13296

History

#1 Updated by Jason Dillaman over 5 years ago

  • Description updated (diff)

#2 Updated by Jason Dillaman over 5 years ago

  • Status changed from New to In Progress
  • Assignee set to Jason Dillaman

#3 Updated by Jason Dillaman about 5 years ago

  • Status changed from In Progress to 12
  • Assignee deleted (Jason Dillaman)

#4 Updated by Ricardo Dias about 5 years ago

Jason Dillaman wrote:

A new "mirroring enabled" field should be added to the RBD image header. Mirroring should not rely on a feature bit.

[...]

Also add journal details/mirroring status support to 'rbd info' and 'rbd status'

Since the commit #28e2d1b, image mirroring information is being stored in the "image directory" under the "rbd_mirroring" object.

Is the following command:

rbd mirror image enable <image-spec>

supposed to change the state kept in the image_directory?

#5 Updated by Jason Dillaman about 5 years ago

Correct, the description is from an old design. We are using http://pad.ceph.com/p/rbd_mirror_daemon to track the current design. The current design involves using the 'rbd_mirroring' object to denote which images have mirroring enabled. This simplified the requirements of the RBD mirroring daemon so that it no longer needed to open each image in the pool to determine if the image should be mirrored.

#6 Updated by Ricardo Dias about 5 years ago

  • Status changed from 12 to In Progress
  • Assignee set to Ricardo Dias

#7 Updated by Ricardo Dias about 5 years ago

Jason Dillaman wrote:

Also add journal details/mirroring status support to 'rbd info' and 'rbd status'

What journal details should be shown?

#8 Updated by Jason Dillaman about 5 years ago

  • Status changed from In Progress to Resolved

Also available in: Atom PDF