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

lfs quota -p -a shows all quotas on filesystem even inside tenancy

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • Lustre 2.17.0
    • None
    • None
    • 3
    • 9223372036854775807

    Description

       

      [root@tenants]# lctl get_param -R nodemap.tenant1.*
      nodemap.tenant1.admin_nodemap=1
      nodemap.tenant1.audit_mode=1
      nodemap.tenant1.deny_unknown=1
      nodemap.tenant1.exports=
      [
       { nid: 192.168.3.221@tcp, uuid: db0d92d4-2260-45a8-b88c-90a083fadfb6 },
      ]
      nodemap.tenant1.fileset=/tenants/tenant1
      nodemap.tenant1.forbid_encryption=0
      nodemap.tenant1.id=4
      nodemap.tenant1.idmap=
      []
      nodemap.tenant1.map_mode=projid
      nodemap.tenant1.offset=
      {
       start_uid: 100000,
       limit_uid: 99999,
       start_gid: 100000,
       limit_gid: 99999,
       start_projid: 100000,
       limit_projid: 99999
      }
      nodemap.tenant1.ranges=
      [
       { id: 17, start_nid: 192.168.3.221@tcp, end_nid: 192.168.3.221@tcp }
      ]
      nodemap.tenant1.rbac=file_perms,server_upcall
      nodemap.tenant1.readonly_mount=0
      nodemap.tenant1.sepol=
      nodemap.tenant1.squash_gid=65534
      nodemap.tenant1.squash_projid=100000
      nodemap.tenant1.squash_uid=65534
      nodemap.tenant1.trusted_nodemap=0  

      It is possible to list all project quotas on the filesystem:

      root@s221 client]# lfs quota -p -a /lustre/labfs2/client
      Filesystem /lustre/labfs2/client, Disk prj quotas
        quota_id  kbytes   quota   limit   grace   files   quota   limit   grace
               0   22076       0       0       -    1155       0       0       -
          100000       8       0 97656250       -       4       0 1000000       -
          200000       8       0 48828125       -       4       0  500000       - 

      The quota for ProjID 200000 here is from another tenancy on the filesystem and should not be listed.

      Attachments

        Activity

          People

            scherementsev Sergey Cheremencev
            scherementsev Sergey Cheremencev
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: