hitachivantara.vspone_block.vsp.hv_vsp_one_gad module – Manages GAD pairs on VSP One block storage systems.
Note
This module is part of the hitachivantara.vspone_block collection (version 4.8.1).
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_vsp_one_gad.
New in hitachivantara.vspone_block 4.8.0
Synopsis
This module allows for the creation, deletion, splitting, and resynchronization of GAD pairs on VSP One block storage systems.
It supports various GAD pairs operations based on the specified task level.
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. |
|
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. Provide this only when operation is on locked resources. |
|
Password for authentication. This field is required for secondary storage connection 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 GAD pair operation. |
|
Required if delete_mode is FORCE. Whether to allow access to volumes after force deletion. Choices:
|
|
The consistency group ID. Required for state present (create). |
|
Which volume stays R/W during a split (PRIMARY or SECONDARY). Default is PRIMARY. |
|
The copy pace. |
|
NORMAL or FORCE deletion. Default is NORMAL. |
|
List of GAD pair definitions. Required for state present (create). |
|
The primary volume ID. |
|
The provisioned secondary volume ID. |
|
I/O priority mode during path failure. Values are ‘KEEP_CURRENT_SETTING’, ‘DISABLE’, or ‘PRIMARY_ENABLE’. Default is KEEP_CURRENT_SETTING. |
|
The IO priority mode, values are ‘DISABLE’ or ‘PRIMARY_ENABLE’ and case insensitive. |
|
Whether to perform a swap-resync (Secondary becomes new Primary). Choices:
|
|
The mirror unit number. Choices:
|
|
The path group ID. Required for state present (create). |
|
List of pairs for volume-level actions. Required for state splitted/resynced/delete. |
|
The mirror unit ID. Choices:
|
|
The primary volume ID. |
|
The quorum ID. Required for state present (create). |
|
List of secondary servers. |
|
The secondary storage pool ID. Required for state present (create). |
|
Whether to replicate from primary to secondary. Choices:
|
|
Desired state of the GAD resource. Choices:
|
Attributes
Attribute |
Support |
Description |
|---|---|---|
Support: none |
Determines if the module should run in check mode. |
Examples
- name: Create GAD pairs with automatic provisioning
hitachivantara.vspone_block.vsp.hv_vsp_one_gad:
connection_info: "{{ connection_info }}"
secondary_connection_info: "{{ secondary_connection_info }}"
state: present
spec:
consistency_group_id: 1
path_group_id: 0
quorum_id: 22
secondary_storage_pool_id: 2
gad_pairs:
- primary_volume_id: 385
provisioned_secondary_volume_id: 85 # Optional
should_replicate_from_primary_to_secondary: true
copy_pace: 3
mirror_unit_number: 1 # Optional
- name: Suspend (Split) GAD pairs
hitachivantara.vspone_block.vsp.hv_vsp_one_gad:
connection_info: "{{ connection_info }}"
state: splitted
spec:
primary_volume_mirrors:
- primary_volume_id: 100
mirror_unit_number: 1
- primary_volume_id: 200
mirror_unit_number: 1
continue_io_volume: primary
- name: Resync GAD pairs
hitachivantara.vspone_block.vsp.hv_vsp_one_gad:
connection_info: "{{ connection_info }}"
state: sync
spec:
primary_volume_mirrors:
- primary_volume_id: 100
mirror_unit_number: 1
is_swap_resynced: false
copy_pace: 3
io_preference: KEEP_CURRENT_SETTING
- name: Delete GAD pairs (Force Mode)
hitachivantara.vspone_block.vsp.hv_vsp_one_gad:
connection_info: "{{ connection_info }}"
state: absent
spec:
primary_volume_mirrors:
- primary_volume_id: 100
mirror_unit_number: 1
delete_mode: force
allow_volume_access_after_force_delete: true
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
|---|---|
List of GAD pairs returned from the operation. Returned: always |
|
The consistency group ID of the GAD pair. Returned: success Sample: |
|
The copy progress rate. -1 indicates copy is complete. Returned: success Sample: |
|
The copy speed setting. Returned: success Sample: |
|
The copy time in seconds. Returned: success Sample: |
|
The data synchronization rate percentage. Returned: success Sample: |
|
The failure factor if any. Returned: success Sample: |
|
The GAD pair ID in format ‘volume_id,mirror_unit_number’. Returned: success Sample: |
|
The IO preference setting. Returned: success Sample: |
|
The differential data management type for the local volume. Returned: success Sample: |
|
The local (primary) volume ID. Returned: success Sample: |
|
The IO mode of the local volume. Returned: success Sample: |
|
The nickname of the local volume. Returned: success Sample: |
|
The position of the local volume in the pair. Returned: success Sample: |
|
The processing status of the local volume. Returned: success Sample: |
|
The provisioning type of the local volume. Returned: success Sample: |
|
The status of the local volume in the GAD pair. Returned: success Sample: |
|
The mirror unit number. Returned: success Sample: |
|
The pair operation mode when quorum disk is blocked. Returned: success Sample: |
|
The quorum ID used by the GAD pair. Returned: success Sample: |
|
Remote connection information for the GAD pair. Returned: success |
|
The path group ID for the remote connection. Returned: success Sample: |
|
The model of the remote storage system. Returned: success Sample: |
|
The serial number of the remote storage system. Returned: success Sample: |
|
The remote (secondary) volume ID. Returned: success Sample: |