Procedure
Run the following command on any node in the cluster to copy the source volume to the destination volume.
zbs-task copy_volume copy <src_volume_id> <dst_volume_id> <src_hosts> <dst_hosts>
src_hosts and dst_hosts are both formatted as ip:10201:10206.
Output example
{'created_ms': 1718692495535,
'expect_state': 0,
'id': '203d6492-713a-4cb6-afc0-fb67284b29b0',
'last_failed_ms': 0,
'max_schedule_times': 10,
'method_id': 0,
'name': '',
'schedule_times': 0,
'service_id': 6007,
'state': 2,
'task': {'bps_max': 314572800,
'cur_state': 0,
'dst_hosts': 'localhost:10201:10206',
'dst_volume_id': 'fe4daff8-9cd3-494e-8d22-bd5a4af2e54d',
'io_depth': 32,
'preferred_cid': 0,
'runtime': {'end_hour': 23,
'end_min': 59,
'start_hour': 0,
'start_min': 0},
'skip_zero': False,
'src_hosts': 'localhost:10201:10206',
'src_volume_id': 'a116a8b8-9cfb-4c33-8640-3cb1a60df6d0',
'use_compression': False}}