aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation
diff options
context:
space:
mode:
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/md.txt39
1 files changed, 39 insertions, 0 deletions
diff --git a/Documentation/md.txt b/Documentation/md.txt
index b19978e035fc..df0b45515775 100644
--- a/Documentation/md.txt
+++ b/Documentation/md.txt
@@ -216,6 +216,45 @@ All md devices contain:
216 period as a number of seconds. The default is 200msec (0.200). 216 period as a number of seconds. The default is 200msec (0.200).
217 Writing a value of 0 disables safemode. 217 Writing a value of 0 disables safemode.
218 218
219 array_state
220 This file contains a single word which describes the current
221 state of the array. In many cases, the state can be set by
222 writing the word for the desired state, however some states
223 cannot be explicitly set, and some transitions are not allowed.
224
225 clear
226 No devices, no size, no level
227 Writing is equivalent to STOP_ARRAY ioctl
228 inactive
229 May have some settings, but array is not active
230 all IO results in error
231 When written, doesn't tear down array, but just stops it
232 suspended (not supported yet)
233 All IO requests will block. The array can be reconfigured.
234 Writing this, if accepted, will block until array is quiessent
235 readonly
236 no resync can happen. no superblocks get written.
237 write requests fail
238 read-auto
239 like readonly, but behaves like 'clean' on a write request.
240
241 clean - no pending writes, but otherwise active.
242 When written to inactive array, starts without resync
243 If a write request arrives then
244 if metadata is known, mark 'dirty' and switch to 'active'.
245 if not known, block and switch to write-pending
246 If written to an active array that has pending writes, then fails.
247 active
248 fully active: IO and resync can be happening.
249 When written to inactive array, starts with resync
250
251 write-pending
252 clean, but writes are blocked waiting for 'active' to be written.
253
254 active-idle
255 like active, but no writes have been seen for a while (safe_mode_delay).
256
257
219 sync_speed_min 258 sync_speed_min
220 sync_speed_max 259 sync_speed_max
221 This are similar to /proc/sys/dev/raid/speed_limit_{min,max} 260 This are similar to /proc/sys/dev/raid/speed_limit_{min,max}