hitachivantara.vspone_block.vsp.hv_gad module – Manages GAD pairs on Hitachi VSP storage systems.
Note
This module is part of the hitachivantara.vspone_block collection (version 3.4.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
.
New in hitachivantara.vspone_block 3.1.0
Synopsis
This module allows for the creation, deletion, splitting, and resynchronization of GAD pairs on Hitachi VSP storage systems.
It supports various GAD pairs operations based on the specified task level.
For examples, go to URL https://github.com/hitachi-vantara/vspone-block-ansible/blob/main/playbooks/vsp_direct/gad_pair.yml
Requirements
The below requirements are needed on the host that executes this module.
python >= 3.8
Parameters
Parameter |
Comments |
---|---|
Information required to establish a connection to the storage system. |
|
IP address or hostname of the storage system. |
|
This field is used to pass the value of the lock token 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. |
|
Username for authentication. This field is required for secondary storage connection. |
|
Specification for the GAD pairs task. |
|
Allocate and assign a new consistency group ID. Choices:
|
|
Consistency Group ID. |
|
The name for the copy group. |
|
Copy pace. Choices:
|
|
The name for the pair in the copy group. |
|
Whether to perform an initial copy. Choices:
|
|
Fence level. Choices:
|
|
Specify true for consistency group. Choices:
|
|
Whether to forcibly create a pair. Choices:
|
|
Specify true for a new copy group name. Choices:
|
|
The device group name in the local storage system. |
|
Required for resize or expand operation. Value should be grater than the current volume size. |
|
Path group ID. |
|
The list of host groups on the primary storage device. |
|
Enables the preferred path for the specified host group. Choices:
|
|
LUN ID. |
|
Host group name. |
|
Port name. |
|
The primary resource group name. |
|
The serial number of the primary storage device. |
|
Primary Volume ID. |
|
The quorum disk ID. |
|
The device group name in the remote storage system. |
|
The list of host groups on the secondary storage device. |
|
Enables the preferred path for the specified host group. Choices:
|
|
LUN ID. |
|
Host group name. |
|
Port name. |
|
The list of iscsi targets on the secondary storage device. |
|
Enables the preferred path for the specified ISCSI target. Choices:
|
|
LUN ID. |
|
ISCSI target name. |
|
Port name. |
|
NVM subsystem details of the secondary volume. |
|
Name of the NVM subsytem on the secondary storage system. |
|
Host NQN paths information on the secondary storage system. |
|
Pool ID of the secondary storage system. |
|
The secondary resource group name. |
|
The serial number of the secondary storage device. |
|
Set the ALUA mode to True. Choices:
|
|
Specify true to delete the SVOL. Choices:
|
|
The level of the GAD pairs task. Choices:
|
|
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: Swap-Split a GAD pair
hitachivantara.vspone_block.vsp.hv_gad:
state: "swap_split"
connection_info:
address: storage1.company.com
username: "username"
password: "password"
secondary_connection_info:
address: storage2.company.com
username: "admin"
password: "secret"
spec:
copy_group_name: "gad_copy_group_name_8"
copy_pair_name: "gad_copy_pair_name_8"
local_device_group_name: "gad_local_device_group_name_8"
remote_device_group_name: "gad_remote_device_group_name_8"
- name: Swap-Resync a GAD pair
hitachivantara.vspone_block.vsp.hv_gad:
state: "swap_resync"
connection_info:
address: storage2.company.com
username: "username"
password: "password"
secondary_connection_info:
address: storage1.company.com
username: "admin"
password: "secret"
spec:
copy_group_name: "gad_copy_group_name_8"
copy_pair_name: "gad_copy_pair_name_8"
local_device_group_name: "gad_local_device_group_name_8"
remote_device_group_name: "gad_remote_device_group_name_8"
- name: Increase size of volumes of a GAD pair
hitachivantara.vspone_block.vsp.hv_gad:
state: "resize"
connection_info:
address: storage1.company.com
username: "username"
password: "password"
secondary_connection_info:
address: storage2.company.com
username: "admin"
password: "secret"
spec:
copy_group_name: "gad_copy_group_name_9"
copy_pair_name: "gad_copy_pair_name_9"
new_volume_size: "4GB"
- name: Create a GAD-NVMe pair
hitachivantara.vspone_block.vsp.hv_gad:
state: "present"
connection_info:
address: storage1.company.com
username: "username"
password: "password"
secondary_connection_info:
address: storage2.company.com
username: "admin"
password: "secret"
spec:
copy_group_name: "copy_group_name_1"
copy_pair_name: "copy_pair_name_1"
primary_volume_id: 12
secondary_pool_id: 1
secondary_nvm_subsystem:
name: gk-nvm-sub-75
paths:
- "nqn.2014-08.com.ucpa-sc-hv:nvme:gk-test-12346"
quorum_disk_id: 1
- name: Create a GAD-ISCSI pair
hitachivantara.vspone_block.vsp.hv_gad:
state: "present"
connection_info:
address: storage1.company.com
username: "username"
password: "password"
secondary_connection_info:
address: storage2.company.com
username: "admin"
password: "secret"
spec:
copy_group_name: "copy_group_name_1"
copy_pair_name: "copy_pair_name_1"
primary_volume_id: 12
secondary_pool_id: 1
secondary_iscsi_targets:
- name: "test"
port: "CL1-A"
enable_preferred_path: false
lun_id: 1
quorum_disk_id: 1
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
---|---|
Newly created GAD pair object. Returned: success |
|
Consistency Group ID. Returned: success Sample: |
|
Copy pace track size. Returned: success Sample: |
|
Copy rate. Returned: success Sample: |
|
Mirror unit ID. Returned: success Sample: |
|
Pair name. Returned: success Sample: |
|
Primary hex volume ID. Returned: success Sample: |
|
Primary VSM resource group name. Returned: success Sample: |
|
Primary virtual hex volume ID. Returned: success Sample: |
|
Primary virtual storage ID. Returned: success Sample: |
|
Primary virtual volume ID. Returned: success Sample: |
|
Primary volume ID. Returned: success Sample: |
|
Primary volume storage ID. Returned: success Sample: |
|
Secondary hex volume ID. Returned: success Sample: |
|
Secondary VSM resource group name. Returned: success Sample: |
|
Secondary virtual hex volume ID. Returned: success Sample: |
|
Secondary virtual storage ID. Returned: success Sample: |
|
Secondary virtual volume ID. Returned: success Sample: |
|
Secondary volume ID. Returned: success Sample: |
|
Secondary volume storage ID. Returned: success Sample: |
|
Status of the GAD pair. Returned: success Sample: |
|
Storage serial number. Returned: success Sample: |
|
SVOL access mode. Returned: success Sample: |
|
Type of the GAD pair. Returned: success Sample: |