ibm.spectrum_virtualize.ibm_svc_vdisk module – This module manages volumes on IBM Spectrum Virtualize Family storage systems
Note
This module is part of the ibm.spectrum_virtualize collection (version 1.12.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 ibm.spectrum_virtualize
.
To use it in a playbook, specify: ibm.spectrum_virtualize.ibm_svc_vdisk
.
New in ibm.spectrum_virtualize 1.0.0
DEPRECATED
- Removed in:
version 2.0.0
- Why:
New module released
- Alternative:
Use ibm.spectrum_virtualize.ibm_svc_manage_volume instead.
Synopsis
Ansible interface to manage ‘mkvdisk’ and ‘rmvdisk’ volume commands.
Parameters
Parameter |
Comments |
---|---|
Specifies that thin-provisioned volume copies can automatically expand their real capacities. Choices:
|
|
The hostname or management IP of the Spectrum Virtualize storage system. |
|
Domain for the Spectrum Virtualize storage system. Valid when hostname is used for the parameter clustername. |
|
Defines use of easytier with VDisk. Applies when state=present. Choices:
|
|
Path of debug log file. |
|
Specifies the name of the storage pool to use when creating this volume. This parameter is required when state=present. |
|
Specifies the name to assign to the new volume. |
|
REST API password for the Spectrum Virtualize storage system. The parameters username and password are required if not using token to authenticate a user. |
|
Defines how much physical space is initially allocated to the thin-provisioned volume in %. If rsize is not passed, the volume created is a standard volume. Applies when |
|
Defines the size of VDisk. This parameter is required when state=present. This parameter can also be used to resize an existing VDisk. |
|
Creates ( Choices:
|
|
The authentication token to verify a user on the Spectrum Virtualize storage system. To generate a token, use ibm_svc_auth module. |
|
Defines the size option for the storage unit. This parameter is required when state=present. Choices:
|
|
REST API username for the Spectrum Virtualize storage system. The parameters username and password are required if not using token to authenticate a user. |
|
Validates certification. Choices:
|
Notes
Note
This module supports
check_mode
.
Examples
- name: Create a volume
ibm.spectrum_virtualize.ibm_svc_vdisk:
clustername: "{{clustername}}"
domain: "{{domain}}"
username: "{{username}}"
password: "{{password}}"
log_path: /tmp/playbook.debug
name: volume0
state: present
mdiskgrp: Pool0
easytier: 'off'
size: "4294967296"
unit: b
- name: Create a thin-provisioned volume
ibm.spectrum_virtualize.ibm_svc_vdisk:
clustername: "{{clustername}}"
domain: "{{domain}}"
username: "{{username}}"
password: "{{password}}"
log_path: /tmp/playbook.debug
name: volume0
state: present
mdiskgrp: Pool0
easytier: 'off'
size: "4294967296"
unit: b
rsize: '20%'
autoexpand: true
- name: Delete a volume
ibm.spectrum_virtualize.ibm_svc_vdisk:
clustername: "{{clustername}}"
domain: "{{domain}}"
username: "{{username}}"
password: "{{password}}"
log_path: /tmp/playbook.debug
name: volume0
state: absent
Status
This module will be removed in version 2.0.0. [deprecated]
For more information see DEPRECATED.