hitachivantara.vspone_block.vsp.hv_hur module – Manages HUR 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_hur
.
New in hitachivantara.vspone_block 3.1.0
Synopsis
This module allows for the creation, deletion, splitting, swap splitting, re-syncing and swap-resyncing of HUR pairs on Hitachi VSP storage systems.
For examples, go to URL https://github.com/hitachi-vantara/vspone-block-ansible/blob/main/playbooks/vsp_direct/hur.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 system. |
|
Value of the lock token to operate on locked resources. |
|
Password for authentication for the secondary storage system. |
|
Username for authentication for the secondary storage system. |
|
Specification for the HUR pairs task. |
|
Specify whether to allocate a new consistency group. Choices:
|
|
Consistency group ID, optional. |
|
Name of the copy group. This is a required for create operation. |
|
Name of the copy pair. This is a required for create operation. |
|
Specify whether to enable delta resync suspend. Choices:
|
|
Perform initial copy. This is an optional field during create operation. Choices:
|
|
Specify whether to enable delta resync. Choices:
|
|
Specifies the primary volume fence level setting and determines if the host is denied access or continues to access the primary volume when the pair is suspended because of an error. This is an optional field. Choices:
|
|
Specify whether to enable consistency group. Choices:
|
|
Force copy for data reduction. This is an optional field during create operation. Choices:
|
|
Specify whether to enable new group creation. Choices:
|
|
Specify whether to enable secondary volume read writeable. Choices:
|
|
Name of the local device group name. This is an optional field. |
|
Mirror Unit Id, required for create operations in new copy group. Not required for pair creation in existing copy group. Choices:
|
|
New volume size. |
|
This is an optional field during create operation. Specify the path group ID in the range from 0 to 255. If you are unsure don’t use this parameter. If you omit this value or specify 0, the lowest path group ID in the specified path group is used. |
|
Primary volume id. |
|
Primary volume journal id, required for create. |
|
Name of the remote device group name. This is an optional field.. |
|
Host group details of secondary volume. |
|
LUN ID can be provided along with host group on the secondary storage system. |
|
Name of the host group on the secondary storage system. |
|
Port of the host group on the secondary storage system. |
|
The list of iscsi targets on the secondary storage device. |
|
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. |
|
Id of dynamic pool on the secondary storage where the secondary volume will be created. |
|
Secondary storage serial number. |
|
Secondary volume id. |
|
Secondary volume journal id, required for create. |
|
Specify true to delete the SVOL. Choices:
|
|
The level of the HUR 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: Create a HUR pair in new copy group
hitachivantara.vspone_block.vsp.hv_hur:
state: "present"
connection_info:
address: storage1.company.com
username: "admin"
password: "secret"
secondary_connection_info:
address: storage2.company.com
username: "admin"
password: "secret"
spec:
copy_group_name: hur_copy_group_name_1
copy_pair_name: hur_copy_pair_name_1
primary_volume_id: 234
secondary_pool_id: 0
primary_volume_journal_id: 11
secondary_volume_journal_id: 12
local_device_group_name: hur_copy_group_name_1P_
remote_device_group_name: hur_copy_group_name_1S_
consistency_group_id: 0
secondary_hostgroup:
name: hg_1
port: CL1-A
lun_id: 5
mirror_unit_id: 0
- name: Create a HUR pair in existing copy group
hitachivantara.vspone_block.vsp.hv_hur:
state: "present"
connection_info:
address: storage1.company.com
username: "admin"
password: "secret"
secondary_connection_info:
address: storage2.company.com
username: "admin"
password: "secret"
spec:
copy_group_name: "hur_copy_group_name_1"
copy_pair_name: "hur_copy_pair_name_2"
primary_volume_id: 334
secondary_pool_id: 0
secondary_hostgroup:
name: hg_1
port: CL1-A
- name: Split HUR pair
hitachivantara.vspone_block.vsp.hv_hur:
state: "split"
connection_info:
address: storage1.company.com
username: "admin"
password: "secret"
secondary_connection_info:
address: storage2.company.com
username: "admin"
password: "secret"
spec:
local_device_group_name: hur_local_device_group_name_3
remote_device_group_name: hur_remote_device_group_name_3
copy_group_name: hur_copy_group_name_3
copy_pair_name: hur_copy_pair_name_3
is_svol_readwriteable: true
- name: Resync HUR pair
hitachivantara.vspone_block.vsp.hv_hur:
state: "resync"
connection_info:
address: storage1.company.com
username: "admin"
password: "secret"
secondary_connection_info:
address: storage2.company.com
username: "admin"
password: "secret"
spec:
local_device_group_name: hur_local_device_group_name_3
remote_device_group_name: hur_remote_device_group_name_3
copy_group_name: hur_copy_group_name_3
copy_pair_name: hur_copy_pair_name_3
- name: Delete HUR pair
hitachivantara.vspone_block.vsp.hv_hur:
state: "absent"
connection_info:
address: storage1.company.com
username: "admin"
password: "secret"
secondary_connection_info:
address: storage2.company.com
username: "admin"
password: "secret"
spec:
local_device_group_name: hur_local_device_group_name_3
remote_device_group_name: hur_remote_device_group_name_3
copy_group_name: hur_copy_group_name_3
copy_pair_name: hur_copy_pair_name_3
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
---|---|
Newly created HUR pair object. Returned: success |
|
Consistency group ID. Returned: success Sample: |
|
Name of the copy group. Returned: success Sample: |
|
Name of the copy pair. Returned: success Sample: |
|
Fence level setting. Returned: success Sample: |
|
Mirror unit number. Returned: success Sample: |
|
Difference data management for primary volume. Returned: success Sample: |
|
Journal ID for primary volume. Returned: success Sample: |
|
LDEV ID for primary volume. Returned: success Sample: |
|
Processing status for primary volume. Returned: success Sample: |
|
Status of primary volume. Returned: success Sample: |
|
Storage device ID for primary volume. Returned: success Sample: |
|
Storage serial number for primary volume. Returned: success Sample: |
|
Remote mirror copy pair ID. Returned: success Sample: |
|
Replication type. Returned: success Sample: |
|
Difference data management for secondary volume. Returned: success Sample: |
|
Journal ID for secondary volume. Returned: success Sample: |
|
LDEV ID for secondary volume. Returned: success Sample: |
|
Processing status for secondary volume. Returned: success Sample: |
|
Status of secondary volume. Returned: success Sample: |
|
Storage device ID for secondary volume. Returned: success Sample: |
|
Storage serial number for secondary volume. Returned: success Sample: |