Whamcloud - gitweb
- and here are the new files with the previous commit
[fs/lustre-release.git] / lustre / tests / runfailure-client-mds-recover.sh
1 #!/bin/sh
2
3 echo `date` creating /mnt/lustre/foo
4 echo 0x80000107 > /proc/sys/lustre/fail_loc
5 touch /mnt/lustre/foo &
6 ps axww | grep touch
7 echo "touch program suspended and hanging -- sleeping 5 secs"
8 sleep 5
9 ls -l /mnt/lustre/foo
10
11 echo 0x0000107 > /proc/sys/lustre/fail_loc
12 touch /mnt/lustre/bar &
13 ps axww | grep touch
14 echo "touch program will have repeated failures sleeping 10"
15
16 sleep 10
17
18 echo 0 > /proc/sys/lustre/fail_loc
19 echo "failure cleared"
20 sleep 5
21 ls -l /mnt/lustre/bar