hitachivantara.vspone_block.vsp.hv_clpr module – Manages CLPRs on 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_clpr.

New in hitachivantara.vspone_block 3.0.0

Synopsis

  • This module manages Cache Logical Partitions (CLPRs) on Hitachi VSP storage systems.

  • Supports creating, updating, deleting CLPRs.

Requirements

The below requirements are needed on the host that executes this module.

  • python >= 3.9

Parameters

Parameter

Comments

connection_info

dictionary / required

Information required to establish a connection to the storage system.

address

string / required

IP address or hostname of the storage system.

api_token

string

Token used to operate on locked resources.

password

string

Password for authentication. This is a required field.

username

string

Username for authentication. This is a required field.

spec

dictionary / required

Specification for the CLPR operation.

cache_memory_capacity_mb

integer

Cache memory capacity in MB.

For VSP 5000 series storage systems, specify a multiple of 4096.

For other storage systems, specify a multiple of 2048.

clpr_id

integer

ID of the CLPR.

clpr_name

string

Name of the CLPR.

state

string

The desired state of the CLPR.

Choices:

  • "present" ← (default)

  • "absent"

  • "update"

Attributes

Attribute

Support

Description

check_mode

Support: none

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: Create CLPR
  hitachivantara.vspone_block.vsp.hv_clpr:
    connection_info:
      address: "{{ storage_address }}"
      username: "{{ username }}"
      password: "{{ password }}"
    state: present
    spec:
      clpr_name: "CLPRDEV"
      cache_memory_capacity_mb: 12288

- name: Update CLPR cache capacity
  hitachivantara.vspone_block.vsp.hv_clpr:
    connection_info:
      address: "{{ storage_address }}"
      username: "{{ username }}"
      password: "{{ password }}"
    state: update
    spec:
      clpr_id: 1
      cache_memory_capacity_mb: 24576

- name: Delete CLPR
  hitachivantara.vspone_block.vsp.hv_clpr:
    connection_info:
      address: "{{ storage_address }}"
      username: "{{ username }}"
      password: "{{ password }}"
    state: absent
    spec:
      clpr_id: 1

Return Values

Common return values are documented here, the following are the fields unique to this module:

Key

Description

clpr_info

dictionary

Details of the CLPR operation

Returned: on success

cache_memory_capacity_in_mb

float

Cache memory capacity in MB

Returned: success

Sample: 435.712

cache_memory_used_capacity_in_mb

float

Used cache memory in MB

Returned: success

Sample: 243.9475

cache_usage_rate

integer

Cache usage rate percentage

Returned: success

Sample: 59

clpr_id

integer

CLPR ID

Returned: success

Sample: 1

clpr_name

string

CLPR name

Returned: success

Sample: "CLPRDEV"

Authors

  • Hitachi Vantara LTD (@hitachi-vantara)