[prev in list] [next in list] [prev in thread] [next in thread] 

List:       lustre-cvs
Subject:    [Lustre-cvs] b_devel: lustre/tests uml.sh
From:       Andreas Dilger <adilger () users ! sourceforge ! net>
Date:       2003-05-30 19:01:53
[Download RAW message or body]

Update of /cvsroot/lustre/lustre/tests
In directory sc8-pr-cvs1:/tmp/cvs-serv1683/tests

Modified Files:
      Tag: b_devel
	uml.sh 
Log Message:
Make uml.sh work when there are multiple OSTs on the same node.
Make it work when not run from within tests (set PATH appropriately and
do not hard-code lmc location).


Index: uml.sh
===================================================================
RCS file: /cvsroot/lustre/lustre/tests/uml.sh,v
retrieving revision 1.11.6.3
retrieving revision 1.11.6.4
diff -u -w -b -B -p -r1.11.6.3 -r1.11.6.4
--- uml.sh	20 May 2003 15:53:38 -0000	1.11.6.3
+++ uml.sh	30 May 2003 19:01:50 -0000	1.11.6.4
@@ -1,14 +1,18 @@
 #!/bin/bash
 
-config=${1-uml.xml}
-LMC=${LMC-../utils/lmc}
+export PATH=`dirname $0`/../utils:$PATH
+
+config=${1:-uml.xml}
+LMC=${LMC:-lmc}
 TMP=${TMP:-/tmp}
 
 MDSDEV=${MDSDEV:-$TMP/mds1}
 MDSSIZE=${MDSSIZE:-50000}
 
-OSTDEV1=${OSTDEV1:-$TMP/ost1}
-OSTDEV2=${OSTDEV2:-$TMP/ost2}
+OSTDEVBASE=$TMP/ost
+#OSTDEV1=${OSTDEV1:-${OSTDEVBASE}1}
+#OSTDEV2=${OSTDEV2:-${OSTDEVBASE}2}
+#etc
 OSTSIZE=${OSTSIZE:-100000}
 STRIPECNT=${STRIPECNT:-1}
 
@@ -78,7 +82,7 @@ echo -n "adding OST on:"
 for NODE in $OSTNODES; do
 	eval OSTDEV=\$OSTDEV$COUNT
 	echo -n " $NODE"
-	OSTDEV=${OSTDEV:-$OSTDEV1}
+	OSTDEV=${OSTDEV:-$OSTDEVBASE$COUNT}
         ${LMC} -m $config --add ost --node $NODE --lov lov1 --fstype $FSTYPE --dev \
$OSTDEV --size $OSTSIZE || exit 21  COUNT=`expr $COUNT + 1`
 done



-------------------------------------------------------
This SF.net email is sponsored by: eBay
Get office equipment for less on eBay!
http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5
_______________________________________________
Lustre-cvs mailing list
Lustre-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lustre-cvs


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic