hitachivantara.vspone_block.vsp.hv_truecopy_bulk module – Manages bulk TrueCopy pairs on VSP block storage systems.
Note
This module is part of the hitachivantara.vspone_block collection (version 4.7.0).
You might already have this collection installed if you are using the ansible package.
It is not included in ansible-core.
To check whether it is installed, run ansible-galaxy collection list.
To install it, use: ansible-galaxy collection install hitachivantara.vspone_block.
You need further requirements to be able to use this module,
see Requirements for details.
To use it in a playbook, specify: hitachivantara.vspone_block.vsp.hv_truecopy_bulk.
New in hitachivantara.vspone_block 4.7.0
Synopsis
This module allows for the bulk creation of TrueCopy pairs n VSP block storage systems
Enables efficient provisioning of multiple TrueCopy pairs in a single operation.
For examples, go to URL https://github.com/hitachi-vantara/vspone-block-ansible/blob/main/playbooks/vsp_direct/truecopy_bulk.yml
Requirements
The below requirements are needed on the host that executes this module.
python >= 3.9
Parameters
Parameter |
Comments |
|---|---|
Information required to establish a connection to the storage system. |
|
IP address or hostname of the storage system. |
|
Token used to operate on locked resources. |
|
Type of connection to the storage system. Choices:
|
|
Password for authentication. This is a required field. |
|
Username for authentication. This is a required field. |
|
Information required to establish a connection to the secondary storage system. |
|
IP address or hostname of the Hitachi storage system. |
|
This field is used to pass the value of the lock token of the secondary storage to operate on locked resources. |
|
Password for authentication.This is a required field if api_token is not provided. |
|
Username for authentication. This is a required field if api_token is not provided. |
|
Specification for the bulk TrueCopy pairs task. |
|
Beginning primary volume ID for batch creation using existing volumes. |
|
Begin LDEV ID for secondary volume range. |
|
Capacity saving mode for new volumes (e.g., ‘compression’, ‘deduplication_compression’). |
|
Consistency Group ID, 0 to 255. This is an optional field. |
|
Name of the copy group. |
|
Copy pace to be used for the GAD pair, Supports 1 to 15. Default: |
|
Prefix for the copy pairs names. Actual copy pair names will be <copy_pair_base_name>_<primary_volume_id>_<secondary_volume_id> |
|
Specify whether to create a data reduction shared volume. This value is set to true for Thin Image Advance. Choices:
|
|
Perform initial copy. This is an optional field during create operation. Choices:
|
|
Ending primary volume ID for batch creation using existing volumes. |
|
End LDEV ID for secondary volume range. |
|
Specifies the primary volume fence level setting and determines if the host is denied access or continues to access the primary volume when the pair is suspended because of an error. This is an optional field. Choices:
|
|
This is an optional field during create operation. Depending on the value, this attribute specifies whether to register the new pair in a consistency group. If true, the new pair is registered in a consistency group. If false, the new pair is not registered in a consistency group. Choices:
|
|
Force copy for data reduction. This is an optional field during create operation. Choices:
|
|
Create a new copy group. This is an optional field during create operation. Choices:
|
|
Name of the local device group. This is an optional field. |
|
Number of GAD pairs to create in batch. |
|
This is an optional field during create operation. Specify the path group ID in the range from 0 to 255. If you are unsure don’t use this parameter. If you omit this value or specify 0, the lowest path group ID in the specified path group is used. |
|
List of hostgroup objects for the primary volumes. |
|
LUN ID of the host group on the secondary storage system. This is not required for create operation. |
|
Name of the host group on the secondary storage system. This is required for create operation. |
|
Port of the host group on the secondary storage system. This is required for create operation. |
|
The list of iscsi targets on the primary storage device. |
|
LUN ID. |
|
ISCSI target name. |
|
Port ID. |
|
NVM subsystem details of the primary volume.. |
|
Name of the NVM subsystem on the primary storage system. |
|
Host NQN paths information on the primary storage system. |
|
ID of the dynamic pool where the primary volumes will be created. |
|
Prefix for primary volume names when creating new volumes in bulk. |
|
Number of digits to use for the suffix of primary volume names during bulk creation. Choices:
|
|
The starting number that will be appended to primary_volume_base_name to generate the first volume name during bulk creation. |
|
Name of the remote device group. This is an optional field. |
|
List of hostgroup objects for the secondary volumes. |
|
LUN ID of the host group on the secondary storage system. This is not required for create operation. |
|
Name of the host group on the secondary storage system. This is required for create operation. |
|
Port of the host group on the secondary storage system. This is required for create operation. |
|
The list of iscsi targets on the secondary storage device. |
|
LUN ID. |
|
ISCSI target name for the secondary storage system. |
|
Port ID. |
|
NVM subsystem details of the secondary volume. |
|
Name of the NVM subsystem on the secondary storage system. |
|
Host NQN paths information on the secondary storage system. |
|
ID of the dynamic pool where the secondary volumes will be created. |
|
Size of volumes to create (e.g., ‘10GB’, ‘1TB’) to create TrueCopy pairs. |
|
Set state to Choices:
|
Attributes
Attribute |
Support |
Description |
|---|---|---|
Support: none |
Determines if the module should run in check mode. |
Examples
- name: Create a TrueCopy pairs in bulk mode
hitachivantara.vspone_block.vsp.hv_truecopy_bulk:
connection_info:
address: storage1.company.com
username: "admin"
password: "secret"
secondary_connection_info:
address: storage2.company.com
username: "admin"
password: "secret"
spec:
number_of_pairs: 2
copy_group_name: "rd_tc_cg_123"
copy_pair_base_name: "rd_tc_cp_123_"
primary_pool_id: 0
secondary_pool_id: 0
volume_size: "1GB"
primary_hostgroups:
- name: "snewar-common-hg-01"
port_id: "CL2-A"
- name: "snewar-common-hg-01"
port_id: "CL2-B"
secondary_hostgroups:
- name: "snewar-common-hg-01"
port_id: "CL2-A"
- name: "snewar-common-hg-01"
port_id: "CL2-B"
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
|---|---|
List of TrueCopy pair objects returned by the module. Returned: success |
|
Consistency Group ID. Returned: success Sample: |
|
Name of the copy group. Returned: success Sample: |
|
Name of the copy pair. Returned: success Sample: |
|
Deprecated.Copy progress rate. Returned: success Sample: |
|
Fence level. Returned: success Sample: |
|
Name of the local device group to retrieve TrueCopy pair information for. Returned: success Sample: |
|
Primary volume ID. Returned: success Sample: |
|
Primary volume ID in hex format. Returned: success Sample: |
|
Size of the primary volume. Returned: success Sample: |
|
Primary volume status. Returned: success Sample: |
|
Storage serial number of the primary volume. Returned: success Sample: |
|
Deprecated. Use primary_volume_status instead. Returned: success Sample: |
|
Deprecated. PVOL storage device ID. Returned: success Sample: |
|
Name of the remote device group to retrieve TrueCopy pair information for. Returned: success Sample: |
|
Remote mirror copy pair ID. Returned: success Sample: |
|
Secondary volume ID. Returned: success Sample: |
|
Secondary volume ID in hex format. Returned: success Sample: |
|
Size of the secondary volume. Returned: success Sample: |
|
Secondary volume status. Returned: success Sample: |
|
Storage serial number of the secondary volume. Returned: success Sample: |
|
Deprecated. Use primary_volume_storage_serial_number instead. Returned: success Sample: |
|
Deprecated. Use secondary_volume_status instead. Returned: success Sample: |
|
Deprecated. SVOL storage device ID. Returned: success Sample: |