hitachivantara.vspone_block.sds_block.hv_sds_block_volume module – Manages Hitachi SDS block storage system volumes.
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.sds_block.hv_sds_block_volume
.
New in hitachivantara.vspone_block 3.0.0
Synopsis
This module allows the creation, update and deletion of volume, adding and removing compute code.
It supports various volume operations based on the specified state.
For examples go to URL https://github.com/hitachi-vantara/vspone-block-ansible/blob/main/playbooks/sds_block_direct/volume.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. |
|
Type of connection to the storage system. Choices:
|
|
Password for authentication. |
|
Username for authentication. |
|
Specification for the volume task. |
|
The capacity of the volume. |
|
Settings of the data reduction function. |
|
The array of name of compute nodes to which the volume is attached. |
|
The id of the volume. |
|
The name of the volume. |
|
The nickname of the volume. |
|
The name of the storage pool where the volume is created. |
|
The quality of service parameters for the volume. |
|
The upper alert allowable time(In seconds). |
|
The upper limit for IOPS. |
|
The upper limit for transfer rate (MB per Sec). |
|
The state of the volume task. Choices:
|
|
The level of the volume task. Choices are Choices:
|
Attributes
Attribute |
Support |
Description |
---|---|---|
Support: none |
Determines if the module should run in check mode. |
Examples
- name: Create volume
hitachivantara.vspone_block.sds_block.hv_sds_block_volume:
state: present
connection_info:
address: sdsb.company.com
username: "admin"
password: "password"
spec:
pool_name: "SP01"
name: "RD-volume-4"
capacity: 99
compute_nodes: ["CAPI123678", "ComputeNode-1"]
- name: Create volume with QoS parameters
hitachivantara.vspone_block.sds_block.hv_sds_block_volume:
state: present
connection_info:
address: sdsb.company.com
username: "admin"
password: "password"
spec:
pool_name: "SP01"
name: "RD-volume-4"
capacity: 99
qos_param:
upper_limit_for_iops: 100
upper_limit_for_transfer_rate_mb_per_sec: 100
upper_alert_allowable_time_in_sec: 100
compute_nodes: ["CAPI123678", "ComputeNode-1"]
- name: Delete volume by ID
hitachivantara.vspone_block.sds_block.hv_sds_block_volume:
state: absent
connection_info:
address: sdsb.company.com
username: "admin"
password: "password"
spec:
id: "df63a5d9-32ea-4ae1-879a-7c23fbc574db"
- name: Delete volume by name
hitachivantara.vspone_block.sds_block.hv_sds_block_volume:
state: absent
connection_info:
address: sdsb.company.com
username: "admin"
password: "password"
spec:
name: "RD-volume-4"
- name: Expand volume
hitachivantara.vspone_block.sds_block.hv_sds_block_volume:
state: present
connection_info:
address: sdsb.company.com
username: "admin"
password: "password"
spec:
name: "RD-volume-4"
capacity: 202
- name: Update volume nickname
hitachivantara.vspone_block.sds_block.hv_sds_block_volume:
state: present
connection_info:
address: sdsb.company.com
username: "admin"
password: "password"
spec:
name: "RD-volume-4"
nickname: "RD-volume-0004"
- name: Update volume QoS parameters
hitachivantara.vspone_block.sds_block.hv_sds_block_volume:
state: present
connection_info:
address: sdsb.company.com
username: "admin"
password: "password"
spec:
name: "RD-volume-4"
qos_param:
upper_limit_for_iops: 100
upper_limit_for_transfer_rate_mb_per_sec: 100
upper_alert_allowable_time_in_sec: 100
- name: Update volume name
hitachivantara.vspone_block.sds_block.hv_sds_block_volume:
state: present
connection_info:
address: sdsb.company.com
username: "admin"
password: "password"
spec:
id: "aba5c900-b04c-4beb-8ca4-ed53537afb09"
name: "RD-volume-0004"
nickname: "RD-volume-0004"
- name: Remove compute node
hitachivantara.vspone_block.sds_block.hv_sds_block_volume:
state: present
connection_info:
address: sdsb.company.com
username: "admin"
password: "password"
spec:
state: "remove_compute_node"
id: "aba5c900-b04c-4beb-8ca4-ed53537afb09"
compute_nodes: ["ComputeNode-1"]
- name: Add compute node
hitachivantara.vspone_block.sds_block.hv_sds_block_volume:
state: present
connection_info:
address: sdsb.company.com
username: "admin"
password: "password"
spec:
state: "add_compute_node"
id: "aba5c900-b04c-4beb-8ca4-ed53537afb09"
compute_nodes: ["ComputeNode-1"]
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
---|---|
The volume information. Returned: always |
|
List of compute nodes to which the volume is attached. Returned: success |
|
Unique identifier for the compute node. Returned: success Sample: |
|
Name of the compute node. Returned: success Sample: |
|
Detailed information about the volume. Returned: success |
|
Capacity saving status. Returned: success Sample: |
|
Data reduction effects on the volume. Returned: success |
|
Post capacity data reduction. Returned: success Sample: |
|
Pre capacity data reduction without system data. Returned: success Sample: |
|
System data capacity. Returned: success Sample: |
|
Data reduction progress rate. Returned: success Sample: |
|
Data reduction status. Returned: success Sample: |
|
Whether the volume is fully allocated. Returned: success Sample: |
|
Unique identifier for the volume. Returned: success Sample: |
|
NAA identifier for the volume. Returned: success Sample: |
|
Name of the volume. Returned: success Sample: |
|
Nickname of the volume. Returned: success Sample: |
|
Number of servers connected to the volume. Returned: success Sample: |
|
Number of snapshots of the volume. Returned: success Sample: |
|
Pool identifier where the volume is created. Returned: success Sample: |
|
Name of the storage pool. Returned: success Sample: |
|
Protection domain identifier. Returned: success Sample: |
|
Quality of service parameters for the volume. Returned: success |
|
Upper alert allowable time. Returned: success Sample: |
|
Upper alert time. Returned: success Sample: |
|
Upper limit for IOPS. Returned: success Sample: |
|
Upper limit for transfer rate. Returned: success Sample: |
|
Whether the saving mode is enabled. Returned: success Sample: |
|
Snapshot attribute. Returned: success Sample: |
|
Snapshot status. Returned: success Sample: |
|
Status of the volume. Returned: success Sample: |
|
Summary of the volume status. Returned: success Sample: |
|
Storage controller identifier. Returned: success Sample: |
|
Total capacity of the volume in MB. Returned: success Sample: |
|
Used capacity of the volume in MB. Returned: success Sample: |
|
Volume number. Returned: success Sample: |
|
Type of the volume. Returned: success Sample: |
|
VPS identifier. Returned: success Sample: |
|
VPS name. Returned: success Sample: |