umount $MOUNT2 || true
umount $MOUNT || true
rmmod llite
+
+ # b=3941
+ # In mds recovery, the mds will clear orphans in ost by
+ # mds_lov_clear_orphan, which will sent the request to ost and waiting for
+ # the reply, if we stop mds at this time, we will got the obd_refcount > 1
+ # errors, because mds_lov_clear_orphan grab a export of mds,
+ # so the obd_refcount of mds will not be zero. So, wait a while before
+ # stop mds. This bug needs further work.
for mds in `mds_list`; do
+ sleep 5
stop $mds ${FORCE} $MDSLCONFARGS
done
stop_lgssd
facet_failover mds1
# expect failover to fail
df $MOUNT && return 1
+ sleep 1
# first 25 files shouuld have been
# replayed
facet_failover mds1
df $MOUNT || return 1
+ sleep 1
unlinkmany $MOUNT1/$tfile- 25 || return 2
sleep $TIMEOUT
facet_failover mds1
df $MOUNT || return 1
+ sleep 1
unlinkmany $MOUNT1/$tfile- 25 || return 2
sleep $TIMEOUT
facet_failover ost
df $MOUNT || return 1
+ sleep 1
unlinkmany $MOUNT1/$tfile- 25 || return 2
}
run_test 18 "replay open, Abort recovery, don't assert (3892)"
-
# cleanup with blocked enqueue fails until timer elapses (MDS busy), wait for
# itexport NOW=0