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

DoM/HSM: hsm_release fails after hsm_restore

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • Lustre 2.16.0
    • Lustre 2.12.0
    • 3
    • 9223372036854775807

    Description

       There is an issue when releasing a file striped with DoM after an hsm_restore.

      To reproduce:

      1) create a file with a 1st component on MDT:

      lfs setstripe -E 1M -L mdt -E -1 -S 4M -c -1 /mnt/lustre/domfile

      2) archive and release the file (requires HSM set up)
       

      lfs hsm_archive /mnt/lustre/domfile
      # (wait for archive to complete)
      lfs hsm_release

      3) restore the file

      lfs hsm_restore /mnt/lustre/domfile
      # or cat /mnt/lustre/domfile

      4) release the file => FAILS 

      lfs hsm_release /mnt/lustre/domfile
      
      Cannot send HSM request (use of /mnt/lustre/domfile): Device or resource busy

       
      It may be something wrong with the data version stored in hsm EA.

      Attachments

        Issue Links

          Activity

            [LU-12031] DoM/HSM: hsm_release fails after hsm_restore

            there is nothing left on my side as well

            tappro Mikhail Pershin added a comment - there is nothing left on my side as well

            I've abandoned https://review.whamcloud.com/#/c/fs/lustre-release/+/47497/. Agree to close if there is no known issues after landing 47139.

            scherementsev Sergey Cheremencev added a comment - I've abandoned https://review.whamcloud.com/#/c/fs/lustre-release/+/47497/ . Agree to close if there is no known issues after landing 47139.
            pjones Peter Jones added a comment -

            There is still an unhanded patch tracked under this ticket - https://review.whamcloud.com/#/c/fs/lustre-release/+/47497/ - but I'll defer to scherementsev as to whether that is needed...

            pjones Peter Jones added a comment - There is still an unhanded patch tracked under this ticket - https://review.whamcloud.com/#/c/fs/lustre-release/+/47497/ - but I'll defer to scherementsev as to whether that is needed...

            Peter, is there any remaining work for this issue or can it be closed?

            nangelinas Nikitas Angelinas added a comment - Peter, is there any remaining work for this issue or can it be closed?

            "Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/c/fs/lustre-release/+/47139/
            Subject: LU-12031 mdt: explicit data version of DoM files
            Project: fs/lustre-release
            Branch: master
            Current Patch Set:
            Commit: aae3289adb2bbc192870f195b78044484f717e16

            gerrit Gerrit Updater added a comment - "Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/c/fs/lustre-release/+/47139/ Subject: LU-12031 mdt: explicit data version of DoM files Project: fs/lustre-release Branch: master Current Patch Set: Commit: aae3289adb2bbc192870f195b78044484f717e16

            "Sergey Cheremencev <sergey.cheremencev@hpe.com>" uploaded a new patch: https://review.whamcloud.com/47497
            Subject: LU-12031 mdt: proof of concept
            Project: fs/lustre-release
            Branch: master
            Current Patch Set: 1
            Commit: b05ecdbcc682c1d2ef290110bd052bc3e0f2e61a

            gerrit Gerrit Updater added a comment - "Sergey Cheremencev <sergey.cheremencev@hpe.com>" uploaded a new patch: https://review.whamcloud.com/47497 Subject: LU-12031 mdt: proof of concept Project: fs/lustre-release Branch: master Current Patch Set: 1 Commit: b05ecdbcc682c1d2ef290110bd052bc3e0f2e61a

            Rather than storing yet another xattr on the DoM inode in this case (which might have issues with backup/restore, etc.), what about just not updating i_version on setxattr from HSM restore (or resetting it to the pre-update i_version)?

            adilger Andreas Dilger added a comment - Rather than storing yet another xattr on the DoM inode in this case (which might have issues with backup/restore, etc.), what about just not updating i_version on setxattr from HSM restore (or resetting it to the pre-update i_version)?

            "Mike Pershin <mpershin@whamcloud.com>" uploaded a new patch: https://review.whamcloud.com/47139
            Subject: LU-12031 mdt: explicit data version of DoM files
            Project: fs/lustre-release
            Branch: master
            Current Patch Set: 1
            Commit: 5dbeabb034654f258162f05722477645e5f2fffe

            gerrit Gerrit Updater added a comment - "Mike Pershin <mpershin@whamcloud.com>" uploaded a new patch: https://review.whamcloud.com/47139 Subject: LU-12031 mdt: explicit data version of DoM files Project: fs/lustre-release Branch: master Current Patch Set: 1 Commit: 5dbeabb034654f258162f05722477645e5f2fffe

            Ben - see LU-9961

            adilger Andreas Dilger added a comment - Ben - see LU-9961

            It would be nice if instead of all the playing around with temp files we could just restore to a stripe, and once completed mark it as primary.  We should also be able to restore all the other layout information as well and mark them as secondary.

            beevans Ben Evans (Inactive) added a comment - It would be nice if instead of all the playing around with temp files we could just restore to a stripe, and once completed mark it as primary.  We should also be able to restore all the other layout information as well and mark them as secondary.

            People

              tappro Mikhail Pershin
              cealustre CEA
              Votes:
              0 Vote for this issue
              Watchers:
              18 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: