blockmapping map_host_to_volumes

Prev Next

This command creates a mapping of a single block storage host to one or more block storage volumes.

Usage

blockmapping map_host_to_volumes --blockhost-id ID
                                 --volume-ids IDS

Required Parameters

--blockhost-id ID

Specifies the block host to map to volumes.

--volume-ids IDS

Specifies one or more volumes to map to the host.

Specify IDS as a comma separated list of volume IDs.

Examples

vcli: admin> blockmapping map_host_to_volumes --blockhost-id 2 --volume-ids 1

Waiting ...
Waiting ... \
[2025-02-26 17:42:57] mapping host blockhost1 to volume dev/platform, clone_id=None in subsystem blocktarget1
[2025-02-26 17:42:58] mapping host blockhost1 to volume dev/platform finished,remote_mapping_object_id=1, remote_volume_object_id=1
[2025-02-26 17:42:58] bulk mapping finished successfully ... |

Completed
vcli: admin> 
vcli: admin> blockmapping map_host_to_volumes --blockhost-id 1 --volume-ids 1 --snapshot-id 2

Waiting ...
Waiting ... \
[2025-04-06 14:59:40] mapping host Host to volume vol1, clone_id=1000000001 in subsystem Subsystem
[2025-04-06 14:59:40] mapping host Host to volume vol1 finished,remote_mapping_object_id=7, remote_volume_object_id=15
[2025-04-06 14:59:41] bulk mapping finished successfully ... |

Completed