hitachivantara.vspone_block.vsp.hv_paritygroup module – Create, delete parity group from VSP block storage systems.
Note
This module is part of the hitachivantara.vspone_block collection (version 4.6.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.
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_paritygroup.
New in hitachivantara.vspone_block 3.2.0
Synopsis
This module creates, delete parity group from VSP block storage systems.
For examples go to URL https://github.com/hitachi-vantara/vspone-block-ansible/blob/main/playbooks/vsp_direct/paritygroup.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. |
|
Token used 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 parity group tasks. |
|
Specify a CLPR number in the range from 0 to 31. Required for the Create parity group /Assign CLPR ID to Parity Group tasks. |
|
Specify the locations of the drives to be used to create to the parity group. Required for the Create parity group task. |
|
Specify whether to enable accelerated compression for the parity group. Optional for the Create parity group /Update parity group tasks. Choices:
|
|
Specify whether to enable the encryption function for the parity group. Optional for the Create parity group task. Choices:
|
|
Specify whether to enable the encryption function for the parity group. Optional for the Create parity group task. Choices:
|
|
The parity group number of the parity group to retrieve. Required for the Create parity group /Delete parity group /Update parity group /Assign CLPR ID to Parity Group tasks. |
|
RAID type. Required for the Create parity group task. |
|
The level of the HUR pairs task. Choices are Choices:
|
Attributes
Attribute |
Support |
Description |
|---|---|---|
Support: none |
Determines if the module should run in check mode. |
Notes
Note
Connection type
gatewaywas removed starting from version 3.4.0. Please use an earlier version if you require this connection type.This module is not supported for VSP One BHE and higher storage models.
Examples
- name: Create parity group
hitachivantara.vspone_block.vsp.hv_paritygroup:
connection_info:
address: storage1.company.com
username: "admin"
password: "secret"
state: "present"
spec:
parity_group_id: 1-10
drive_location_ids: ["0-16", "0-17", "0-18", "0-19"]
raid_type: 3D+1P
is_encryption_enabled: true
is_copy_back_mode_enabled: false
is_accelerated_compression_enabled: true
clpr_id: 1
- name: Delete parity group
hitachivantara.vspone_block.vsp.hv_paritygroup:
connection_info:
address: storage1.company.com
username: "admin"
password: "secret"
state: "absent"
spec:
parity_group_id: 1-10
- name: Update parity group
hitachivantara.vspone_block.vsp.hv_paritygroup:
connection_info:
address: storage1.company.com
username: "admin"
password: "secret"
state: "update"
spec:
parity_group_id: 1-10
is_accelerated_compression_enabled: true
- name: Assign CLPR Id to parity group
hitachivantara.vspone_block.vsp.hv_paritygroup:
connection_info:
address: storage1.company.com
username: "admin"
password: "secret"
state: "update"
spec:
parity_group_id: 1-10
clpr_id: 0
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
|---|---|
Parity group managed by the module. Returned: success |
|
CLPR number. Returned: success Sample: |
|
Indicates if copy back mode is enabled. Returned: success Sample: |
|
Type of drive. Returned: success Sample: |
|
Free capacity of the parity group (human readable). Returned: success Sample: |
|
Free capacity of the parity group in MB. Returned: success Sample: |
|
Indicates if accelerated compression is enabled. Returned: success Sample: |
|
Indicates if encryption is enabled. Returned: success Sample: |
|
Indicates if it is a pool array group. Returned: success |
|
List of LDEV IDs. Returned: success Sample: |
|
Parity group ID. Returned: success Sample: |
|
RAID level. Returned: success Sample: |
|
Resource group ID. Returned: success Sample: |
|
Resource ID. Returned: success |
|
Status of the parity group. Returned: success |
|
Total capacity of the parity group (human readable). Returned: success Sample: |
|
Total capacity of the parity group in MB. Returned: success Sample: |