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 for layout in ls rs la ra
8 mdadm -CR $md0 -l5 --layout $layout -n4 $dev0 $dev1 $dev2 $dev3
13 for i in $dev0 $dev1 $dev2 $dev3
17 blockdev --flushbufs $md0
19 if [ "$sum" != "$sum1" ]
21 echo $sum does not match $sum1 with $i missing