Salt module to manage RAID arrays with mdadm
Create a RAID device.
Warning
Use with CAUTION, as this function can be very destructive if not used properly!
Use this module just as a regular mdadm command.
For more info, read the mdadm(8) manpage
NOTE: It takes time to create a RAID array. You can check the progress in "resync_status:" field of the results from the following command:
salt '*' raid.detail /dev/md0
CLI Examples:
salt '*' raid.create /dev/md0 level=1 chunk=256 raid-devices=2 /dev/xvdd /dev/xvde test_mode=True
Note
Test mode
Adding test_mode=True as an argument will print out the mdadm command that would have been run.
Parameters: |
|
---|---|
Returns: |
|
Destroy a RAID device.
WARNING This will zero the superblock of all members of the RAID array..
CLI Example:
salt '*' raid.destroy /dev/md0
Show detail for a specified RAID device
CLI Example:
salt '*' raid.detail '/dev/md0'
List the RAID devices.
CLI Example:
salt '*' raid.list
Current Salt release: 2014.1.6
Docs for previous releases on salt.rtfd.org.