2 .\" Copyright Piergiorgio Sartor and others.
3 .\" This program is free software; you can redistribute it and/or modify
4 .\" it under the terms of the GNU General Public License as published by
5 .\" the Free Software Foundation; either version 2 of the License, or
6 .\" (at your option) any later version.
7 .\" See file COPYING in distribution for details.
8 .TH RAID6CHECK 8 "" v1.0.0
10 raid6check \- check MD RAID6 device for errors
16 .BI raid6check " <raid6 device> <start stripe> <number of stripes>"
19 RAID6 devices in which one single component drive has errors can use
20 the double parity in order to find out which component drive.
21 The "raid6check" tool checks, for each stripe, the double parity
22 consistency, reports mismatches and, if possible, which
23 component drive has the mismatch.
24 Since it works at stripe level, it can report different drives with
25 mismatches at different stripes.
27 "raid6check" requires a non-degraded RAID6 MD device as first
28 parameter, a starting stripe (usually 0) and the number of stripes
30 If this third parameter is also 0, it will check the array up to
33 "raid6check" will start printing information about the RAID6, then
34 for each stripe, it will report the parity rotation status.
35 In case of parity mismatches, "raid6check" reports, if possible,
36 which component drive could be responsible. Otherwise it reports
37 that it is not possible to find the component drive.
39 If the given MD device is not a RAID6, "raid6check" will, of
42 If the RAID6 MD device is degraded, "raid6check" will report
43 an error and it will not proceed further.
45 No write operations are performed on the array or the components.
46 Furthermore, the checked array can be online and in use during
47 the operation of "raid6check".
51 .B " raid6check /dev/md0 0 0"
53 This will check /dev/md0 from start to end.
55 .B " raid6check /dev/md3 0 1"
57 This will check the first stripe of /dev/md3.
59 .B " raid6check /dev/md1 1000 0"
61 This will check /dev/md1 from stripe 1000 up to the end.
63 .B " raid6check /dev/m127 128 256"
65 This will check 256 stripes of /dev/md127 starting from stripe 128.
67 .B " raid6check /dev/md0 0 0 | grep -i error > md0_err.log"
69 This will check /dev/md0 completely and create a log file only
74 "raid6check" uses directly the component drives as found in /dev.
75 Furthermore, the sysfs interface is needed in order to find out
79 Negative parameters can lead to unexpected results.
81 It is not clear what will happen if the RAID6 MD device gets
82 degraded during the check.
87 should always be available from
89 .B http://www.kernel.org/pub/linux/utils/raid/mdadm/