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

open-for-read should not conflict with mirror creation

Details

    • Improvement
    • Resolution: Fixed
    • Minor
    • Lustre 2.15.0
    • None
    • 9223372036854775807

    Description

      it should be possible to create mirror(s) while a file is opened for read.

      Attachments

        Issue Links

          Activity

            [LU-13668] open-for-read should not conflict with mirror creation

            "Etienne AUJAMES <eaujames@ddn.com>" uploaded a new patch: https://review.whamcloud.com/46113
            Subject: LU-13668 mdt: change lock mode for lease
            Project: fs/lustre-release
            Branch: b2_12
            Current Patch Set: 1
            Commit: 02e845c3f9dfdcc08cd3c3ff3a8c6ee750b1eb68

            gerrit Gerrit Updater added a comment - "Etienne AUJAMES <eaujames@ddn.com>" uploaded a new patch: https://review.whamcloud.com/46113 Subject: LU-13668 mdt: change lock mode for lease Project: fs/lustre-release Branch: b2_12 Current Patch Set: 1 Commit: 02e845c3f9dfdcc08cd3c3ff3a8c6ee750b1eb68
            pjones Peter Jones added a comment -

            Landed for 2.15

            pjones Peter Jones added a comment - Landed for 2.15

            "Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/38964/
            Subject: LU-13668 mdt: change lock mode for lease
            Project: fs/lustre-release
            Branch: master
            Current Patch Set:
            Commit: 2869f429ddc92ea6660fe210b098f6ff83c167f1

            gerrit Gerrit Updater added a comment - "Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/38964/ Subject: LU-13668 mdt: change lock mode for lease Project: fs/lustre-release Branch: master Current Patch Set: Commit: 2869f429ddc92ea6660fe210b098f6ff83c167f1
            yujian Jian Yu added a comment - - edited

            I hit the same issue while reading or writing to a file that is being replicated:

            # lfs mirror extend -N --pool=slow_pool -c 3 /mnt/lustre/dir/file &
            [1] 55601
            # tail /mnt/lustre/dir/file
            <~snip~>
            error: lfs mirror extend: /mnt/lustre/dir/file: data copy failed: Device or resource busy
            
            # lfs mirror extend -N --pool=slow_pool -c 3 /mnt/lustre/dir/file &
            [1] 55603
            # echo foo >> /mnt/lustre/dir/file
            error: lfs mirror extend: /mnt/lustre/dir/file: data copy failed: Device or resource busy
            
            yujian Jian Yu added a comment - - edited I hit the same issue while reading or writing to a file that is being replicated: # lfs mirror extend -N --pool=slow_pool -c 3 /mnt/lustre/dir/file & [1] 55601 # tail /mnt/lustre/dir/file <~snip~> error: lfs mirror extend: /mnt/lustre/dir/file: data copy failed: Device or resource busy # lfs mirror extend -N --pool=slow_pool -c 3 /mnt/lustre/dir/file & [1] 55603 # echo foo >> /mnt/lustre/dir/file error: lfs mirror extend: /mnt/lustre/dir/file: data copy failed: Device or resource busy

            Alex Zhuravlev (bzzz@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/38964
            Subject: LU-13668 mdt: change lock mode for lease
            Project: fs/lustre-release
            Branch: master
            Current Patch Set: 1
            Commit: 64412dd3964f2bece51aff3046b2c4af725d2392

            gerrit Gerrit Updater added a comment - Alex Zhuravlev (bzzz@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/38964 Subject: LU-13668 mdt: change lock mode for lease Project: fs/lustre-release Branch: master Current Patch Set: 1 Commit: 64412dd3964f2bece51aff3046b2c4af725d2392
            bzzz Alex Zhuravlev added a comment - - edited

            as reported by jhammond even lfs getstripe can interrupt replication:

             # lfs mirror extend -N /mnt/lustre/f0 &
            # lfs getstripe /mnt/lustre/f0
            ... 
            error: lfs mirror extend: /mnt/lustre/f0: data copy failed: Device or resource busy
            
            bzzz Alex Zhuravlev added a comment - - edited as reported by jhammond even lfs getstripe can interrupt replication: # lfs mirror extend -N /mnt/lustre/f0 & # lfs getstripe /mnt/lustre/f0 ... error: lfs mirror extend: /mnt/lustre/f0: data copy failed: Device or resource busy

            People

              bzzz Alex Zhuravlev
              bzzz Alex Zhuravlev
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: