salt.states.mdadm

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, opts=None)

Verify that the raid is present

name
The name of raid device to be created
opts

The mdadm options to use to create the raid. See mdadm for more information. Opts can be expressed as a single string of options.

/dev/md0:
  raid.present:
    - opts: level=1 chunk=256 raid-devices=2 /dev/xvdd /dev/xvde

Or as a list of options.

/dev/md0:
  raid.present:
    - opts:
      - level=1
      - chunk=256
      - raid-devices=2
      - /dev/xvdd
      - /dev/xvde

Table Of Contents

Previous topic

salt.states.makeconf

Next topic

salt.states.module