diff options
author | Raghavendra Bhat <raghavendrabhat@gluster.com> | 2011-09-29 15:21:01 +0530 |
---|---|---|
committer | Raghavendra Bhat <raghavendrabhat@gluster.com> | 2011-09-29 15:21:01 +0530 |
commit | ff2fa6cb4fc013f158fd0195a34b838d79c72894 (patch) | |
tree | d1eec28822d2fc114906c6b2d5de5d1fa2b96b79 /sanity | |
parent | 733df5316f61591ab39265270a1ae1564afd7f67 (diff) |
sanity/nightly_sanity/nightly_updated.sh: make changes for the copying the new statedump files
Previously statedump files were located in /tmp/with the name glusterfs.<pid>
Now (glusterfs-3.3.0qa12 onwards) its not like that. Brick statedumps are saved
in the pattern "brick-path.<pid>.dump" and client statedumps are saved in the
pattern glusterdump.<pid>.dump. Changes are done with this commit to make nightly
sanity script aware of that.
Diffstat (limited to 'sanity')
-rwxr-xr-x | sanity/nightly_sanity/nightly_updated.sh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sanity/nightly_sanity/nightly_updated.sh b/sanity/nightly_sanity/nightly_updated.sh index baed7d3..a8f4da1 100755 --- a/sanity/nightly_sanity/nightly_updated.sh +++ b/sanity/nightly_sanity/nightly_updated.sh @@ -702,7 +702,7 @@ function take_statedump () BRICK_PID=$(cat /etc/glusterd/vols/vol/run/$i); kill -USR1 $BRICK_PID; sleep 1; - mv /tmp/glusterdump.$BRICK_PID $dir; + mv /tmp/*.$BRICK_PID.dump $dir; done for j in $(seq 1 $num_clients) @@ -710,10 +710,10 @@ function take_statedump () CLIENT_PID=$(cat /tmp/client_pid$j); kill -USR1 $CLIENT_PID; sleep 1; - mv /tmp/glusterdump.$CLIENT_PID $dir; + mv /tmp/*.$CLIENT_PID.dump $dir; done } - + function main() { echo "In main"; @@ -724,7 +724,7 @@ function main() start_glusterd; start_glusterfs; take_statedump $LOGDIR/old_dump/; - run_tests; + run_tests; take_statedump $LOGDIR/new_dump/; trap - INT TERM EXIT post_run; |