Support mirroring Ceph filesystem snapshots to a remote Ceph filesystem. The remote filesystem can be a filesystem on the same cluster or on a different Ceph cluster (possibly over a WAN). Requirements: - allow the user to add remove directories for which snapshots have to be replicated - allow the user to add non-existent directories for snapshot mirroring. The directory would later come into existence - allow multiple remote ceph filesystems (as peers) for synchronization - provide an interface to fetch synchronization status for peer(s) - support mirroring via a single mirror daemon (for now) - deleted and rename snapshots should be propagated to the peer
Note that once a directory is configured for mirroring, its ancestor (upto root) and all of its subdirectories are disallowed for mirroring. E.g.: $ mkdir -p /d0/d1/d2/d3 $ ceph fs snapshot mirror add cephfs /d0/d1/d2 {} $ ceph fs snapshot mirror add cephfs /d0/d1 Error EINVAL: /d0/d1 is a ancestor of tracked path /d0/d1/d2 $ ceph fs snapshot mirror add cephfs /d0/d1/d2/d3 Error EINVAL: /d0/d1/d2/d3 is a subtree of tracked path /d0/d1/d
Hi Venky, Please review the technical veracity of the modified text. Thanks Amrita
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (Red Hat Ceph Storage 5.0 bug fix and enhancement), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2021:3294