22.27.58. salt.states.mdadm

22.27.58.1. Managing software RAID with mdadm

A state module for creating or destroying software RAID devices.

/dev/md0:
  raid.present:
    - opts: level=1 chunk=256 raid-devices=2 /dev/xvdd /dev/xvde
salt.states.mdadm.absent(name)

Verify that the raid is absent

name
The name of raid device to be destroyed
/dev/md0:
  raid:
    - absent
salt.states.mdadm.present(name, level, devices, **kwargs)

Verify that the raid is present

Changed in version 2014.7.0.

name
The name of raid device to be created
level
The RAID level to use when creating the raid.
devices
A list of devices used to build the array.

Example:

/dev/md0:
  raid.present:
    - level: 5
    - devices:
      - /dev/xvdd
      - /dev/xvde
      - /dev/xvdf
    - chunk: 256
    - run: True

Docs for previous releases are available on salt.rtfd.org.

Latest Salt release: 2014.7.2

Table Of Contents

Previous topic

22.27.57. salt.states.makeconf

Next topic

22.27.59. salt.states.memcached

SaltStack News

Upcoming SaltStack events, webinars and local meet ups and user groups.