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

File creation with 'lfs setstripe' is not replayable

Details

    • Bug
    • Resolution: Fixed
    • Blocker
    • Lustre 2.11.0
    • Lustre 2.11.0
    • None
    • 3
    • 9223372036854775807

    Description

      File created with 'lfs setstripe' cannot recover from failover. Simple test like the one below fails:

      test_00() {
      replay_barrier $SINGLEMDS
      $LFS setstripe -c 2 $DIR/$tfile
      fail $SINGLEMDS
      $CHECKSTAT -t file $DIR/$tfile ||
      		error "$CHECKSTAT $DIR/$tfile check failed"
      }
      
      

      At first sign the file is not re-created due to problem with LOV EA supplied along with replay, it says LOV MAGIC is 0.

      Attachments

        Issue Links

          Activity

            [LU-10155] File creation with 'lfs setstripe' is not replayable
            pjones Peter Jones added a comment -

            Mark as resolved for now I suppose - we will reopen if the test starts failing now it is landed

            pjones Peter Jones added a comment - Mark as resolved for now I suppose - we will reopen if the test starts failing now it is landed

            Oleg Drokin (oleg.drokin@intel.com) merged in patch https://review.whamcloud.com/30704/
            Subject: LU-10155 recovery: support setstripe replay
            Project: fs/lustre-release
            Branch: master
            Current Patch Set:
            Commit: 3a0a50f44f68066642a23365fa4a6f1924dd1108

            gerrit Gerrit Updater added a comment - Oleg Drokin (oleg.drokin@intel.com) merged in patch https://review.whamcloud.com/30704/ Subject: LU-10155 recovery: support setstripe replay Project: fs/lustre-release Branch: master Current Patch Set: Commit: 3a0a50f44f68066642a23365fa4a6f1924dd1108

            Lai Siyao (lai.siyao@intel.com) uploaded a new patch: https://review.whamcloud.com/30704
            Subject: LU-10155 test: add setstripe replay test
            Project: fs/lustre-release
            Branch: master
            Current Patch Set: 1
            Commit: 8341c5f2499aa22bd230c9c082cc7dc82b821bf7

            gerrit Gerrit Updater added a comment - Lai Siyao (lai.siyao@intel.com) uploaded a new patch: https://review.whamcloud.com/30704 Subject: LU-10155 test: add setstripe replay test Project: fs/lustre-release Branch: master Current Patch Set: 1 Commit: 8341c5f2499aa22bd230c9c082cc7dc82b821bf7
            laisiyao Lai Siyao added a comment -

            I can't reproduce in latest master, maybe this was fixed in other tickets, but anyway I'll add this test into replay-single.sh.

            laisiyao Lai Siyao added a comment - I can't reproduce in latest master, maybe this was fixed in other tickets, but anyway I'll add this test into replay-single.sh.

            I have tried to revert that patch but it doesn't help

            tappro Mikhail Pershin added a comment - I have tried to revert that patch but it doesn't help

            A recent change to this area of code is LU-9514, which tried to optimize memory usage by freeing the open reply buffer earlier.

            jay Jinshan Xiong (Inactive) added a comment - A recent change to this area of code is LU-9514 , which tried to optimize memory usage by freeing the open reply buffer earlier.

            Hi Lai,

            Can you please investigate?

            Thanks.
            Joe

            jgmitter Joseph Gmitter (Inactive) added a comment - Hi Lai, Can you please investigate? Thanks. Joe

            Mike, do you know when this problem was introduced? How is it possible that this wasn't detected by our testing?

            adilger Andreas Dilger added a comment - Mike, do you know when this problem was introduced? How is it possible that this wasn't detected by our testing?

            People

              laisiyao Lai Siyao
              tappro Mikhail Pershin
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: