From: braam Date: Thu, 5 Dec 2002 07:54:28 +0000 (+0000) Subject: - add tools and beginning of multi mount point sanity test. X-Git-Tag: v1_7_100~1^90~125 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=aa273cb5c64bb6dfb3cec3660f5f2173de5b8b12;p=fs%2Flustre-release.git - add tools and beginning of multi mount point sanity test. --- diff --git a/lustre/tests/llmount2-hack.sh b/lustre/tests/llmount2-hack.sh index d17805a..495626c 100644 --- a/lustre/tests/llmount2-hack.sh +++ b/lustre/tests/llmount2-hack.sh @@ -2,16 +2,11 @@ # suggested boilerplate for test script LCONF=${LCONF:-../utils/lconf} -NAME=${NAME:-local2} +NAME=${NAME:-local2-hack} config=$NAME.xml -mkconfig=./$NAME.sh -if [ ! -f $config -o $mkconfig -nt $config ]; then - sh $mkconfig $config || exit 1 -fi - -${LCONF} -v --reformat --gdb $config || exit 2 +${LCONF} --reformat --gdb $config || exit 2 ../utils/lctl < + + + + + + + + + + + + + localhost + 988 + + + + extN + /tmp/mds1 + yes + + + + + extN + /tmp/ost1 + yes + + + + + + + + + + + + + /mnt/lustre1 + + diff --git a/lustre/tests/sanityN.sh b/lustre/tests/sanityN.sh new file mode 100644 index 0000000..0b575a9 --- /dev/null +++ b/lustre/tests/sanityN.sh @@ -0,0 +1,43 @@ +#!/bin/bash + +export NAME=$NAME +clean() { + echo -n "cleanup..." + sh llmount2-hackcleanup.sh > /dev/null +} + +CLEAN=clean +start() { + echo -n "mounting..." + sh llmount2-hack.sh > /dev/null + echo -n "mounted" +} +START=start + +error () { + echo $1 + exit 1 +} + +echo -n "test 1: check create on 2 mtpt's..." +touch /mnt/lustre1/f1 +[ -f /mnt/lustre2/f1 ] || error "test 1 failure" +echo "pass" + +echo "test 2: check attribute updates on 2 mtpt's..." +chmod a+x /mnt/lustre2/f1 +[ -x /mnt/lustre1/f1 ] || error "test 2 failure" +echo "pass" + +echo "test 3: check after remount attribute updates on 2 mtpt's..." +chmod a-x /mnt/lustre2/f1 +$CLEAN +$START + +[ ! -x /mnt/lustre1/f1 ] || error "test 3 failure" +echo "pass" + +$CLEAN +$START + +exit