From bb48fcb1a8bc44b4206c41cd32b24ebbba9fcd9a Mon Sep 17 00:00:00 2001 From: rread Date: Thu, 19 Dec 2002 09:48:54 +0000 Subject: [PATCH] * merge HEAD into b_recovery (new lmc) --- lustre/doc/lmc.lyx | 22 ++++++++++++---------- lustre/tests/mcr-routed-config.sh | 24 ++++++++++++------------ 2 files changed, 24 insertions(+), 22 deletions(-) diff --git a/lustre/doc/lmc.lyx b/lustre/doc/lmc.lyx index 39e602f..a5160b7 100644 --- a/lustre/doc/lmc.lyx +++ b/lustre/doc/lmc.lyx @@ -133,8 +133,9 @@ mds \layout Description ---device\SpecialChar ~ - +--dev\SpecialChar ~ + Path of device on local system. + If the is a file, then a loop device is created and used as the block device. \layout Description --size\SpecialChar ~ @@ -160,15 +161,15 @@ lov Creates an LOV with the specified parameters. --mds_ \layout Description ---stripesize\SpecialChar ~ +--stripe_sz\SpecialChar ~ \layout Description ---stripecount\SpecialChar ~ +--stripe_cnt\SpecialChar ~ \layout Description ---pattern\SpecialChar ~ +--stripe_pattern\SpecialChar ~ Pattern can be 0. \end_deeper \layout Description @@ -179,8 +180,8 @@ ost Creates an OBD, OST, and OSC. \begin_deeper \layout Description ---ost\SpecialChar ~ - [NOT IMPLEMENTED] Name to give to this OST target. +--obd\SpecialChar ~ + Assign a name to the OBD device. \layout Description --node\SpecialChar ~ @@ -188,8 +189,9 @@ ost Creates an OBD, OST, and OSC. node. \layout Description ---device\SpecialChar ~ - +--dev\SpecialChar ~ + Path of device on local system. + If the is a file, then a loop device is created and used as the block device. \layout Description --size\SpecialChar ~ @@ -226,7 +228,7 @@ node node or profile node that will use the mtpt mds_name \layout Description ---mdc\SpecialChar ~ +--obd\SpecialChar ~ lov_name|osc_name \end_deeper \layout Description diff --git a/lustre/tests/mcr-routed-config.sh b/lustre/tests/mcr-routed-config.sh index f66335e..eb2bec1 100755 --- a/lustre/tests/mcr-routed-config.sh +++ b/lustre/tests/mcr-routed-config.sh @@ -44,14 +44,14 @@ gw2node() { [ -f $config ] && rm $config -${LMC} --node $MDS --net `h2elan $MDS` elan || exit 1 -${LMC} --node $MDS --mds mds1 /tmp/mds1 100000 || exit 1 -${LMC} --lov lov1 mds1 65536 1 0 +${LMC} --add net --node $MDS --nid `h2elan $MDS` --nettype elan || exit 1 +${LMC} --add mds --node $MDS --mds mds1 --dev /tmp/mds1 --size 100000 || exit 1 +${LMC} --add lov --lov lov1 --mds mds1 --stripe_sz 65536 --stripe_cnt 1 --stripe_pattern 0 # Client node -#${LMC} --node client --tcpbuf $TCPBUF --net '*' tcp || exit 1 -${LMC} --node client --net '*' elan || exit 1 -${LMC} --node client --mtpt /mnt/lustre mds1 lov1 +#${LMC} --add net --node client --tcpbuf $TCPBUF --nid '*' --nettype tcp || exit 1 +${LMC} --add net --node client --nid '*' --nettype elan || exit 1 +${LMC} --add mtpt --node client --path /mnt/lustre --mds mds1 --lov lov1 # this is crude, but effective let server_per_gw=($SERVER_CNT / $GW_CNT ) @@ -65,9 +65,9 @@ while (( $gw < $GW_CNT + GW_START )); do gwnode=$BASE`gw2node $gw` echo "Router: $gwnode" - ${LMC} --router --node $gwnode --tcpbuf $TCPBUF --net `h2ip $gwnode` tcp || exit 1 - ${LMC} --node $gwnode --net `h2elan $gwnode` elan|| exit 1 - ${LMC} --node $gwnode --route elan `h2elan $gwnode` `h2elan $CLIENT_LO` `h2elan $CLIENT_HI` || exit 2 + ${LMC} --add net --router --node $gwnode --tcpbuf $TCPBUF --nid `h2ip $gwnode` --nettype tcp || exit 1 + ${LMC} --add net --node $gwnode --nid `h2elan $gwnode` --nettype elan || exit 1 + ${LMC} --add route --node $gwnode --nettype elan --gw `h2elan $gwnode` --lo `h2elan $CLIENT_LO` --hi `h2elan $CLIENT_HI` || exit 2 let i=0 while (( $i < $server_per_gw )); @@ -77,11 +77,11 @@ do OBD_UUID=`awk "/$OST / { print \\$3 }" $UUIDLIST` [ "$OBD_UUID" ] && OBD_UUID="--obduuid=$OBD_UUID" || echo "$OST: no UUID" # server node - ${LMC} --node $OST --tcpbuf $TCPBUF --net $OST tcp || exit 1 + ${LMC} --add net --node $OST --tcpbuf $TCPBUF --nid $OST --nettype tcp || exit 1 # the device on the server - ${LMC} --lov lov1 --node $OST $OBD_UUID --ost bluearc || exit 3 + ${LMC} --add ost --lov lov1 --node $OST --obduuid $OBD_UUID --dev bluearc || exit 3 # route to server - ${LMC} --node $gwnode --route tcp `h2ip $gwnode` $OST || exit 2 + ${LMC} --add route --node $gwnode --nettype tcp --gw `h2ip $gwnode` --lo $OST || exit 2 let server=$server+1 let i=$i+1 done -- 1.8.3.1