From aa273cb5c64bb6dfb3cec3660f5f2173de5b8b12 Mon Sep 17 00:00:00 2001 From: braam Date: Thu, 5 Dec 2002 07:54:28 +0000 Subject: [PATCH] - add tools and beginning of multi mount point sanity test. --- lustre/tests/llmount2-hack.sh | 9 ++------ lustre/tests/llmount2-hackcleanup.sh | 21 ++++++++++++++++++ lustre/tests/local2-hack.xml | 43 ++++++++++++++++++++++++++++++++++++ lustre/tests/sanityN.sh | 43 ++++++++++++++++++++++++++++++++++++ 4 files changed, 109 insertions(+), 7 deletions(-) create mode 100644 lustre/tests/llmount2-hackcleanup.sh create mode 100644 lustre/tests/local2-hack.xml create mode 100644 lustre/tests/sanityN.sh 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 -- 1.8.3.1