Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Branch HEAD
[fs/lustre-release.git]
/
lustre
/
tests
/
cobd.sh
diff --git
a/lustre/tests/cobd.sh
b/lustre/tests/cobd.sh
index
cb4f94d
..
3b7e8ac
100755
(executable)
--- a/
lustre/tests/cobd.sh
+++ b/
lustre/tests/cobd.sh
@@
-6,26
+6,29
@@
config=${1:-$(basename $0 .sh)}.xml
LMC=${LMC:-../utils/lmc -m $config}
TMP=${TMP:-/tmp}
LMC=${LMC:-../utils/lmc -m $config}
TMP=${TMP:-/tmp}
-MDSDEV=$TMP/mds1
+HOSTNAME=`hostname`
+
+MDSDEV=${MDSDEV:-$TMP/mds1-`hostname`}
MDSSIZE=50000
MDSSIZE=50000
+FSTYPE=${FSTYPE:-ext3}
-OSTDEV=$
TMP/ost1
+OSTDEV=$
{OSTDEV:-$TMP/ost1-`hostname`}
OSTSIZE=200000
rm -f $config
# create nodes
OSTSIZE=200000
rm -f $config
# create nodes
-${LMC} --add node --node
localhost
|| exit 10
-${LMC} --add net --node
localhost --nid localhost
--nettype tcp || exit 11
+${LMC} --add node --node
$HOSTNAME
|| exit 10
+${LMC} --add net --node
$HOSTNAME --nid $HOSTNAME
--nettype tcp || exit 11
# configure mds server
# configure mds server
-${LMC} --add mds --node
localhost --mds mds1
--dev $MDSDEV --size $MDSSIZE || exit 20
+${LMC} --add mds --node
$HOSTNAME --mds mds1 --fstype $FSTYPE
--dev $MDSDEV --size $MDSSIZE || exit 20
# configure ost
# configure ost
-${LMC} --add ost --node
localhost --obd obd1
--obdtype obdecho || exit 30
+${LMC} --add ost --node
$HOSTNAME --obd obd1 --fstype $FSTYPE
--obdtype obdecho || exit 30
# configure ost
# configure ost
-${LMC} --add ost --node
localhost --obd obd2
--obdtype obdecho || exit 30
+${LMC} --add ost --node
$HOSTNAME --obd obd2 --fstype $FSTYPE
--obdtype obdecho || exit 30
-${LMC} --add cobd --node
localhost
--real_obd obd1 --cache_obd obd2
+${LMC} --add cobd --node
$HOSTNAME
--real_obd obd1 --cache_obd obd2
# create client config
# create client config
-# ${LMC} -m $config --add mtpt --node
localhost
--path /mnt/lustre --mds mds1 --obd obd1 || exit 40
+# ${LMC} -m $config --add mtpt --node
$HOSTNAME
--path /mnt/lustre --mds mds1 --obd obd1 || exit 40