dellemc.openmanage.redfish_storage_volume module – Manages the storage volume configuration
Note
This module is part of the dellemc.openmanage collection (version 5.5.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 dellemc.openmanage
.
You need further requirements to be able to use this module,
see Requirements for details.
To use it in a playbook, specify: dellemc.openmanage.redfish_storage_volume
.
New in dellemc.openmanage 2.1.0
Synopsis
This module allows to create, modify, initialize, or delete a single storage volume.
Requirements
The below requirements are needed on the host that executes this module.
python >= 3.8.6
Parameters
Parameter |
Comments |
---|---|
IP address of the target out-of-band controller. For example- <ipaddress>:<port>. |
|
Block size in bytes.Only applicable when state is |
|
The Privacy Enhanced Mail (PEM) file that contains a CA certificate to be used for the validation. |
|
Volume size in bytes. Only applicable when state is |
|
Choices:
|
|
Fully Qualified Device Descriptor (FQDD) of the storage controller. For example- RAID.Slot.1-1. This option is mandatory when state is |
|
FQDD of the Physical disks. For example- Disk.Bay.0:Enclosure.Internal.0-1:RAID.Slot.1-1. Only applicable when state is |
|
Indicates whether volume is currently utilizing encryption or not. Only applicable when state is Choices:
|
|
The following encryption types can be selected.
Only applicable when state is Choices:
|
|
Initialization type of existing volume. Only applicable when command is Choices:
|
|
Name of the volume to be created. Only applicable when state is |
|
Includes OEM extended payloads. Only applicable when state is present. |
|
Stripe size value must be in multiples of 64 * 1024. Only applicable when state is |
|
Password of the target out-of-band controller. |
|
Choices:
|
|
The socket level timeout in seconds. Default: |
|
Username of the target out-of-band controller. |
|
If Configure Prior to collection version Choices:
|
|
FQDD of existing volume. For example- Disk.Virtual.4:RAID.Slot.1-1. This option is mandatory in the following scenarios, state is state is command is |
|
One of the following volume types must be selected to create a volume.
Choices:
|
Notes
Note
Run this module from a system that has direct access to Redfish APIs.
This module supports
check_mode
.This module always reports changes when name and volume_id are not specified. Either name or volume_id is required to support
check_mode
.
Examples
---
- name: Create a volume with supported options
dellemc.openmanage.redfish_storage_volume:
baseuri: "192.168.0.1"
username: "username"
password: "password"
ca_path: "/path/to/ca_cert.pem"
state: "present"
volume_type: "Mirrored"
name: "VD0"
controller_id: "RAID.Slot.1-1"
drives:
- Disk.Bay.5:Enclosure.Internal.0-1:RAID.Slot.1-1
- Disk.Bay.6:Enclosure.Internal.0-1:RAID.Slot.1-1
block_size_bytes: 512
capacity_bytes: 299439751168
optimum_io_size_bytes: 65536
encryption_types: NativeDriveEncryption
encrypted: true
- name: Create a volume with minimum options
dellemc.openmanage.redfish_storage_volume:
baseuri: "192.168.0.1"
username: "username"
password: "password"
ca_path: "/path/to/ca_cert.pem"
state: "present"
controller_id: "RAID.Slot.1-1"
volume_type: "NonRedundant"
drives:
- Disk.Bay.1:Enclosure.Internal.0-1:RAID.Slot.1-1
- name: Modify a volume's encryption type settings
dellemc.openmanage.redfish_storage_volume:
baseuri: "192.168.0.1"
username: "username"
password: "password"
ca_path: "/path/to/ca_cert.pem"
state: "present"
volume_id: "Disk.Virtual.5:RAID.Slot.1-1"
encryption_types: "ControllerAssisted"
encrypted: true
- name: Delete an existing volume
dellemc.openmanage.redfish_storage_volume:
baseuri: "192.168.0.1"
username: "username"
password: "password"
ca_path: "/path/to/ca_cert.pem"
state: "absent"
volume_id: "Disk.Virtual.5:RAID.Slot.1-1"
- name: Initialize an existing volume
dellemc.openmanage.redfish_storage_volume:
baseuri: "192.168.0.1"
username: "username"
password: "password"
ca_path: "/path/to/ca_cert.pem"
command: "initialize"
volume_id: "Disk.Virtual.6:RAID.Slot.1-1"
initialize_type: "Slow"
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
---|---|
Details of a http error. Returned: on http error Sample: |
|
Overall status of the storage configuration operation. Returned: always Sample: |
|
Returns ID and URI of the created task. Returned: success Sample: |