From: adilger Date: Tue, 21 May 2002 22:06:17 +0000 (+0000) Subject: Update configurations to set up LDLM where needed. X-Git-Tag: v1_7_100~5649 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=837566721b87ec721a8c0d065241491d121cfbc5 Update configurations to set up LDLM where needed. Convert scripts over to new setup methods where possible to avoid them becoming increasingly outdated. Some scripts are already broken, and I don't use them so I'm not sure whether to remove them or fix them. Scripts updated are llmount.sh, llrmount.sh, llecho.sh, lldlm.sh, llmount-client.sh and llmount-server.sh. They use the default config scripts net*.cfg, obd*.cfg, ldlm.cfg, mds.cfg as needed to do the same thing they used to do. --- diff --git a/lustre/tests/README b/lustre/tests/README index 1135e8b..50fa500 100644 --- a/lustre/tests/README +++ b/lustre/tests/README @@ -82,6 +82,7 @@ marcus-obd-server.cfg: OSTFS=ext2 OSTTYPE=obdext2 SETUP_OST=y + SETUP_LDLM=y As with the echo test, you run "sh llsetup.sh marcus-obd-server.cfg" on the server to configure it. @@ -94,5 +95,6 @@ For marcus-obd-client.cfg you only need to include the client data: SETUP_OSC=y OSCMT=/mnt/lustre SETUP_MOUNT=y + SETUP_LDLM=y You run the test via "sh runtests marcus-obd-client.cfg". diff --git a/lustre/tests/elan-client.cfg b/lustre/tests/elan-client.cfg index 1978c12..120b605 100644 --- a/lustre/tests/elan-client.cfg +++ b/lustre/tests/elan-client.cfg @@ -3,8 +3,3 @@ NETWORK=elan LOCALHOST=5 SERVER=4 - -[ -z "$RSH" ] && RSH=ssh -RSH_MDS="$RSH dev$SERVER" -RSH_OST="$RSH dev$SERVER" -RSH_OSC=eval diff --git a/lustre/tests/lldlm.sh b/lustre/tests/lldlm.sh index d7b5e1d..6c575e1 100755 --- a/lustre/tests/lldlm.sh +++ b/lustre/tests/lldlm.sh @@ -1,21 +1,13 @@ #!/bin/sh -SRCDIR="`dirname $0`" +SRCDIR="`dirname $0`/" . $SRCDIR/common.sh -NETWORK=tcp -LOCALHOST=localhost -SERVER=localhost -PORT=1234 - -setup_portals -setup_lustre -read +export DEBUG_WAIT=yes +. $SRCDIR/llsetup.sh $SRCDIR/net-local.cfg $SRCDIR/ldlm.cfg || exit 2 $OBDCTL < /proc/sys/portals/debug - -$OBDCTL < /proc/sys/portals/debug - -$OBDCTL < /tmp/debug.1 -if [ "`mount | grep '/mnt/lustre'`" ]; then +if mount | grep '/mnt/lustre'; then umount /mnt/lustre || fail "cannot unmount" fi @@ -44,6 +44,7 @@ rmmod obdext2 rmmod ldlm rmmod ptlrpc rmmod obdclass +rmmod extN $DBGCTL get_debug > /tmp/debug.2 diff --git a/lustre/tests/llrmount.sh b/lustre/tests/llrmount.sh index bf7948a..4376a58 100755 --- a/lustre/tests/llrmount.sh +++ b/lustre/tests/llrmount.sh @@ -1,41 +1,10 @@ #!/bin/sh -SRCDIR="`dirname $0`" +SRCDIR="`dirname $0`/" . $SRCDIR/common.sh -NETWORK=tcp -LOCALHOST=localhost -SERVER=localhost -PORT=1234 +export DEBUG_WAIT=yes +. $SRCDIR/llrsetup.sh $SRCDIR/net-local.cfg $SRCDIR/client-mount.cfg $SRCDIR/mds.cfg $SRCDIR/obdext2.cfg $SRCDIR/ldlm.cfg || exit 2 -setup_portals -setup_lustre - -old_fs ext2 /tmp/ost 80000 -OST=$LOOPDEV -MDSFS=ext2 -old_fs ${MDSFS} /tmp/mds 10000 -MDS=$LOOPDEV - -echo 0xffffffff > /proc/sys/portals/debug - -$OBDCTL <