2 # Check integrity of raid5 in degraded mode
3 # Create a 4 disk raid5, create a filesystem and
4 # sha1sum it with each device failed
6 if [ "$INTEGRITY" != "yes" ]; then
7 echo -ne 'skipping... '
11 for layout in ls rs la ra
13 mdadm -CR $md0 -l5 --layout $layout -n4 $dev0 $dev1 $dev2 $dev3
18 for i in $dev0 $dev1 $dev2 $dev3
22 blockdev --flushbufs $md0
24 if [ "$sum" != "$sum1" ]
26 echo $sum does not match $sum1 with $i missing