From: grev Date: Tue, 20 Nov 2007 21:39:26 +0000 (+0000) Subject: b=14087 X-Git-Tag: v1_8_0_110~977 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=077af28ee8999abc53770e0ffa3ea63ede0d5bfc;p=fs%2Flustre-release.git b=14087 i=Adilger set debug level on remote nodes only if modules already loaded --- diff --git a/lustre/tests/test-framework.sh b/lustre/tests/test-framework.sh index a1819b0..62fd049 100644 --- a/lustre/tests/test-framework.sh +++ b/lustre/tests/test-framework.sh @@ -226,15 +226,16 @@ start() { shift echo "Starting ${facet}: $@ ${device} ${MOUNT%/*}/${facet}" do_facet ${facet} mkdir -p ${MOUNT%/*}/${facet} - do_facet ${facet} "sysctl -w lnet.debug=$PTLDEBUG; - sysctl -w lnet.subsystem_debug=${SUBSYSTEM# }; - sysctl -w lnet.debug_mb=${DEBUG_SIZE}" do_facet ${facet} mount -t lustre $@ ${device} ${MOUNT%/*}/${facet} RC=${PIPESTATUS[0]} if [ $RC -ne 0 ]; then echo "mount -t lustre $@ ${device} ${MOUNT%/*}/${facet}" echo "Start of ${device} on ${facet} failed ${RC}" else + do_facet ${facet} "sysctl -w lnet.debug=$PTLDEBUG; \ + sysctl -w lnet.subsystem_debug=${SUBSYSTEM# }; \ + sysctl -w lnet.debug_mb=${DEBUG_SIZE}" + do_facet ${facet} sync label=$(do_facet ${facet} "e2label ${device}") [ -z "$label" ] && echo no label for ${device} && exit 1