exit 0
fi
- if [ -n "$($LCTL list_nids | grep -v '\(tcp\|lo\)[[:digit:]]*$')" ]; then
- skip "LU-2200: Test cannot run over Infiniband"
- exit 0
- fi
-
local IMGTYPE=$(facet_fstype $SINGLEMDS)
tarballs=$($r find $RLUSTRE/tests -maxdepth 1 -name \'disk*-$IMGTYPE.tar.bz2\')
}
fi
else
+ if [ -n "$($LCTL list_nids | grep -v '\(tcp\|lo\)[[:digit:]]*$')" ]; then
+ [[ $(lustre_version_code mgs) -ge $(version_code 2.3.59) ]] ||
+ { skip "LU-2200: Cannot run over Inifiniband w/o lctl replace_nids "
+ "(Need MGS version at least 2.3.59)"; return 0; }
+
+ local osthost=$(facet_active_host ost1)
+ local ostnid=$(do_node $osthost $LCTL list_nids | head -1)
+
+ $r mount -t lustre -o loop,nosvc $tmp/mdt $tmp/mnt/mdt
+ $r lctl replace_nids $fsname-OST0000 $ostnid
+ $r lctl replace_nids $fsname-MDT0000 $nid
+ $r umount $tmp/mnt/mdt
+ fi
+
mopts=loop,exclude=$fsname-OST0000
fi
# on an architecture with different number of bits per
# "long".
#
- if [ $(t32_bits_per_long $(uname -m)) != \
- $(t32_bits_per_long $img_arch) ]; then
+ if [ $(t32_bits_per_long $(uname -m)) != \
+ $(t32_bits_per_long $img_arch) ]; then
echo "Different number of bits per \"long\" from the disk image"
for list in list.orig list; do
sed -i -e 's/^[0-9]\+[ \t]\+//' $tmp/$list
error_noexit "tunefs.lustre before remounting the MDT"
return 1
}
- $r mount -t lustre -o loop,exclude=$fsname-OST0000 $tmp/mdt \
+ $r mount -t lustre -o loop,exclude=$fsname-OST0000 $tmp/mdt \
$tmp/mnt/mdt || {
error_noexit "Remounting the MDT"
return 1
t32_check
for tarball in $tarballs; do
- t32_test $tarball || rc=$?
+ t32_test $tarball || let "rc += $?"
done
return $rc
}
t32_check
for tarball in $tarballs; do
- t32_test $tarball writeconf || rc=$?
+ t32_test $tarball writeconf || let "rc += $?"
done
return $rc
}