hitachivantara.vspone_block.vsp.hv_shadow_image_group module – Manages Remote Copy Group 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_group
.
New in hitachivantara.vspone_block 3.2.0
Synopsis
This module allows for the splitting, re-syncing, restore and deletion of Shadow Image Group on Hitachi VSP storage systems. - It supports various Shadow image pairs operations based on the specified task level. - For examples go to URL
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 Hitachi storage system . |
|
This field is used to pass the value of the lock token to operate on locked resources. |
|
Password for authentication. This is a required field. |
|
Username for authentication. This is a required field. |
|
Specification for the Shadow Image Group task. |
|
Copy group name, required for all operations. |
|
Specify the copy pace. |
|
Specify whether force delete. Choices:
|
|
Specify whether force suspend. Choices:
|
|
Specify the P-VOL device group name . |
|
Specify whether quick mode. Choices:
|
|
Specify the S-VOL device group name . |
|
The level of the Shadow Image Group pairs task. Choices are Choices:
|
Attributes
Attribute |
Support |
Description |
---|---|---|
Support: none |
Determines if the module should run in check mode. |
Examples
- name: Split local copy group
hitachivantara.vspone_block.vsp.hv_shadow_image_group:
connection_info:
address: storage1.company.com
username: "admin"
password: "password"
state: split
spec:
copy_group_name: remote_copy_group_copy_group_name_1
primary_volume_device_group_name: remote_copy_group_local_device_group_name_1
secondary_volume_device_group_name: remote_copy_group_remote_device_group_name_1
quick_mode: true
copy_pace: 100
force_suspend: true
- name: Resync local copy group
hitachivantara.vspone_block.vsp.hv_shadow_image_group:
connection_info:
address: storage1.company.com
username: "admin"
password: "password"
state: sync
spec:
copy_group_name: remote_copy_group_copy_group_name_1
primary_volume_device_group_name: remote_copy_group_local_device_group_name_1
secondary_volume_device_group_name: remote_copy_group_remote_device_group_name_1
quick_mode: true
copy_pace: 100
- name: Restore local copy group
hitachivantara.vspone_block.vsp.hv_shadow_image_group:
connection_info:
address: storage1.company.com
username: "admin"
password: "password"
state: swap_split
spec:
copy_group_name: remote_copy_group_copy_group_name_1
primary_volume_device_group_name: remote_copy_group_local_device_group_name_1
secondary_volume_device_group_name: remote_copy_group_remote_device_group_name_1
quick_mode: true
copy_pace: 100
- name: Delete local copy group
hitachivantara.vspone_block.vsp.hv_shadow_image_group:
connection_info:
address: storage1.company.com
username: "admin"
password: "password"
state: absent
spec:
copy_group_name: remote_copy_group_copy_group_name_1
primary_volume_device_group_name: remote_copy_group_local_device_group_name_1
secondary_volume_device_group_name: remote_copy_group_remote_device_group_name_1
force_delete: true
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
---|---|
Newly created remote copy group object. Returned: success |
|
Copy group name. Returned: success Sample: |
|
List of copy pairs in the copy group. Returned: success |
|
Consistency group ID. Returned: success Sample: |
|
Copy group name. Returned: success Sample: |
|
Copy mode. Returned: success Sample: |
|
Copy pair name. Returned: success Sample: |
|
Copy progress rate. Returned: success Sample: |
|
Local clone copy pair ID. Returned: success Sample: |
|
PVOL difference data management. Returned: success Sample: |
|
PVOL LDEV ID. Returned: success Sample: |
|
PVOL MU number. Returned: success Sample: |
|
PVOL processing status. Returned: success Sample: |
|
PVOL status. Returned: success Sample: |
|
Replication type. Returned: success Sample: |
|
SVOL difference data management. Returned: success Sample: |
|
SVOL LDEV ID. Returned: success Sample: |
|
SVOL processing status. Returned: success Sample: |
|
SVOL status. Returned: success Sample: |
|
Local clone copy group ID. Returned: success Sample: |
|
P-VOL device group name. Returned: success Sample: |
|
S-VOL device group name. Returned: success Sample: |