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

Broken layout after swapping layouts with unstriped files

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • Lustre 2.7.0
    • Lustre 2.4.1, Lustre 2.7.0, Lustre 2.5.3
    • 3
    • 16639

    Description

      The following operations sequence eventually fails with EBADF (let fstripe be a striped file, fnostripeX unstriped files):

      1) swap_layouts fstripe fnostripe1
      2) I/O into fstripe
      3) swap_layouts fstripe fnostripe2
      4) I/O into fstripe # Fails with EBADF

      Please find a reproducer attached. This seems to affect current master as well as older versions of that provide layout swap.

      The file remains unavailable, also after a client umount/remount or from another client.

      It seems that lov_conf_set() doesn't call lov_layout_change() in the second case, leading to lov_io_init_empty() being called eventually on the write...

      Attachments

        Activity

          [LU-5957] Broken layout after swapping layouts with unstriped files
          riauxjb Jean-Baptiste Riaux (Inactive) made changes -
          Labels Original: patch New: cea patch
          pjones Peter Jones made changes -
          Fix Version/s New: Lustre 2.7.0 [ 10631 ]
          Resolution New: Fixed [ 1 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]
          cliffw Cliff White (Inactive) made changes -
          Assignee Original: WC Triage [ wc-triage ] New: Bruno Faccini [ bfaccini ]
          pjones Peter Jones made changes -
          Labels New: patch
          hdoreau Henri Doreau (Inactive) created issue -

          People

            bfaccini Bruno Faccini (Inactive)
            hdoreau Henri Doreau (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: