hitachivantara.vspone_block.vsp.hv_external_paritygroup module – Manages assignment of MP blade and CLPR to an External Parity Group from Hitachi VSP storage systems.
Note
This module is part of the hitachivantara.vspone_block collection (version 4.1.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_external_paritygroup
.
New in hitachivantara.vspone_block 4.0.0
Synopsis
This module retrieves information about External Volume from Hitachi VSP storage systems.
For examples, go to URL https://github.com/hitachi-vantara/vspone-block-ansible/blob/main/playbooks/vsp_direct/external_parity_group_facts.yml
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. |
|
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 if api_token is not provided. |
|
Username for authentication. This is a required field if api_token is not provided. |
|
Specification for External Parity Group. |
|
CLPR number to be used by the external volume group. This is an optional field for the create operation. Specify a decimal (base 10) number in the range from 0 to 31. If this attribute is omitted for the create, 0 is set. |
|
LDEV number of the remote command device. This is an optional field for the create operation. The specified LDEV number is assigned to the remote command device. |
|
Emulation type. This is an optional field for create operation. Choices:
|
|
The external parity group ID. This is a required field for all the operations. |
|
External path group ID. This is a required field for the create operation. |
|
WWN of the external storage system. This is a required field for create operation. |
|
Specify whether to forcibly unmap the external volume without destaging it. This is an optional field for the delete operation. If this attribute is omitted, false is set. Specify true to unmap the volume on the external storage system without destaging it. Choices:
|
|
Whether to set the nondisruptive migration attribute for the external volume group. This is an optional field for the create operation. If this attribute is omitted, false is set. Choices:
|
|
LUN of the port on the external storage system. This is a required field for the create operation. |
|
The blade number of the MP blade to be assigned to the external volume group. |
|
Number of the port on the local storage system. This is a required field for the create operation. |
|
The level of the External Path Group task. Choices:
|
Attributes
Attribute |
Support |
Description |
---|---|---|
Support: full |
Determines if the module should run in check mode. |
Notes
Note
Connection type
gateway
was removed starting from version 3.4.0. Please use an earlier version if you require this connection type.
Examples
- name: Change the MP blade assigned to an external parity group
hitachivantara.vspone_block.vsp.hv_external_path_group:
connection_info:
address: storage1.company.com
username: "admin"
password: "changeme"
state: "change_mp_blade"
spec:
external_parity_group_id: "1-5"
mp_blade_id: 0
- name: Assign external parity group to a CLPR
hitachivantara.vspone_block.vsp.hv_external_path_group_facts:
connection_info:
address: storage1.company.com
username: "admin"
password: "changeme"
state: "assign_external_parity_group"
spec:
external_parity_group_id: "1-5"
clpr_id: 1
- name: Create external parity group
hitachivantara.vspone_block.vsp.hv_external_paritygroup:
connection_info:
address: storage1.company.com
username: "admin"
password: "changeme"
state: "present"
spec:
external_parity_group_id: "1-17"
external_path_group_id: 4
port_id: "CL6-B"
external_wwn: "50060e8012277d71"
lun_id: 20
- name: Disconnect from a volume on the external storage system
hitachivantara.vspone_block.vsp.hv_external_paritygroup:
connection_info:
address: storage1.company.com
username: "admin"
password: "changeme"
state: "disconnect"
spec:
external_parity_group_id: "1-17"
- name: Delete external parity group
hitachivantara.vspone_block.vsp.hv_external_paritygroup:
connection_info:
address: storage1.company.com
username: "admin"
password: "changeme"
state: "disconnect"
spec:
external_parity_group_id: "1-17"
force: true
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 |
---|---|
Available capacity (GB). Returned: success Sample: |
|
External parity group ID. Returned: success Sample: |
|
For the free space and the LDEV defined in the specified external parity group. Returned: success |
|
ize of the partition in the external parity group (in a multiple of 512 bytes). Returned: success Sample: |
|
LDEV number. Returned: success Sample: |
|
Storage serial number. Returned: success Sample: |
|
Usage rate of the external parity group. Returned: success Sample: |