This section explains how to use the qq replication_set_target_relationship_lock command.

Description

The key that locks policy-created snapshots for a target replication relationship. Consider the following system behavior: If you don’t set a key, the system does not lock the snapshots that the specified target replication relationship creates. The system locks only policy-created snapshots, unless you configure an expiration for the snapshot policy on the target cluster. If you reverse the relationship by switching the source and target, the new target cannot use this lock key and you must set a key for the new target. However, if you revert the relationship by returning the source and target to their original assignments, the system lets you use lock key from the original source-target relationship. If a target replication relationship uses a lock key, you cannot disable or delete the key, unless you reverse the relationship. If you disable or delete a lock key while a target replication relationship is reversed and then return the source and target to their original assignments, you must set a new key.

Usage

qq replication_set_target_relationship_lock [-h] --relationship-id RELATIONSHIP_ID (-k LOCK_KEY | --clear-lock-key)

Flags

Flag Name Required Description
--relationship-id Yes The unique identifier of the target replication relationship.
-k No The identifier or name of the lock key to associate with the specified target replication relationship.
--clear-lock-key No Disassociate the lock key from this target relationship