obd->u.mds.mds_fl_cfglog = 1;
if (flag & CONFIG_SYNC)
obd->u.mds.mds_fl_synced = 1;
- if (obd->u.mds.mds_fl_cfglog && obd->u.mds.mds_fl_synced)
+ if (obd->u.mds.mds_fl_cfglog /* bz11778: && obd->u.mds.mds_fl_synced */)
/* Open for clients */
obd->obd_no_conn = 0;
}
#reformat to remove all logs
reformat
start_mds
-
- echo Client mount with a running ost
- start_ost
+ echo Client mount before any osts are in the logs
mount_client $MOUNT
- check_mount || return 41
- umount_client $MOUNT
+ check_mount && return 41
pass
echo Client mount with ost in logs, but none running
+ start_ost
stop_ost
mount_client $MOUNT
# check_mount will block trying to contact ost
umount_client $MOUNT
pass
+ echo Client mount with a running ost
+ start_ost
+ mount_client $MOUNT
+ check_mount || return 41
+ pass
+
cleanup
}
run_test 22 "start a client before osts (should return errs)"
$LCTL conf_param lustre-MDT0000.failover.node=$NID || return 10
echo "ok."
+ # With a new good MDT failover nid, we should be able to mount a client
+ # (but it cant talk to OST)
+ local OLDMOUNTOPT=$MOUNTOPT
+ MOUNTOPT="exclude=lustre-OST0000"
+ mount_client $MOUNT
+ MOUNTOPT=$OLDMOUNTOPT
+ set_and_check client "cat $LPROC/mdc/*/max_rpcs_in_flight" "lustre-MDT0000.mdc.max_rpcs_in_flight" || return 11
+
+ zconf_umount `hostname` $MOUNT -f
cleanup_nocli
load_modules