- # To simulate replication to another lustre filesystem, replicate
- # 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 :)
-
- $LRSYNC -s $DIR -t $DIR/tgt -m $MDT0 -u $CL_USER -l $LREPL_LOG
- check_diff ${DIR}/$tdir $DIR/tgt/$tdir 7
-
- local i=0
- while [ $i -lt $NUMFILES ];
- do
- local count=$(lfs getstripe $DIR/tgt/$tdir/${tfile}$i | awk '/stripe_count/ {print $2}')
- if [ $count -ne $OSTCOUNT ]; then
- error "Stripe size not replicated"
- fi
- i=$(expr $i + 1)
- done
- fini_changelog
- cleanup_src_tgt
- return 0
+ # To simulate replication to another lustre filesystem, replicate
+ # 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 :)
+
+ local LRSYNC_LOG=$(generate_logname "lrsync_log")
+ $LRSYNC -s $DIR -t $DIR/tgt -m $MDT0 -u $CL_USER -l $LREPL_LOG \
+ -D $LRSYNC_LOG
+ check_diff ${DIR}/$tdir $DIR/tgt/$tdir
+
+ local i=0
+ while [ $i -lt $NUMFILES ];
+ do
+ local count=$(lfs getstripe $DIR/tgt/$tdir/${tfile}$i | \
+ awk '/stripe_count/ {print $2}')
+ if [ $count -ne $OSTCOUNT ]; then
+ error "Stripe size not replicated"
+ fi
+ i=$(expr $i + 1)
+ done
+ fini_changelog
+ cleanup_src_tgt
+ return 0