# mdadm
# Autogenerated from man page /usr/share/man/man8/mdadm.8.gz
complete -c mdadm -l fail -d 'flag is passed in we will remove the device from any active array instead of …'
complete -c mdadm -s A -l assemble -d 'Assemble a pre-existing array'
complete -c mdadm -s B -l build -d 'Build a legacy array without superblocks'
complete -c mdadm -s C -l create -d 'Create a new array'
complete -c mdadm -s F -l follow -l monitor -d 'Select Monitor mode'
complete -c mdadm -s G -l grow -d 'Change the size or shape of an active array'
complete -c mdadm -s I -l incremental -d 'Add/remove a single device to/from an appropriate array, and possibly start t…'
complete -c mdadm -l auto-detect -d 'Request that the kernel starts any auto-detected arrays'
complete -c mdadm -l add
complete -c mdadm -l re-add
complete -c mdadm -l add-spare
complete -c mdadm -l remove -d or
complete -c mdadm -l replace -d 'then the MANAGE mode is assumed'
complete -c mdadm -s h -l help -d 'Display a general help message or, after one of the above options, a mode-spe…'
complete -c mdadm -l help-options -d 'Display more detailed help about command-line parsing and some commonly used …'
complete -c mdadm -s V -l version -d 'Print version information for mdadm'
complete -c mdadm -s v -l verbose -d 'Be more verbose about what is happening'
complete -c mdadm -l detail -l scan -d and
complete -c mdadm -l examine
complete -c mdadm -s q -l quiet -d 'Avoid printing purely informative messages'
complete -c mdadm -s f -l force -d 'Be more forceful about certain operations'
complete -c mdadm -s c -l config -d 'Specify the config file or directory'
complete -c mdadm -s s -d 'Scan config file or /proc/mdstat for missing information'
complete -c mdadm -l stop -d 'in which case'
complete -c mdadm -s e -l metadata -d 'Declare the style of RAID metadata (superblock) to be used'
complete -c mdadm -l homehost -d 'This will override any HOMEHOST setting in the config file and provides the i…'
complete -c mdadm -l prefer -d 'When mdadm needs to print the name for a device it normally finds the name in…'
complete -c mdadm -l home-cluster -d 'specifies the cluster name for the md device'
complete -c mdadm -s n -l raid-devices -d 'Specify the number of active devices in the array'
complete -c mdadm -s x -l spare-devices -d 'Specify the number of spare (eXtra) devices in the initial array'
complete -c mdadm -s z -l size -d 'Amount (in Kilobytes) of space to use from each drive in RAID levels 1/4/5/6/…'
complete -c mdadm -s Z -l array-size -d 'This is only meaningful with'
complete -c mdadm -l chunk -d 'Specify chunk size in kilobytes'
complete -c mdadm -l rounding -d 'Specify the rounding factor for a Linear array'
complete -c mdadm -s l -l level -d 'Set RAID level.   When used with'
complete -c mdadm -s p -l layout -d 'This option configures the fine details of data layout for RAID5, RAID6, and …'
complete -c mdadm -l parity -d 'same as'
complete -c mdadm -s b -l bitmap -d 'Specify a file to store a write-intent bitmap in'
complete -c mdadm -l nodes -d 'parameter and are stored internally'
complete -c mdadm -l consistency-policy
complete -c mdadm -l bitmap-chunk -d 'Set the chunk size of the bitmap'
complete -c mdadm -s W -l write-mostly -d 'subsequent devices listed in a'
complete -c mdadm -l write-behind -d 'Specify that write-behind mode should be enabled (valid for RAID1 only)'
complete -c mdadm -l failfast -d 'subsequent devices listed in a'
complete -c mdadm -l assume-clean -d 'Tell mdadm that the array pre-existed and is known to be clean'
complete -c mdadm -l write-zeroes -d 'When creating an array, send write zeroes requests to all the block devices'
complete -c mdadm -l backup-file -d 'This is needed when'
complete -c mdadm -l data-offset -d 'Arrays with 1'
complete -c mdadm -l continue -d 'This option is complementary to the'
complete -c mdadm -l freeze-reshape -d 'option for assembly.  It is needed when'
complete -c mdadm -s N -l name -d 'Set a name for the array'
complete -c mdadm -s R -l run -d 'Insist that mdadm run the array, even if some of the components appear to be …'
complete -c mdadm -s o -l readonly -d 'Start the array read only rather than read-write as normal'
complete -c mdadm -s a -l auto -d 'Instruct mdadm how to create the device file if needed, possibly allocating a…'
complete -c mdadm -l raid-disks -d 'option is being used to increase the number of devices in an array, then'
complete -c mdadm -l write-journal -d 'Specify journal device for the RAID-4/5/6 array'
complete -c mdadm -s k -d 'Specify how the array maintains consistency in the case of an unexpected shut…'
complete -c mdadm -s u -l uuid -d 'uuid of array to assemble.   Devices which don\'t have this uuid are excluded'
complete -c mdadm -s m -l super-minor -d 'Minor number of device that array was created for'
complete -c mdadm -l no-degraded -d 'This is the reverse of'
complete -c mdadm -l invalid-backup -d 'If the file needed for the above option is not available for any reason an em…'
complete -c mdadm -s U -l update -d 'Update the superblock on each device while assembling the array'
complete -c mdadm -l 'sparc2.2' -d 'option to mdadm to see what effect this would have'
complete -c mdadm -l zero-superblock
complete -c mdadm -s t -l test -d 'Unless a more serious error occurred, mdadm will exit with a status of 2 if n…'
complete -c mdadm -s r -d 'remove listed devices.   They must not be active.   i. e'
complete -c mdadm -l set-faulty -d 'same as'
complete -c mdadm -l with -d 'This can follow a list of'
complete -c mdadm -l readwrite -d 'Subsequent devices that are added or re-added will have the \'write-mostly\' fl…'
complete -c mdadm -l cluster-confirm -d 'Confirm the existence of the device'
complete -c mdadm -l add-journal -d 'Add a journal to an existing array, or recreate journal for a RAID-4/5/6 arra…'
complete -c mdadm -l nofailfast -d 'Subsequent devices that are re-added will be re-added without the \'failfast\' …'
complete -c mdadm -s Q -l query -d 'Examine a device to see (1) if it is an md device and (2) if it is a componen…'
complete -c mdadm -s D -d 'Print details of one or more md devices'
complete -c mdadm -l detail-platform -d 'Print details of the platform\'s RAID capabilities (firmware / hardware topolo…'
complete -c mdadm -s Y -l export -d 'When used with'
complete -c mdadm -s E -d 'Print contents of the metadata stored on the named device(s)'
complete -c mdadm -s X -l examine-bitmap -d 'Report information about a bitmap file'
complete -c mdadm -l examine-badblocks -d 'List the bad-blocks recorded for the device, if a bad-blocks list has been co…'
complete -c mdadm -l dump
complete -c mdadm -l restore -d 'Save metadata from lists devices, or restore metadata to listed devices'
complete -c mdadm -s S -d 'deactivate array, releasing all resources'
complete -c mdadm -s w -d 'mark array as readwrite'
complete -c mdadm -l kill-subarray -d 'If the device is a container and the argument to --kill-subarray specifies an…'
complete -c mdadm -l update-subarray -d 'If the device is a container and the argument to --update-subarray specifies …'
complete -c mdadm -l wait -d 'For each md device given, wait for any resync, recovery, or reshape activity …'
complete -c mdadm -l wait-clean -d 'For each md device given, or each device in /proc/mdstat if'
complete -c mdadm -l action -d 'Set the "sync_action" for all md devices given to one of idle , frozen , chec…'
complete -c mdadm -l rebuild-map -d 'Rebuild the map file ( /run/mdadm/map ) that mdadm uses to help track which a…'
complete -c mdadm -l path -d 'Only used with --fail'
complete -c mdadm -l mail -d 'Give a mail address to send alerts to'
complete -c mdadm -l program -l alert -d 'Give a program to be run whenever an event is detected'
complete -c mdadm -s y -l syslog -d 'Cause all events to be reported through \'syslog\''
complete -c mdadm -s d -l delay -d 'Give a delay in seconds'
complete -c mdadm -l increment -d 'Give a percentage increment'
complete -c mdadm -l daemonise -d 'Tell mdadm to run as a background daemon if it decides to monitor anything'
complete -c mdadm -s i -l pid-file -d 'When mdadm is running in daemon mode, write the pid of the daemon process to …'
complete -c mdadm -s 1 -l oneshot -d 'Check arrays only once'
complete -c mdadm -l no-sharing -d 'This inhibits the functionality for moving spares between arrays'
complete -c mdadm -l brief -d or

