done
echo
+ # sync all the data and make sure no pending data on the client,
+ # thus the SOM xattr would not be changed any more.
+ cancel_lru_locks osc
+
# backup files
echo backup files to $TMP/$tdir
local files=$(find $DIR/$tdir -type f -newer $TMP/modified_first)
setup_noconfig
mkdir $DIR/$tdir || error "mkdir $DIR/$tdir failed"
createmany -o $DIR/$tdir/$tfile-%d 100
- # make sure that OSTs do not cancel llog cookies before we unmount the MDS
-#define OBD_FAIL_OBD_LOG_CANCEL_NET 0x601
- do_facet $SINGLEMDS "$LCTL set_param fail_loc=0x601"
unlinkmany $DIR/$tdir/$tfile-%d 100
stop_mds || error "Unable to stop MDS"
[ $(lustre_version_code $SINGLEMDS) -lt $(version_code 2.10.59) ] &&
skip "Need server version at least 2.10.59" && return
+ do_facet $SINGLEMDS which mkfs.xfs || {
+ skip_env "No mkfs.xfs installed"
+ return
+ }
+
stopall
load_modules
- local tmpmnt=/mnt/$tdir
+ local tmpmnt=$TMP/$tdir
local mdtimg=$tfile-mdt0
do_facet $SINGLEMDS mkdir -p $tmpmnt
}
run_test 116 "big size MDT support"
+test_122() {
+ [ $MDSCOUNT -lt 2 ] && skip "needs >= 2 MDTs" && return
+ [[ $(lustre_version_code ost1) -ge $(version_code 2.11.53) ]] ||
+ { skip "Need OST version at least 2.11.53" && return 0; }
+
+
+ reformat
+ LOAD_MODULES_REMOTE=true load_modules
+#define OBD_FAIL_OFD_SET_OID 0x1e0
+ do_facet ost1 $LCTL set_param fail_loc=0x00001e0
+
+ setupall
+ $LFS mkdir -i1 -c1 $DIR/$tdir
+ $LFS setstripe -i0 -c1 $DIR/$tdir
+ do_facet ost1 $LCTL set_param fail_loc=0
+ createmany -o $DIR/$tdir/file_ 1000 ||
+ error "Fail to create a new sequence"
+
+ reformat
+}
+run_test 122 "Check OST sequence update"
+
if ! combined_mgs_mds ; then
stop mgs
fi