- Overview
- Module Description - What the module does and why it is useful
- Setup - The basics of getting started with the megaraid module
- Reference - Types reference and additional functionalities
- Hiera integration
- Contact
This module implements native types and providers to manage some aspects of LSI MegaRAID devices.
The megaraid module allows to automate the configuration of LSI MegaRAID devices. Currently, it only supports managing virtual disks.
The module requires the storcli package in order to manage MegaRAID volumes. An RPM version is available for download here.
A custom fact named 'has_megaraid' defines whether your system is equipped with one or more LSI MegaRAID devices.
You can use that fact to optionally include the megaraid class in your manifests as shown below:
if $::has_megaraid {
include megaraid
}
megaraid_vd
manages virtual disks using the StorCLI utility
megaraid_vd {"data":
controller => 0,
raid_type => 1,
drives => "1,2" # If the Enclosure ID is not given, the first one available will be picked (this will generate a warning message though)
}
Name to describe the VD
Virtual disk name, defaults to name
Whether the resource is present or not. Valid values are 'present', 'absent'. Defaults to 'present'.
Controller Index, must be an Integer
RAID type. Valid values are: 0, 1, 5, 6, 10, 50, 60.
Logical drive cache policy. Valid values are: 'direct', 'cached'.
Write policy. Valid values are: 'wb', 'wt'.
Access policy. Values values are: 'rw', 'ro', 'blocked', 'rmvblkd'.
Read policy. Values values are: 'ra', 'nora'.
Physical drives to use. Valid syntax is [e:]s|[e:]s-x|[e:]s-x,y,[e:]s-x,y,z
Physical drives to be used as spares. Valid syntax is [e:]s|[e:]s-x|[e:]s-x,y,[e:]s-x,y,z
Number of physical drives per array. Must be an Integer between 0..15.
Strip size. Valid values are: 8, 16, 32, 64, 128, 256, 512, 1024.
Enables or disables PD cache. Valid values are: on, off, default.
Creates security-enabled drives. Must be a Boolean.
Enables protection information. Must be a Boolean.
Power-saving policy. Valid values are: automatic, none, max, maxnocache.
Creates the VD in the adjacent free slot next to the specified VD.
Forces a security-capable physical drive to be added to a drive group without security. Must be a Boolean, default is false.
You can optionally define your virtual disks in Hiera using the megaraid::virtual_disks class parameter.
---
megaraid::virtual_disks:
data1:
controller: 0
raid_type: 1
drives: 1,2
iopolicy: "direct"
writepolicy: "wb"
readpolicy: "ra"
data2:
controller: 0
raid_type: 10
drives: 3-6
strip: 512
Matteo Cerutti - [email protected]