export PATH=$PWD/$SRCDIR:$SRCDIR:$PWD/$SRCDIR/../utils:$PATH:/sbin
ONLY=${ONLY:-"$*"}
-ALWAYS_EXCEPT="$LRSYNC_EXCEPT 5a 5b"
-# bug number for skipped test: - 20878
+[ -n "$ONLY" ] && SLOW=yes
+ALWAYS_EXCEPT="$LRSYNC_EXCEPT"
+# bug number for skipped test:
# UPDATE THE COMMENT ABOVE WITH BUG NUMBERS WHEN CHANGING ALWAYS_EXCEPT!
[ "$ALWAYS_EXCEPT$EXCEPT" ] && \
# control the time of tests
DBENCH_TIME=${DBENCH_TIME:-60} # No of seconds to run dbench
-TGT=/tmp/target
-TGT2=/tmp/target2
+TGT=$TMP/target
+TGT2=$TMP/target2
MDT0=$($LCTL get_param -n mdc.*.mds_server_uuid | \
awk '{gsub(/_UUID/,""); print $1}' | head -1)
rm -rf $TGT2/$tdir $TGT2/d*.lustre_rsync-test 2> /dev/null
rm -rf ${DIR}/$tdir $DIR/d*.lustre_rsync-test ${DIR}/tgt 2> /dev/null
rm -f $LREPL_LOG
- mkdir -p $TGT
- mkdir -p $TGT2
+ mkdir -p ${DIR}/$tdir
+ mkdir -p ${TGT}/$tdir
+ mkdir -p ${TGT2}/$tdir
if [ $? -ne 0 ]; then
error "Failed to create target: " $TGT
fi
local xattr=`check_xattr $TGT/foo`
# Directory create
- mkdir -p ${DIR}/$tdir
mkdir $DIR/$tdir/d1
mkdir $DIR/$tdir/d2
init_changelog
local numfiles=1000
- mkdir -p ${DIR}/$tdir
createmany -o $DIR/$tdir/$tfile $numfiles || error "createmany failed!"
# Replicate the changes to $TGT
local time=60
local threads=5
- mkdir -p ${DIR}/$tdir
writemany -q -a $DIR/$tdir/$tfile $time $threads || error "writemany failed!"
# Replicate the changes to $TGT
init_changelog
local numfiles=1000
- mkdir -p ${DIR}/$tdir
createmany -o $DIR/$tdir/$tfile $numfiles || error "createmany failed!"
unlinkmany $DIR/$tdir/$tfile $numfiles || error "unlinkmany failed!"
init_src
init_changelog
- mkdir -p ${DIR}/$tdir
END_RUN_FILE=${DIR}/$tdir/run LOAD_PID_FILE=${DIR}/$tdir/pid \
MOUNT=${DIR}/$tdir run_iozone.sh &
sleep 30
init_changelog
NUMTEST=2000
- mkdir -p ${DIR}/$tdir
createmany -o $DIR/$tdir/$tfile $NUMTEST
# Replicate the changes to $TGT
init_changelog
NUMTEST=2000
- mkdir -p ${DIR}/$tdir
createmany -o $DIR/$tdir/$tfile $NUMTEST
# Replicate the changes to $TGT
init_changelog
local NUMLINKS=128
- mkdir -p ${DIR}/$tdir
touch $DIR/$tdir/link0
local i=1
while [ $i -lt $NUMLINKS ];
# Test 7 - lustre_rsync stripesize
test_7() {
init_src
+ mkdir -p ${DIR}/tgt/$tdir
init_changelog
local NUMFILES=100
- mkdir -p ${DIR}/$tdir
lfs setstripe -c 2 ${DIR}/$tdir
createmany -o $DIR/$tdir/$tfile $NUMFILES
# the changes to $DIR/tgt. We can't turn off the changelogs
# while we are registered, so lustre_rsync better not try to
# replicate the replication steps. It seems ok :)
- mkdir $DIR/tgt
$LRSYNC -s $DIR -t $DIR/tgt -m $MDT0 -u $CL_USER -l $LREPL_LOG
check_diff ${DIR}/$tdir $DIR/tgt/$tdir
init_src
init_changelog
- mkdir -p ${DIR}/$tdir
-
for i in 1 2 3 4 5 6 7 8 9; do
mkdir $DIR/$tdir/d$i
for j in 1 2 3 4 5 6 7 8 9; do