--rebuild-map
, -r
Rebuild the map file (/run/mdadm/map
) that mdadm uses to
help track which arrays are currently being assembled.
--run
, -R
Run any array assembled as soon as a minimal number of
devices are available, rather than waiting until all
expected devices are present.
--scan
, -s
Only meaningful with -R
this will scan the map
file for
arrays that are being incrementally assembled and will try
to start any that are not already started. If any such
array is listed in mdadm.conf
as requiring an external
bitmap, that bitmap will be attached first.
--fail
, -f
This allows the hot-plug system to remove devices that
have fully disappeared from the kernel. It will first
fail and then remove the device from any array it belongs
to. The device name given should be a kernel device name
such as "sda", not a name in /dev.
--path=
Only used with --fail. The 'path' given will be recorded
so that if a new device appears at the same location it
can be automatically added to the same array. This allows
the failed device to be automatically replaced by a new
device without metadata if it appears at specified path.
This option is normally only set by a udev script.