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
salt.states.mdadm.
absent
(name)¶Verify that the raid is absent
/dev/md0:
raid:
- absent
salt.states.mdadm.
present
(name, level, devices, **kwargs)¶Verify that the raid is present
在 2014.7.0 版更改.
范例:
/dev/md0:
raid.present:
- level: 5
- devices:
- /dev/xvdd
- /dev/xvde
- /dev/xvdf
- chunk: 256
- run: True