ibm.storage_virtualize.ibm_sv_manage_drive module – This module manages drives on IBM Storage Virtualize family storage systems
Note
This module is part of the ibm.storage_virtualize collection (version 2.6.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.storage_virtualize
.
To use it in a playbook, specify: ibm.storage_virtualize.ibm_sv_manage_drive
.
New in ibm.storage_virtualize 2.4.0
Synopsis
Ansible interface to manage drive-related operations.
Parameters
Parameter |
Comments |
---|---|
The hostname or management IP of the Storage Virtualize storage system. |
|
Domain for the Storage Virtualize storage system. Valid when hostname is used for the parameter clustername. |
|
Specifies the drive id. |
|
Specifies the desired usability state of the drive. Choices:
|
|
Path of debug log file. |
|
REST API password for the Storage Virtualize storage system. The parameters username and password are required if not using token to authenticate a user. |
|
Specifies a task to be performed on drive. Choices:
|
|
The authentication token to verify a user on the Storage Virtualize storage system. To generate a token, use the ibm_svc_auth module. |
|
REST API username for the Storage 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
.If error code CMMVC6624E is returned after running a recover task, most likely drive has already been recovered.
Examples
- name: Change drive state to candidate
ibm.storage_virtualize.ibm_sv_manage_drive:
clustername: "{{ cluster }}"
username: "{{ username }}"
password: "{{ password }}"
drive_id: 5
drive_state: candidate
log_path: /tmp/playbook.debug
- name: Format a drive
ibm.storage_virtualize.ibm_sv_manage_drive:
clustername: "{{ cluster }}"
username: "{{ username }}"
password: "{{ password }}"
drive_id: 5
task: format
log_path: /tmp/playbook.debug
- name: Trigger a drive dump
ibm.storage_virtualize.ibm_sv_manage_drive:
clustername: "{{ cluster }}"
username: "{{ username }}"
password: "{{ password }}"
drive_id: 5
task: triggerdump
log_path: /tmp/playbook.debug