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

mdt migrate procedure to check that new striping already applied

Details

    • Improvement
    • Resolution: Fixed
    • Major
    • Lustre 2.17.0
    • None
    • None
    • 3
    • 9223372036854775807

    Description

      Repeating the mdt migrate procedure (in case of migration failure for example) doesn't check that new striping already applied. for example, if 999 of directories were migrated and only one dir migration wasn't completed due to an open file in that directory, repeating the same lfs migrate command will try to restripe all the 1000 dirs again:

      [root@rocky tests]# ../utils/lfs getdirstripe /mnt/lustre/testdir/dir0-8
      lmv_stripe_count: 1 lmv_stripe_offset: 1 lmv_hash_type: crush,fixed
      mdtidx		 FID[seq:oid:ver]
           1		 [0x240000400:0x282:0x0]		
      [root@rocky tests]# ../utils/lfs migrate -m 1 /mnt/lustre/testdir
      [root@rocky tests]# ../utils/lfs getdirstripe /mnt/lustre/testdir/dir0-8
      lmv_stripe_count: 1 lmv_stripe_offset: 1 lmv_hash_type: crush,fixed
      mdtidx		 FID[seq:oid:ver]
           1		 [0x240000400:0x2f1:0x0]		
      [root@rocky tests]# ../utils/lfs getdirstripe /mnt/lustre/testdir/dir0-8
      lmv_stripe_count: 1 lmv_stripe_offset: 1 lmv_hash_type: crush,fixed
      mdtidx		 FID[seq:oid:ver]
           1		 [0x240000400:0x2f1:0x0]		
      [root@rocky tests]# ../utils/lfs path2fid /mnt/lustre/testdir/dir0-8
      [0x240000404:0x605:0x0]
      [root@rocky tests]# ../utils/lfs migrate -m 1 /mnt/lustre/testdir
      [root@rocky tests]# ../utils/lfs getdirstripe /mnt/lustre/testdir/dir0-8
      lmv_stripe_count: 1 lmv_stripe_offset: 1 lmv_hash_type: crush,fixed
      mdtidx		 FID[seq:oid:ver]
           1		 [0x240000400:0x360:0x0]		
      [root@rocky tests]# ../utils/lfs path2fid /mnt/lustre/testdir/dir0-8
      [0x240000404:0x6d8:0x0]
      [root@rocky tests]# 
      

      as you see, FIDs for the /mnt/lustre/testdir/dir0-8 and its stripes change with each "lfs migrate".
      Not repeating migrate over already migrated dirs looks as a useful improvement for massive mdt migrate operations.

      Attachments

        Activity

          [LU-18869] mdt migrate procedure to check that new striping already applied
          pjones Peter Jones added a comment -

          Merged for 2.17

          pjones Peter Jones added a comment - Merged for 2.17

          "Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/c/fs/lustre-release/+/58585/
          Subject: LU-18869 dne: mdt migrate to check layout
          Project: fs/lustre-release
          Branch: master
          Current Patch Set:
          Commit: 4b922dec731c2440938e15c04d40f3ab8c3841be

          gerrit Gerrit Updater added a comment - "Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/c/fs/lustre-release/+/58585/ Subject: LU-18869 dne: mdt migrate to check layout Project: fs/lustre-release Branch: master Current Patch Set: Commit: 4b922dec731c2440938e15c04d40f3ab8c3841be

          "Alexander Zarochentsev <alexander.zarochentsev@hpe.com>" uploaded a new patch: https://review.whamcloud.com/c/fs/lustre-release/+/58585
          Subject: LU-18869 dne: mdt migrate to check layout
          Project: fs/lustre-release
          Branch: master
          Current Patch Set: 1
          Commit: 50629d4cdd56e06b3a54ddb77578dc391a53e057

          gerrit Gerrit Updater added a comment - "Alexander Zarochentsev <alexander.zarochentsev@hpe.com>" uploaded a new patch: https://review.whamcloud.com/c/fs/lustre-release/+/58585 Subject: LU-18869 dne: mdt migrate to check layout Project: fs/lustre-release Branch: master Current Patch Set: 1 Commit: 50629d4cdd56e06b3a54ddb77578dc391a53e057

          People

            zam Alexander Zarochentsev
            zam Alexander Zarochentsev
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: