API Doc
Search Docs...
⌘ K
OverviewDeploymentManagementOperationReferenceGlossary

Switching CDP task mode

CDP tasks can be switched between tracking-only mode and normal mode.

  • In tracking-only mode, only dirty extents are recorded and no data replication is performed.
  • In normal mode, data replication proceeds.

Switching to tracking-only mode

Switching a single CDP task to tracking-only mode

Procedure

  • Switch by the task ID:

    zbs-cdp job enter_tracking_only <id> [options]
  • Switching by the local volume ID:

    zbs-cdp job enter_tracking_only_by_volume <volume_id> [options]

Parameter description

ParameterDescription
idThe task ID.
volume_idThe local volume ID.
--sync / --no-syncOptional. Specifies whether to wait synchronously until the task is switched. Default: True.
-v / --version <VER>Optional. Specifies the CDP protocol version (v1 or v2).

Output example

zbs-cdp job enter_tracking_only c0bb7d91-e74b-434c-98e2-00c57e8bb93f

Output note

If the command succeeds, no output is displayed.

Batch switching to tracking-only mode

Procedure

Run the following command on any node in the cluster:

zbs-cdp job enter_tracking_only_by_group <group> [options]

Parameter description

ParameterDescription
groupThe CDP task group name.
--sync / --no-syncOptional. Specifies whether to wait synchronously until the task group is switched. Default: True.
-v / --version <VER>Optional. Specifies the CDP protocol version (v1 or v2).

Output example

zbs-cdp job enter_tracking_only c0bb7d91-e74b-434c-98e2-00c57e8bb93f

Output note

If the command succeeds, no output is displayed.

Exiting tracking-only mode

Exiting tracking-only mode switches the tasks back to normal mode, and normal data replication resumes.

Exiting a single CDP task from tracking-only mode

Procedure

  • Exit by the task ID:

    zbs-cdp job exit_tracking_only <id> [options]
  • Exiting by the local volume ID:

    zbs-cdp job exit_tracking_only_by_volume <volume_id> [options]

Parameter description

ParameterDescription
idThe task ID.
volume_idThe local volume ID.
--sync / --no-syncOptional. Specifies whether to wait synchronously until the mode is exited. Default: True.
-v / --version <VER>Optional. Specifies the CDP protocol version (v1 or v2).

Output example

zbs-cdp job exit_tracking_only c0bb7d91-e74b-434c-98e2-00c57e8bb93f

Output note

If the command succeeds, no output is displayed.

Batch exiting tracking-only mode

Batch exiting tracking-only mode switches all CDP tasks in the specified CDP task group from tracking-only mode to normal mode.

Procedure

Run the following command on any node in the cluster:

zbs-cdp job exit_tracking_only_by_group <group> [options]

Parameter description

ParameterDescription
groupThe CDP task group name.
--sync / --no-syncOptional. Specifies whether to wait synchronously until the mode is exited. Default: True.
-v / --version <VER>Optional. Specifies the CDP protocol version (v1 or v2).

Output example

zbs-cdp job exit_tracking_only c0bb7d91-e74b-434c-98e2-00c57e8bb93f

Output note

If the command succeeds, no output is displayed.