hitachivantara.vspone_block.vsp.hv_vsp_one_gad_facts module – Retrieves GAD (Global-Active Device) information from VSP One 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.
To use it in a playbook, specify: hitachivantara.vspone_block.vsp.hv_vsp_one_gad_facts.
New in hitachivantara.vspone_block 4.8.0
Synopsis
This module retrieves GAD pair information from VSP One Block 20/80 series and VSP E series storage systems.
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. |
|
Query parameters for filtering and paginating GAD pair information. |
|
Filter results by a specific Consistency Group ID. If omitted, GAD pairs from all consistency groups are retrieved. |
|
The maximum number of GAD pair entries to retrieve in a single operation. Supports values from 1 to 500. If set to If set to a value greater than If omitted, this defaults to Default: |
|
The Mirror Unit (MU) number associated with the primary_volume_id to start retrieval from. If primary_volume_id is specified but this is omitted, it defaults to 0. All subsequent pairs, regardless of their Mirror Unit number, will be included in the results. |
|
Specifies the starting LDEV ID for cursor-based pagination. When provided, retrieval begins at this volume ID. If the exact LDEV ID is not present, the operation falls back to the next available pair. If count is set to This parameter acts as a starting offset for sequential retrieval and includes all subsequent LDEVs up to the specified count. |
Examples
# ######################################################################################
# Task: Retrieve GAD pairs using the default batch size (500) from the beginning of the list.
# ######################################################################################
- name: Get all GAD pairs (default limit)
hitachivantara.vspone_block.vsp.hv_vsp_one_gad_facts:
connection_info: "{{ connection_info }}"
register: result
- name: Debug the result variable
ansible.builtin.debug:
var: result
# ######################################################################################
# Task: Retrieve a specific number of GAD pairs from the beginning of the list.
# ######################################################################################
- name: Get first 10 GAD pairs
hitachivantara.vspone_block.vsp.hv_vsp_one_gad_facts:
connection_info: "{{ connection_info }}"
spec:
count: 10
register: result
- name: Debug the result variable
ansible.builtin.debug:
var: result
# ######################################################################################
# Task: Retrieve first available gad pair.
# ######################################################################################
- name: Get first available GAD pair
hitachivantara.vspone_block.vsp.hv_vsp_one_gad_facts:
connection_info: "{{ connection_info }}"
spec:
count: 1
register: result
- name: Debug the result variable
ansible.builtin.debug:
var: result
# ######################################################################################
# Task: Filter GAD pairs by Consistency Group ID.
# Returns an empty list if no pairs are associated with the specified group.
# ######################################################################################
- name: Get GAD pairs for Consistency Group 2
hitachivantara.vspone_block.vsp.hv_vsp_one_gad_facts:
connection_info: "{{ connection_info }}"
spec:
consistency_group_id: 2
register: result
- name: Debug the result variable
ansible.builtin.debug:
var: result
# ######################################################################################
# Task: Retrieve a single GAD pair from a specific Consistency Group.
# ######################################################################################
- name: Get a single GAD pair from Consistency Group 2
hitachivantara.vspone_block.vsp.hv_vsp_one_gad_facts:
connection_info: "{{ connection_info }}"
spec:
consistency_group_id: 2
count: 1
register: result
# ######################################################################################
# Task: Retrieve information for a specific LDEV and Mirror Unit.
# Set count to 1 to find only this specific GAD pair LDEVID/MU.
# ######################################################################################
- name: Get specific GAD pair by LDEV and MU
hitachivantara.vspone_block.vsp.hv_vsp_one_gad_facts:
connection_info: "{{ connection_info }}"
spec:
primary_volume_id: 244
mirror_unit_number: 3
count: 1
register: result
- name: Debug the result variable
ansible.builtin.debug:
var: result
# ######################################################################################
# Task: Retrieve specific GAD pair using the default Mirror Unit (0).
# Set count to 1 to find only this specific GAD pair LDEVID/MU.
# ######################################################################################
- name: Get GAD pair by LDEV ID (Default MU 0)
hitachivantara.vspone_block.vsp.hv_vsp_one_gad_facts:
connection_info: "{{ connection_info }}"
spec:
primary_volume_id: 244
count: 1
register: result
# ######################################################################################
# Task: Cursor-based batch retrieval.
# Starts at LDEV 249 / MU 3 if present; otherwise, falls back to the next available
# pair in numerical order. Results include all subsequent Mirror Units and volumes.
# ######################################################################################
- name: Get batch of 10 pairs starting from a gad pair
hitachivantara.vspone_block.vsp.hv_vsp_one_gad_facts:
connection_info: "{{ connection_info }}"
spec:
primary_volume_id: 249
mirror_unit_number: 3
count: 10
register: result
- name: Debug the result variable
ansible.builtin.debug:
var: result
# ######################################################################################
# Task: Sequential retrieval starting from a volume-level cursor.
# Defaults to Mirror Unit 0. Retrieval starts from the specified ID or the next
# available numerical match up to the maximum batch limit (500).
# ######################################################################################
- name: Get up to 500 pairs starting from Volume 249
hitachivantara.vspone_block.vsp.hv_vsp_one_gad_facts:
connection_info: "{{ connection_info }}"
spec:
primary_volume_id: 249
register: result
- name: Debug the result variable
ansible.builtin.debug:
var: result
Returned Facts
Facts returned by this module are added/updated in the hostvars host facts and can be referenced by name just like any other host fact. They do not need to be registered in order to use them.
Key |
Description |
|---|---|
The number of GAD pairs retrieved and stored in ansible_facts. Returned: success Sample: |
|
List of dictionaries containing detailed GAD pair properties. Returned: success |
|
ID of the consistency group the pair belongs to. Returned: success Sample: |
|
Speed of the copy operation (1-15). Returned: success Sample: |
|
Percentage of initial copy completion. Returned: success Sample: |
|
Total seconds taken to reach PAIR status. Returned: success Sample: |
|
Timestamp of pair creation. Returned: success Sample: |
|
Synchronization percentage between volumes. Returned: success Sample: |
|
Reason for GAD pair failure, if any. Returned: success Sample: |
|
I/O preference settings. Returned: success Sample: |
|
Timestamp of the last local update. Returned: success Sample: |
|
Mirror Unit (MU) number. Returned: success Sample: |
|
Behavior when the quorum disk is blocked. Returned: success Sample: |
|
Method used for differential data management. Returned: success Sample: |
|
LDEV ID of the local (primary) volume. Returned: success Sample: |
|
Hexadecimal representation of the primary volume ID. Returned: success Sample: |
|
Host I/O behavior (MIRROR, LOCAL, BLOCK). Returned: success Sample: |
|
Nickname or name assigned to the primary volume. Returned: success Sample: |
|
Role of the local volume (PRIMARY or SECONDARY). Returned: success Sample: |
|
Capacity expansion status (IDLE, EXPANDING). Returned: success Sample: |
|
Provisioning type (INTERNAL, VIRTUAL, or EXTERNAL). Returned: success Sample: |
|
Current pair status (PAIR, COPY, PSUS, etc.). Returned: success Sample: |
|
ID of the quorum disk used for the GAD pair. Returned: success Sample: |
|
Information about the remote storage system connection. Returned: success |
|
ID of the path group used for the connection. Returned: success Sample: |
|
Model of the remote storage (e.g., RH20ETP). Returned: success Sample: |
|
Serial number of the remote storage. Returned: success Sample: |
|
LDEV ID of the volume on the remote storage system. Returned: success Sample: |
|
Hexadecimal representation of the secondary volume ID. Returned: success Sample: |