API Doc
Search Docs...
⌘ K
OverviewDeploymentManagementOperationReferenceGlossary

Ending CDP tasks

Ending a single CDP task

Procedure

Run the following command on any node in the cluster:

  • End by the task ID:

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

    zbs-cdp job finish_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 ended. Default: True.
-v / --version <VER>Optional. Specifies the CDP protocol version (v1 or v2).

Output example

  • End by the task ID:

    zbs-cdp job finish 1 -v v2
  • End by the local volume ID:

    zbs-cdp job finish_by_volume 1 -v v2

Output note

If the command succeeds, no output is displayed. If the execution fails, an error message will be displayed.

Batch ending CDP tasks

Batch ending CDP tasks means ending all CDP tasks in a CDP task group.

Procedure

Run the following command on any node in the cluster:

zbs-cdp job finish_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 ended. Default: True.
-v / --version <VER>Optional. Specifies the CDP protocol version (v1 or v2).

Output example

zbs-cdp job finish_by_group group1 -v v2

Output note

If the command succeeds, no output is displayed. If the execution fails, an error message will be displayed.