Details

    • New Feature
    • Resolution: Fixed
    • Minor
    • Lustre 2.10.0
    • None
    • 10783

    Description

      OST (or MDT) pool feature enables users to group OSTs together to make object placement more flexible which is a very useful mechanism for system management. However the pool support of quota is not completed now which limits the use of it. Luckily current quota framework is really powerful and flexible which makes it possible to add new extension.

      We believe that pool support of quota will be helpful for a lot of use cases, so we are trying to complete it. With the help from the community, we've made some progress. The full patch will be a big one which involves quite a lot of components of Lustre. Any advice or feedback about the implementation will be really helpful.

      Attachments

        Issue Links

          Activity

            [LU-4017] Add project quota support feature

            Hi Fanyong,

            I think backup/restore using tar will simply discards project ID. Project ID has an IOCTL with the name of EXT4_IOC_FSGETXATTR(FS_IOC_FSGETXATTR). And in order to support project ID backup, an ioctl of that type needs to be called. And as far as we've tested, that is not supported by tar. We need to push a patch to add that support.

             

            BTW, I think there are better ways to backup MDT files than tar.

            lixi Li Xi (Inactive) added a comment - Hi Fanyong, I think backup/restore using tar will simply discards project ID. Project ID has an IOCTL with the name of EXT4_IOC_FSGETXATTR(FS_IOC_FSGETXATTR). And in order to support project ID backup, an ioctl of that type needs to be called. And as far as we've tested, that is not supported by tar. We need to push a patch to add that support.   BTW, I think there are better ways to backup MDT files than tar.

            How to handle the project ID attribute via MDT file-level backup/restore? Originally, we can do that via tar/getfattr for backup, then untar/setfattr for restore, but it seems the project ID cannot be handled like that, right? Or I missed anything?

            yong.fan nasf (Inactive) added a comment - How to handle the project ID attribute via MDT file-level backup/restore? Originally, we can do that via tar/getfattr for backup, then untar/setfattr for restore, but it seems the project ID cannot be handled like that, right? Or I missed anything?
            pjones Peter Jones added a comment -

            Landed for 2.10

            pjones Peter Jones added a comment - Landed for 2.10

            Oleg Drokin (oleg.drokin@intel.com) merged in patch https://review.whamcloud.com/26577/
            Subject: LU-4017 quota: cleanup to improve quota codes
            Project: fs/lustre-release
            Branch: master
            Current Patch Set:
            Commit: 4ce3219eb8e6a07c5c37e4b425b29195488005c3

            gerrit Gerrit Updater added a comment - Oleg Drokin (oleg.drokin@intel.com) merged in patch https://review.whamcloud.com/26577/ Subject: LU-4017 quota: cleanup to improve quota codes Project: fs/lustre-release Branch: master Current Patch Set: Commit: 4ce3219eb8e6a07c5c37e4b425b29195488005c3

            Oleg Drokin (oleg.drokin@intel.com) merged in patch https://review.whamcloud.com/26411/
            Subject: LU-4017 quota: extend to test project quota
            Project: fs/lustre-release
            Branch: master
            Current Patch Set:
            Commit: 0eff45318562be759517bc7702365dfd450e518d

            gerrit Gerrit Updater added a comment - Oleg Drokin (oleg.drokin@intel.com) merged in patch https://review.whamcloud.com/26411/ Subject: LU-4017 quota: extend to test project quota Project: fs/lustre-release Branch: master Current Patch Set: Commit: 0eff45318562be759517bc7702365dfd450e518d

            Oleg Drokin (oleg.drokin@intel.com) merged in patch https://review.whamcloud.com/26464/
            Subject: LU-4017 quota: add project id support to lfs find
            Project: fs/lustre-release
            Branch: master
            Current Patch Set:
            Commit: 3dad616e09fc2a89174900a4d4dbb60308650418

            gerrit Gerrit Updater added a comment - Oleg Drokin (oleg.drokin@intel.com) merged in patch https://review.whamcloud.com/26464/ Subject: LU-4017 quota: add project id support to lfs find Project: fs/lustre-release Branch: master Current Patch Set: Commit: 3dad616e09fc2a89174900a4d4dbb60308650418

            Oleg Drokin (oleg.drokin@intel.com) merged in patch https://review.whamcloud.com/26463/
            Subject: LU-4017 quota: add project inherit attributes
            Project: fs/lustre-release
            Branch: master
            Current Patch Set:
            Commit: 2e92c57d71384d50f06baf5b6591d2809c8288b2

            gerrit Gerrit Updater added a comment - Oleg Drokin (oleg.drokin@intel.com) merged in patch https://review.whamcloud.com/26463/ Subject: LU-4017 quota: add project inherit attributes Project: fs/lustre-release Branch: master Current Patch Set: Commit: 2e92c57d71384d50f06baf5b6591d2809c8288b2

            Andreas Dilger (andreas.dilger@intel.com) merged in patch https://review.whamcloud.com/26581/
            Subject: LU-4017 tune2fs: fix BUGs of tuning project quota
            Project: tools/e2fsprogs
            Branch: master-lustre
            Current Patch Set:
            Commit: a21925594cd18569f6618c02ea7b28c4afab477b

            gerrit Gerrit Updater added a comment - Andreas Dilger (andreas.dilger@intel.com) merged in patch https://review.whamcloud.com/26581/ Subject: LU-4017 tune2fs: fix BUGs of tuning project quota Project: tools/e2fsprogs Branch: master-lustre Current Patch Set: Commit: a21925594cd18569f6618c02ea7b28c4afab477b

            Wang Shilong (wshilong@ddn.com) uploaded a new patch: https://review.whamcloud.com/26621
            Subject: LU-4017 tune2fs: fix BUGs of tuning project quota
            Project: tools/e2fsprogs
            Branch: master-lustre
            Current Patch Set: 1
            Commit: e51dd021fa64a916e03df8dadf7def598e1f2529

            gerrit Gerrit Updater added a comment - Wang Shilong (wshilong@ddn.com) uploaded a new patch: https://review.whamcloud.com/26621 Subject: LU-4017 tune2fs: fix BUGs of tuning project quota Project: tools/e2fsprogs Branch: master-lustre Current Patch Set: 1 Commit: e51dd021fa64a916e03df8dadf7def598e1f2529

            Since RHEL tends to use 5 year old stacks we are looking at 2021 when we don't need patched kernels

            simmonsja James A Simmons added a comment - Since RHEL tends to use 5 year old stacks we are looking at 2021 when we don't need patched kernels

            Yes. That is true at this point. We are scoping out what is required to extend this work further.

            Exactly. SInce all ldiskfs (ext4) and kernel patches were merged in upstream linux kernel (linux-4.5), once lustre server supprots 4.5 kernel or above, we don't need patched server for project quota anymore. Meantime, ldisfks patches are still backportable for other kernel e.g. SLES12SP2 in the future work.
            Also, once zfs supports project id, project quota will be extanable to supoprt osd-zfs.

            ihara Shuichi Ihara (Inactive) added a comment - Yes. That is true at this point. We are scoping out what is required to extend this work further. Exactly. SInce all ldiskfs (ext4) and kernel patches were merged in upstream linux kernel (linux-4.5), once lustre server supprots 4.5 kernel or above, we don't need patched server for project quota anymore. Meantime, ldisfks patches are still backportable for other kernel e.g. SLES12SP2 in the future work. Also, once zfs supports project id, project quota will be extanable to supoprt osd-zfs.

            People

              niu Niu Yawei (Inactive)
              lixi Li Xi (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              25 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: