hitachivantara.vspone_block.vsp.hv_shadow_image_pair module – Manages shadow image 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_shadow_image_pair
.
New in hitachivantara.vspone_block 3.0.0
Synopsis
This module allows for the creation, deletion, splitting, syncing and restoring of shadow image pairs on Hitachi VSP storage systems.
It supports various shadow image 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/shadow_image_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. |
|
Specification for the shadow image pairs task. |
|
New consistency group. Choices:
|
|
Auto split. Choices:
|
|
Consistency group id. |
|
Copy group name. |
|
Copy pace track size. Choices:
|
|
Copy pair name. |
|
Enable quick mode. Choices:
|
|
Enable read write. Choices:
|
|
Enable data reduction force copy. Choices:
|
|
Pair Id. |
|
Primary volume device name. |
|
Primary volume id. |
|
Secondary storage pool id. |
|
Secondary volume device name. |
|
Secondary volume id. |
|
Specify to delete SVOL from hostgroup, iSCSI Target, and NVM Subsystem. Choices:
|
|
The level of the shadow image pairs task. Choices are 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: Create shadow image pair for non-existing secondary volume
hitachivantara.vspone_block.vsp.hv_shadow_image_pair:
connection_info:
address: storage1.company.com
username: "admin"
password: "secret"
state: "present"
spec:
primary_volume_id: 274
secondary_pool_id: 1
allocate_new_consistency_group: true
copy_pace_track_size: "MEDIUM"
enable_quick_mode: false
auto_split: true
copy_group_name: "CGTest"
copy_pair_name: "CPTest"
primary_volume_device_group_name: "CPTestP"
secondary_volume_device_group_name: "CPTestS"
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
---|---|
Newly created shadow image 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: |
|
Primary hex volume id. Returned: success Sample: |
|
Primary volume id. Returned: success Sample: |
|
Primary volume’s nvm subsystem name. Returned: success Sample: |
|
Resource id. Returned: success Sample: |
|
Secondary hex volume id. Returned: success Sample: |
|
Secondary volume id. Returned: success Sample: |
|
Status. Returned: success Sample: |
|
Storage serial number. Returned: success Sample: |
|
Svol access mode. Returned: success Sample: |
|
Secondary volume’s nvm subsystem name. Returned: success Sample: |