hitachivantara.vspone_block.vsp.hv_paritygroup module – Create, delete parity group from Hitachi VSP storage systems.
Note
This module is part of the hitachivantara.vspone_block collection (version 3.5.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 Hitachi VSP 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. | |
| 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 the parity group tasks. | |
| Specify a CLPR number in the range from 0 to 31. | |
| Specify the locations of the drives to be used to create to the parity group. | |
| Specify whether to enable accelerated compression for the parity group. Choices: 
 | |
| Specify whether to enable the encryption function for the parity group. Choices: 
 | |
| Specify whether to enable the encryption function for the parity group. Choices: 
 | |
| The parity group number of the parity group to retrieve. | |
| RAID type. | |
| 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.
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
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 copyback mode is enabled. Returned: success Sample:  | |
| Type of drive. Returned: success Sample:  | |
| Free capacity of the parity group. 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 | |
| Resource ID. Returned: success | |
| Status of the parity group. Returned: success | |
| Total capacity of the parity group. Returned: success Sample:  | 
