2 # Check integrity of raid6 in degraded modes
3 # Create a 5 disk raid6, dump some data to it, then
4 # sh1sum it with different pairs of devices failed
8 if expr $lv '>=' 2.6.30 > /dev/null
10 layouts="$layouts parity-first ddf-zero-restart ddf-N-restart ddf-N-continue \
11 left-asymmetric-6 right-asymmetric-6 left-symmetric-6 right-symmetric-6 parity-first-6"
14 for layout in $layouts
16 mdadm -CR $md0 -l6 --layout $layout -n5 $dev0 $dev1 $dev2 $dev3 $dev4
22 for second in $dev0 $dev1 $dev2 $dev3 $dev4
26 blockdev --flushbufs $md0
30 echo $sum does not matc $sum1 with $second missing
37 blockdev --flushbufs $md0
41 echo $sum does not matc $sum1 with $first and $second missing
49 totest="$totest $second"