From 1bb67c358643ea3778ca8ae5406240e68902df16 Mon Sep 17 00:00:00 2001 From: rread Date: Fri, 1 Nov 2002 02:32:38 +0000 Subject: [PATCH] Similar to local.sh, but with 2 mount points of the same filesystem. --- lustre/tests/mount2.sh | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 lustre/tests/mount2.sh diff --git a/lustre/tests/mount2.sh b/lustre/tests/mount2.sh new file mode 100644 index 0000000..7c25103 --- /dev/null +++ b/lustre/tests/mount2.sh @@ -0,0 +1,35 @@ +#!/bin/bash + +config=${1:-mount2.xml} + +LMC=${LMC:-../utils/lmc} +TMP=${TMP:-/tmp} + +MDSDEV=$TMP/mds1 +MDSSIZE=50000 + +OSTDEV=$TMP/ost1 +OSTSIZE=100000 + +kver=`uname -r | cut -d "." -f 1,2` + +case $kver in + 2.4) FSTYPE="--fstype=extN" ;; + 2.5) FSTYPE="--fstype=ext3" ;; + *) echo "Kernel version $kver not supported" + exit 1 + ;; +esac + +# create nodes +${LMC} -o $config --node localhost --net localhost tcp || exit 1 + +# configure mds server +${LMC} -m $config --format --node localhost $FSTYPE --mds mds1 $MDSDEV $MDSSIZE || exit 2 + +# configure ost +${LMC} -m $config --format --node localhost $FSTYPE --ost $OSTDEV $OSTSIZE || exit 3 + +# create client config +${LMC} -m $config --node localhost --mtpt /mnt/lustre mds1 OSC_localhost || exit 4 +${LMC} -m $config --node localhost --mtpt /mnt/lustre2 mds1 OSC_localhost || exit 4 -- 1.8.3.1