hitachivantara.vspone_block.vsp.hv_hur_bulk module – Manages bulk HUR 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_hur_bulk.
New in hitachivantara.vspone_block 3.1.0
Synopsis
This module allows for the bulk creation of HUR pairs on VSP block storage systems. - Enables efficient provisioning of multiple HUR pairs in a single operation.
For examples, go to URL https://github.com/hitachi-vantara/vspone-block-ansible/blob/main/playbooks/vsp_direct/hur_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 secondary storage system. |
|
Value of the lock token to operate on locked resources. |
|
Password for authentication for the secondary storage system if api_token is not provided. |
|
Username for authentication for the secondary storage system if api_token is not provided. |
|
Specification for the bulk HUR pairs task. |
|
Specify whether to allocate a new consistency group. Choices:
|
|
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. |
|
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:
|
|
Specify whether to enable delta resync. 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:
|
|
Specify whether to enable consistency group. Choices:
|
|
Force copy for data reduction. Optional for the Create HUR pair in new copy group. Choices:
|
|
Specify whether to enable new group creation. Choices:
|
|
Name of the local device group name. |
|
Mirror Unit Number. Choices:
|
|
Number of GAD pairs to create in batch. |
|
Optional for the Create HUR pair in new copy group /Create HUR-NVMe pair /Create HUR-ISCSI pair tasks. 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. |
|
Journal ID for the primary volume. This is an optional field. |
|
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 dynamic pool on the primary storage where the primary volume 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 name. |
|
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. |
|
Journal ID for the secondary volume. This is an optional field. |
|
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 dynamic pool on the secondary storage where the secondary volume will be created. |
|
Size of volume to create (e.g., ‘10GB’, ‘1TB’) HUR pairs. |
|
Set state to Choices:
|
Attributes
Attribute |
Support |
Description |
|---|---|---|
Support: none |
Determines if the module should run in check mode. |
Examples
- name: Create a HUR pairs in bulk mode
hitachivantara.vspone_block.vsp.hv_hur_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_hur_cg_123"
copy_pair_base_name: "rd_hur_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 |
|---|---|
Newly created HUR pair object. 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 rate. Returned: success Sample: |
|
Fence level setting. Returned: success Sample: |
|
Name of the local device group to retrieve TrueCopy pair information for. Returned: success Sample: |
|
Deprecated. Use mirror_unit_number instead. Returned: success Sample: |
|
Mirror unit number. Returned: success Sample: |
|
Primary journal Id. Returned: success Sample: |
|
Deprecated. Use primary_journal_id instead. Returned: success Sample: |
|
Primary volume ID. Returned: success Sample: |
|
Hexadecimal representation of the primary volume ID. Returned: success Sample: |
|
Primary volume status. Returned: success Sample: |
|
Deprecated. Use primary_volume_storage_serial_number instead. 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: |
|
Deprecated. Remote mirror copy pair ID. Returned: success Sample: |
|
Secondary journal ID. Returned: success Sample: |
|
Deprecated. Use secondary_journal_id instead. Returned: success Sample: |
|
Secondary volume ID. Returned: success Sample: |
|
Hexadecimal representation of the secondary volume ID. Returned: success Sample: |
|
Deprecated. Use secondary_volume_storage_serial_number instead. Returned: success Sample: |
|
Storage serial number of the secondary volume. Returned: success Sample: |
|
SVOL status. Returned: success Sample: |
|
Deprecated. SVOL storage device ID. Returned: success Sample: |