Create a mirror. The order of components is important, because a components priority is based on its position (starting from 0). The component with the biggest priority is used by the prefer balance algorithm and is also used as a master component when resynchronization is needed, e.g. after a power failure when the device was open for writing.
Additional options include:
-b balance
Specifies balance algorithm to use, one of:
load
Read from the component with the lowest load.
prefer
Read from the component with the biggest priority.
round-robin
Use round-robin algorithm when choosing component to read.
split
Split read requests, which are bigger than or equal to slice size on N pieces, where N is the number of active components.
-h
Hardcode providers names in metadata.
-n
Turn off autosynchronization of stale components.
-s slice
When using the split balance algorithm and an I/O READ request is bigger than or equal to this value, the I/O request will be split into N pieces, where N is the number of active component.
clear
Clear metadata on the given providers.
configure
Configure the given device.
Additional options include:
-a
Turn on autosynchronization of stale components.
-b balance
Specifies balance algorithm to use.
-d
Do not hardcode providers names in metadata.
-h
Hardcode providers names in metadata.
-n
Turn off autosynchronization of stale components.
-s slice
Specifies slice size for split balance algorithm.
rebuild
Rebuild the given mirror components forcibly. If autosynchronization was not turned off for the given device, this command should be unnecessary.
insert
Add the given component(s) to the existing mirror.
Additional options include:
-h
Hardcode providers names in metadata.
-i
Mark component(s) as inactive immediately after insertion.
-p priority
Specifies priority of the given component(s).
remove
Remove the given component(s) from the mirror and clear metadata on it.
activate
Activate the given component(s), which were marked as inactive before.
deactivate
Mark the given component(s) as inactive, so it will not be automatically connected to the mirror.
forget
Forget about components which are not connected. This command is useful when a disk has failed and cannot be reconnected, preventing the remove command from being used to remove it.