19 echo "Test 1 drop request:" `date` "creating /mnt/lustre/foo"
22 echo 0x80000107 > /proc/sys/lustre/fail_loc
23 touch /mnt/lustre/foo &
25 echo "MDS dropped create request -- sleep 4 secs - watch for timeout"
29 echo "did things recover? check for file foo."
35 echo "Test 2 test delay queue:" `date` "creating /mnt/lustre/foo"
39 echo 0x80000107 > /proc/sys/lustre/fail_loc
40 touch /mnt/lustre/foo &
42 echo "MDS dropped create request -- sleep 4 secs - watch for timeout"
44 touch /mnt/lustre/a/f &
47 echo "did things recover? check for file foo and a/f"
53 echo "Test 3 dropped reply:" `date` "creating /mnt/lustre/foo2"
56 echo 0x80000119 > /proc/sys/lustre/fail_loc
57 touch /mnt/lustre/foo2 &
59 echo "MDS dropped create request -- sleep 4 secs - watch for timeout"
64 echo "did things recover? check for file foo2"
70 echo "Test 4: Multiple failures"
72 echo 0x0000107 > /proc/sys/lustre/fail_loc
73 touch /mnt/lustre/bar &
75 echo "touch program will have repeated failures sleeping 10"
77 echo 0 > /proc/sys/lustre/fail_loc
80 echo "failure cleared"
81 echo "did things recover? Check for file bar"
88 echo "Test 5: Continue writing during recovery:" `date` "creating and writing/mnt/lustre/foo"
91 ./openme /mnt/lustre/foo3 &
92 ./writeme /mnt/lustre/iogoeson &
95 echo 0x80000107 > /proc/sys/lustre/fail_loc
96 mknod /mnt/lustre/dev c 10 240 &
97 echo "MDS dropped create request -- sleep 4 secs - watch for timeout"
101 echo "did things recover? check for file foo, bar, check log for reopen."