A non-transitory computer-readable storage medium embodying a set of instructions, which when executed by one or more processing resources of a distributed storage system, cause the distributed storage system to:
- for each of a plurality of volumes of the distributed storage system that are members of a local consistency group (CG), maintain information indicative of whether data replication between a dataset associated with the local CG and a mirror copy of the dataset stored on a corresponding plurality of volumes that are members of a remote CG of a remote distributed storage system is in an in-synchronization (InSync) state or an out-of-synchronization (OOS) state;
- and
- responsive to detecting a triggering event relating to a first volume of the plurality of volumes that is in the OOS state:
- preserve dependent write-order consistency on the mirror copy by temporarily disallowing access to a primary copy of data stored on the first volume while allowing input/output operations to continue for those of the plurality of volumes that remain in the InSync state;
- and
- attempt to bring the first volume back into the InSync state by performing a first type of resynchronization process between the first volume and a peered volume of the corresponding plurality of volumes.