X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Fscripts%2Fbdev-io-survey.sh;h=084ca5a810fc21d1fb94b06e865896edd35f9ba6;hb=0607e01af74a81d0fe12ceec79bd22810a5dfe92;hp=d9355a0bfceb039df18c36c75050111cdc8703c2;hpb=6fdb226c0c56ce9788c06d003f5f9ad15b21eb5b;p=fs%2Flustre-release.git diff --git a/lustre/scripts/bdev-io-survey.sh b/lustre/scripts/bdev-io-survey.sh index d9355a0..084ca5a 100755 --- a/lustre/scripts/bdev-io-survey.sh +++ b/lustre/scripts/bdev-io-survey.sh @@ -12,6 +12,7 @@ # discard first vmstat line # +HOSTNAME=`hostname` # a temp dir that is setup and torn down for each script run tmpdir="" # so we can kill background processes as the test cleans up @@ -421,14 +422,14 @@ echo_filter_config() { fi if [ $index = 0 ]; then - if ! lmc -m $config --add net \ - --node localhost --nid localhost --nettype tcp; then - echo "error adding localhost net node" + if ! lmc -m $config --add net \ + --node $HOSTNAME --nid $HOSTNAME --nettype tcp; then + echo "error adding $HOSTNAME net node" return 1 fi fi - if ! lmc -m $config --add ost --ost ost_$index --node localhost \ + if ! lmc -m $config --add ost --ost ost_$index --node $HOSTNAME \ --fstype ext3 --dev $bdev --journal_size 400; then echo "error adding $bdev to config with lmc" return 1 @@ -450,6 +451,10 @@ echo_filter_prepare() { return 1; fi running_config="$config" + + echo 0 > /proc/sys/lnet/debug + echo 0 > /proc/sys/lnet/subsystem_debug + if ! grep -q '^obdecho\>' /proc/modules; then local m if ! modprobe obdecho; then