Uploaded image for project: 'Lustre'
  1. Lustre
  2. LU-1811

In replay-barrier, it should sync all of operations before setting rdonly of the dev.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Minor
    • None
    • None
    • None
    • 3
    • 9762

    Description

      In replay-barrier

      replay_barrier() {
      local facet=$1
      do_facet $facet "sync; sync; sync"
      df $MOUNT

      1. make sure there will be no seq change
        local clients=${CLIENTS:-$HOSTNAME}
        do_nodes $clients "f=${MOUNT}/fsa-\\\$(hostname); mcreate \\\$f; rm \\\$f"

      local svc=${facet}_svc
      do_facet $facet $LCTL --device %${!svc} notransno
      do_facet $facet $LCTL --device %${!svc} readonly
      do_facet $facet $LCTL mark "$facet REPLAY BARRIER on ${!svc}"
      $LCTL mark "local REPLAY BARRIER on ${!svc}"
      }
      "sync sync sync" should be moved after the mcreate, so all of the ops should be committed before the barrier, otherwise mcreate might be replayed as well, which sometimes confuse the test results.

      Attachments

        Activity

          People

            di.wang Di Wang
            di.wang Di Wang
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: