mount_client $MOUNT
}
+unload_modules_conf () {
+ if combined_mgs_mds || ! local_mode; then
+ unload_modules || return 1
+ fi
+}
+
cleanup_nocli() {
stop_ost || return 202
stop_mds || return 201
- unload_modules || return 203
+ unload_modules_conf || return 203
}
cleanup() {
do_facet $SINGLEMDS "lctl set_param fail_loc=0x80000135"
start_mds && echo MDS started && return 1
lctl get_param -n devices
- DEVS=$(lctl get_param -n devices | wc -l)
+ DEVS=$(lctl get_param -n devices | egrep -v MG | wc -l)
[ $DEVS -gt 0 ] && return 2
- unload_modules || return 203
+ unload_modules_conf || return $?
}
run_test 26 "MDT startup failure cleans LOV (should return errs)"
umount -f $MOUNT || true
echo "Cleanup local mds ost1 ..."
cleanup_nocli32
- unload_modules
+ combined_mgs_mds || start_mgs
+ unload_modules_conf
}
test_32a() {
$TUNEFS $tmpdir/mds || error "tunefs failed"
+ combined_mgs_mds || stop mgs
+
# nids are wrong, so client wont work, but server should start
start32 mds1 $tmpdir/mds "-o loop,exclude=lustre-OST0000" && \
trap cleanup_32 EXIT INT || return 3
# mount a second time to make sure we didnt leave upgrade flag on
load_modules
$TUNEFS --dryrun $tmpdir/mds || error "tunefs failed"
+
+ combined_mgs_mds || stop mgs
+
start32 mds1 $tmpdir/mds "-o loop,exclude=lustre-OST0000" && \
trap cleanup_32 EXIT INT || return 12
# writeconf will cause servers to register with their current nids
$TUNEFS --writeconf --fsname=$NEWNAME $tmpdir/mds || error "tunefs failed"
+ combined_mgs_mds || stop mgs
+
start32 mds1 $tmpdir/mds "-o loop" && \
trap cleanup_32 EXIT INT || return 3
skip_env "mixed loopback and real device not working" && return
fi
+ combined_mgs_mds || mkfs_opts="$mkfs_opts --nomgs"
+
local fs2mdsdev=${fs2mds_DEV:-${MDSDEV}_2}
local fs2ostdev=${fs2ost_DEV:-$(ostdevname 1)_2}
add fs2mds $MDS_MKFS_OPTS --mkfsoptions='\"-J size=8\"' --fsname=${FSNAME2} --reformat $fs2mdsdev || exit 10
stop fs2ost -f || return 201
stop fs2mds -f || return 202
rm -rf $MOUNT2 $fs2mdsdev $fs2ostdev $fs3ostdev
- unload_modules || return 203
+ unload_modules_conf || return 203
return $rc
}
run_test 36 "df report consistency on OSTs with different block size"
stop ost1 -f || return 201
stop_mds -f || return 202
stop_mds -f || return 203
- unload_modules || return 204
+ unload_modules_conf || return 204
return $rc
}
run_test 41 "mount mds with --nosvc and --nomgs"