salt.states.mdadm_raid
Managing software RAID with mdadm
- depends
-
mdadm
A state module for creating or destroying software RAID devices.
/dev/md0: raid.present: - level: 5 - devices: - /dev/xvdd - /dev/xvde - /dev/xvdf - chunk: 256 - run: True
-
Verify that the raid is absent
- name
-
The name of raid device to be destroyed
/dev/md0: raid: - absent
salt.states.mdadm_raid.absent(name)
-
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.
- kwargs
-
Optional arguments to be passed to mdadm.
Example:
/dev/md0: raid.present: - level: 5 - devices: - /dev/xvdd - /dev/xvde - /dev/xvdf - chunk: 256 - run: True
salt.states.mdadm_raid.present(name, level, devices, **kwargs)
© 2021 SaltStack.
Licensed under the Apache License, Version 2.0.
https://docs.saltproject.io/en/latest/ref/states/all/salt.states.mdadm_raid.html