From e868e7c30bed18d49e76e9a80a282a43a6b71a7f Mon Sep 17 00:00:00 2001 From: Prakash Surya Date: Tue, 14 Jun 2011 14:33:52 -0700 Subject: [PATCH] LU-434 Add comment for $SHARED_DIRECTORY variable To try and avoid confusion, a comment was added to better explain how the $SHARED_DIRECTORY variable is intended to be used. The explanation was taken from the Lustre mailing list. Specifically, from this message by Andreas: http://lists.lustre.org/pipermail/lustre-discuss/2011-June/015682.html Signed-off-by: Prakash Surya Change-Id: I594283a5963a0ac83bbe88ce8258e361408ec57a Reviewed-on: http://review.whamcloud.com/940 Reviewed-by: Andreas Dilger Reviewed-by: Oleg Drokin Tested-by: Hudson --- lustre/tests/cfg/ncli.sh | 5 +++++ lustre/tests/test-framework.sh | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/lustre/tests/cfg/ncli.sh b/lustre/tests/cfg/ncli.sh index 2249dd1..5e97660 100644 --- a/lustre/tests/cfg/ncli.sh +++ b/lustre/tests/cfg/ncli.sh @@ -14,7 +14,12 @@ init_clients_lists # for recovery scale tests # default boulder cluster iozone location export PATH=/opt/iozone/bin:$PATH + +# This is used by a small number of tests to share state between the client +# running the tests, or in some cases between the servers (e.g. lfsck.sh). +# It needs to be a non-lustre filesystem that is available on all the nodes. SHARED_DIRECTORY=${SHARED_DIRECTORY:-""} # bug 17839 comment 65 + LOADS=${LOADS:-"dd tar dbench iozone"} for i in $LOADS; do [ -f $LUSTRE/tests/run_${i}.sh ] || \ diff --git a/lustre/tests/test-framework.sh b/lustre/tests/test-framework.sh index 392536a..f0218c0 100644 --- a/lustre/tests/test-framework.sh +++ b/lustre/tests/test-framework.sh @@ -124,6 +124,10 @@ init_test_env() { export LFSCK_ALWAYS=${LFSCK_ALWAYS:-"no"} # check fs after each test suite export FSCK_MAX_ERR=4 # File system errors left uncorrected + + # This is used by a small number of tests to share state between the client + # running the tests, or in some cases between the servers (e.g. lfsck.sh). + # It needs to be a non-lustre filesystem that is available on all the nodes. export SHARED_DIRECTORY=${SHARED_DIRECTORY:-"/tmp"} export MDSDB=${MDSDB:-$SHARED_DIRECTORY/mdsdb} export OSTDB=${OSTDB:-$SHARED_DIRECTORY/ostdb} -- 1.8.3.1