aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/md.txt
diff options
context:
space:
mode:
Diffstat (limited to 'Documentation/md.txt')
-rw-r--r--Documentation/md.txt29
1 files changed, 23 insertions, 6 deletions
diff --git a/Documentation/md.txt b/Documentation/md.txt
index f0eee83ff78a..fc94770f44ab 100644
--- a/Documentation/md.txt
+++ b/Documentation/md.txt
@@ -360,18 +360,20 @@ Each directory contains:
360 A file recording the current state of the device in the array 360 A file recording the current state of the device in the array
361 which can be a comma separated list of 361 which can be a comma separated list of
362 faulty - device has been kicked from active use due to 362 faulty - device has been kicked from active use due to
363 a detected fault 363 a detected fault or it has unacknowledged bad
364 blocks
364 in_sync - device is a fully in-sync member of the array 365 in_sync - device is a fully in-sync member of the array
365 writemostly - device will only be subject to read 366 writemostly - device will only be subject to read
366 requests if there are no other options. 367 requests if there are no other options.
367 This applies only to raid1 arrays. 368 This applies only to raid1 arrays.
368 blocked - device has failed, metadata is "external", 369 blocked - device has failed, and the failure hasn't been
369 and the failure hasn't been acknowledged yet. 370 acknowledged yet by the metadata handler.
370 Writes that would write to this device if 371 Writes that would write to this device if
371 it were not faulty are blocked. 372 it were not faulty are blocked.
372 spare - device is working, but not a full member. 373 spare - device is working, but not a full member.
373 This includes spares that are in the process 374 This includes spares that are in the process
374 of being recovered to 375 of being recovered to
376 write_error - device has ever seen a write error.
375 This list may grow in future. 377 This list may grow in future.
376 This can be written to. 378 This can be written to.
377 Writing "faulty" simulates a failure on the device. 379 Writing "faulty" simulates a failure on the device.
@@ -379,9 +381,11 @@ Each directory contains:
379 Writing "writemostly" sets the writemostly flag. 381 Writing "writemostly" sets the writemostly flag.
380 Writing "-writemostly" clears the writemostly flag. 382 Writing "-writemostly" clears the writemostly flag.
381 Writing "blocked" sets the "blocked" flag. 383 Writing "blocked" sets the "blocked" flag.
382 Writing "-blocked" clears the "blocked" flag and allows writes 384 Writing "-blocked" clears the "blocked" flags and allows writes
383 to complete. 385 to complete and possibly simulates an error.
384 Writing "in_sync" sets the in_sync flag. 386 Writing "in_sync" sets the in_sync flag.
387 Writing "write_error" sets writeerrorseen flag.
388 Writing "-write_error" clears writeerrorseen flag.
385 389
386 This file responds to select/poll. Any change to 'faulty' 390 This file responds to select/poll. Any change to 'faulty'
387 or 'blocked' causes an event. 391 or 'blocked' causes an event.
@@ -419,7 +423,6 @@ Each directory contains:
419 written, it will be rejected. 423 written, it will be rejected.
420 424
421 recovery_start 425 recovery_start
422
423 When the device is not 'in_sync', this records the number of 426 When the device is not 'in_sync', this records the number of
424 sectors from the start of the device which are known to be 427 sectors from the start of the device which are known to be
425 correct. This is normally zero, but during a recovery 428 correct. This is normally zero, but during a recovery
@@ -435,6 +438,20 @@ Each directory contains:
435 Setting this to 'none' is equivalent to setting 'in_sync'. 438 Setting this to 'none' is equivalent to setting 'in_sync'.
436 Setting to any other value also clears the 'in_sync' flag. 439 Setting to any other value also clears the 'in_sync' flag.
437 440
441 bad_blocks
442 This gives the list of all known bad blocks in the form of
443 start address and length (in sectors respectively). If output
444 is too big to fit in a page, it will be truncated. Writing
445 "sector length" to this file adds new acknowledged (i.e.
446 recorded to disk safely) bad blocks.
447
448 unacknowledged_bad_blocks
449 This gives the list of known-but-not-yet-saved-to-disk bad
450 blocks in the same form of 'bad_blocks'. If output is too big
451 to fit in a page, it will be truncated. Writing to this file
452 adds bad blocks without acknowledging them. This is largely
453 for testing.
454
438 455
439 456
440An active md device will also contain and entry for each active device 457An active md device will also contain and entry for each active device