hitachivantara.vspone_block.vsp.hv_gad_bulk module – Manages batch GAD 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_gad_bulk.
New in hitachivantara.vspone_block 4.7.0
Synopsis
This module allows for the batch creation of multiple GAD pairs on VSP block storage systems.
It supports creating GAD pairs with new volumes, existing volumes, or a range of volumes.
Enables efficient provisioning of multiple GAD pairs in a single operation.
For examples, go to URL https://github.com/hitachi-vantara/vspone-block-ansible/blob/main/playbooks/vsp_direct/gad_pair_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. |
|
Value of the lock token to operate on locked resources. |
|
Password for authentication. This field is required for secondary storage connection if api_token is not provided. |
|
Username for authentication. This field is required for secondary storage connection if api_token is not provided. |
|
Specification for the batch GAD pairs task. |
|
Allocate and assign a new consistency group ID. Choices:
|
|
Beginning primary volume ID for batch creation using existing volumes. |
|
Beginning LDEV ID for secondary volume range. |
|
Capacity saving mode for new volumes (e.g., ‘compression’, ‘compression_deduplication’). |
|
Consistency Group ID. |
|
The name for the copy group. |
|
Copy pace to be used for the GAD pair, Supports 1 to 15. Default: |
|
Base name for copy pairs. Pairs will be named with incrementing numbers appended. |
|
Whether to perform an initial copy. Choices:
|
|
Ending primary volume ID for batch creation using existing volumes. |
|
End LDEV ID for secondary volume range. |
|
Fence level for the GAD pairs. Choices:
|
|
Specify true for consistency group. Choices:
|
|
Whether to forcibly create a pair for data reduction volumes. Choices:
|
|
Specify true for a new copy group name. Choices:
|
|
The device group name in the local storage system. Optional for the Split/Resync/Swap-Split/Swap-Resync tasks. |
|
The mirror unit number. |
|
New volume size for resize or expand operations. |
|
Number of GAD pairs to create in batch. |
|
Path group ID. |
|
The list of host groups on the primary storage device. Required for the Create GAD pair with server cluster configuration task. |
|
Host group name. Required for the Create GAD pair with server cluster configuration /Create GAD pair with cross path server configuration tasks. |
|
Port ID. Required for the Create GAD pair with server cluster configuration /Create GAD pair with cross path server configuration tasks. |
|
The list of iscsi targets on the primary storage device. Required for the Create GAD-ISCSI Pair task. |
|
ISCSI target name. Required for the Create GAD-ISCSI Pair task. |
|
Port ID. Required for the Create GAD-ISCSI Pair task. |
|
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. |
|
Pool ID for creating new primary volumes. |
|
The primary resource group name. Required for the Create GAD pair with cross path server configuration task. |
|
Base name for primary volumes when creating new volumes in batch. |
|
Starting number for primary volume base name suffix. |
|
ID of the provisioned secondary volume for GAD pair creation. |
|
The quorum disk ID. Required for the Create tasks. |
|
The device group name in the remote storage system. Optional for the Split/Resync/Swap-Split/Swap-Resync tasks. |
|
The list of host groups on the secondary storage device. Required for the Create tasks. |
|
Host group name. Required for the Create tasks. |
|
Port ID. Required for the Create tasks. |
|
The list of iscsi targets on the secondary storage device. Required for the Create GAD-ISCSI Pair task. |
|
ISCSI target name. Required for the Create GAD-ISCSI Pair task. |
|
Port ID. Required for the Create GAD-ISCSI Pair task. |
|
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. |
|
Pool ID of the secondary storage system for creating secondary volumes. |
|
The secondary resource group name. |
|
Set the ALUA mode to True for cross path server configuration. Choices:
|
|
Virtual storage serial number for GAD pair creation. |
|
Size of volumes to create (e.g., ‘10GB’, ‘1TB’). |
|
Information about the storage system. This field is an optional field. |
|
The serial number of the storage system. |
Attributes
Attribute |
Support |
Description |
|---|---|---|
Support: none |
Determines if the module should run in check mode. |
Examples
- name: Batch create GAD pairs with host groups
hitachivantara.vspone_block.vsp.hv_gad_bulk:
connection_info:
address: storage1.company.com
username: "username"
password: "password"
secondary_connection_info:
address: storage2.company.com
username: "admin"
password: "secret"
spec:
number_of_pairs: 5
primary_pool_id: 0
secondary_pool_id: 0
volume_size: "10GB"
capacity_saving: "compression"
primary_volume_base_name: "gad_vol"
primary_volume_base_name_start_number: 1
copy_group_name: "batch_gad_cg"
copy_pair_base_name: "batch_pair"
quorum_disk_id: 0
is_new_group_creation: true
primary_hostgroups:
- name: "primary_hg_1"
port_id: "CL1-A"
enable_preferred_path: true
secondary_hostgroups:
- name: "secondary_hg_1"
port_id: "CL2-A"
enable_preferred_path: false
- name: Batch create GAD pairs with NVMe subsystems
hitachivantara.vspone_block.vsp.hv_gad_bulk:
connection_info:
address: storage1.company.com
username: "username"
password: "password"
secondary_connection_info:
address: storage2.company.com
username: "admin"
password: "secret"
spec:
number_of_pairs: 3
primary_pool_id: 0
secondary_pool_id: 0
volume_size: "20GB"
copy_group_name: "nvme_gad_cg"
copy_pair_base_name: "nvme_pair"
quorum_disk_id: 0
is_new_group_creation: true
primary_nvm_subsystem:
name: "primary-nvme-subsystem"
paths:
- "nqn.2014-08.com.example:nvme:primary-host"
secondary_nvm_subsystem:
name: "secondary-nvme-subsystem"
paths:
- "nqn.2014-08.com.example:nvme:secondary-host"
- name: Batch create GAD pairs with iSCSI targets
hitachivantara.vspone_block.vsp.hv_gad_bulk:
connection_info:
address: storage1.company.com
username: "username"
password: "password"
secondary_connection_info:
address: storage2.company.com
username: "admin"
password: "secret"
spec:
number_of_pairs: 4
primary_pool_id: 0
secondary_pool_id: 0
volume_size: "50GB"
copy_group_name: "iscsi_gad_cg"
copy_pair_base_name: "iscsi_pair"
quorum_disk_id: 0
is_new_group_creation: true
primary_iscsi_targets:
- name: "iscsi_hg_primary"
port_id: "CL3-A"
secondary_iscsi_targets:
- name: "iscsi_target_secondary"
port_id: "CL4-A"
enable_preferred_path: false
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
|---|---|
List of comments or warnings from the batch operation. Returned: success Sample: |
|
List of created GAD pair objects from the batch operation. Returned: success |
|
Consistency group ID. Returned: success Sample: |
|
Copy group name. Returned: success Sample: |
|
Deprecated. Copy pace track size. Returned: success Sample: |
|
Pair name. Returned: success Sample: |
|
Deprecated. Copy rate. Returned: success Sample: |
|
Fence level. Returned: success Sample: |
|
Whether ALUA is enabled or not. Returned: success Sample: |
|
Local device group name. Returned: success Sample: |
|
Deprecated. Use mirror_unit_number instead. Returned: success Sample: |
|
Mirror unit number. Returned: success Sample: |
|
Primary virtual serial number. Returned: success Sample: |
|
Primary virtual volume id. Returned: success Sample: |
|
Primary volume ID. Returned: success Sample: |
|
Primary volume ID in hexadecimal format. Returned: success Sample: |
|
Status of the GAD pair. Returned: success Sample: |
|
Deprecated. Use primary_volume_storage_serial_number instead. Returned: success Sample: |
|
Primary volume storage serial number. Returned: success Sample: |
|
Primary VSM resource group name. Returned: success Sample: |
|
Quorum disk ID. Returned: success Sample: |
|
Remote device group name. Returned: success Sample: |
|
Deprecated. Remote mirror copy pair ID. Returned: success Sample: |
|
Secondary virtual storage serial number. Returned: success Sample: |
|
Secondary virtual volume ID. Returned: success Sample: |
|
Secondary volume ID. Returned: success Sample: |
|
Secondary volume ID in hexadecimal format. Returned: success Sample: |
|
Status of the GAD pair. Returned: success Sample: |
|
Deprecated. Use secondary_volume_storage_serial_number instead. Returned: success Sample: |
|
Secondary volume storage serial number. Returned: success Sample: |
|
Secondary VSM resource group name. Returned: success Sample: |