Hi Deimar,
 
quotas are a bit specialm because you have to take the context into account. USR and GRP quotas may exist in either a filesystem or fileset context depending of the setting of perFilesetQuota. FILESET quotas exist only in a filesystem context.
 
Your first query below targets the fileset context (.../filesystems/fs1/filesets/sicredi/quotas). To see FILESET quotas you need to target the filesystem what you did in the second query (.../filesystems/fs1/quotas). This is exactly what you experience.
 
 
Mit freundlichen Grüßen / Kind regards

IBM Spectrum Scale
  •  
  •      
  • Dr. Alexander Wolf-Reber
    Spectrum Scale Release Lead Architect
    Department M069 / Spectrum Scale Software Development

    +49-7034-2745404
    [email protected]

IBM Deutschland Research & Development GmbH / Vorsitzende des Aufsichtsrats: Martina Koederitz / Geschäftsführung: Dirk Wittkopp
Sitz der Gesellschaft: Böblingen / Registergericht: Amtsgericht Stuttgart, HRB 243294

 
 
----- Original message -----
From: "Delmar Demarchi" <[email protected]>
Sent by: [email protected]
To: [email protected]
Cc:
Subject: [gpfsug-discuss] API - listing quotas
Date: Thu, Apr 19, 2018 3:37 PM
 
Hello Experts.

I'm trying to collect information from Fileset Quotas, using the API.

I'm using this link as reference: https://www.ibm.com/support/knowledgecenter/en/STXKQY_5.0.0/com.ibm.spectrum.scale.v5r00.doc/bl1adm_apiv2version2.htm

Do you know about any issue with Scale 5.0.x and API? Or what I have change in my command to collect this infos?

Following the instruction on knowledge Center, we tried to list, using GET, the FILESET Quota but only USR and GRP were reported. Listing all quotas (using GET also), I found my quota there.

See my sample:
curl -k -u admin:passw0rd -XGET -H content-type:application/json "https://xx.xx.xx.xx:443/scalemgmt/v2/filesystems/fs1/filesets/sicredi/quotas"
{
  "quotas" : [ {
    "blockGrace" : "none",
    "blockLimit" : 0,
    "blockQuota" : 0,
    "filesGrace" : "none",
    "filesLimit" : 0,
    "filesQuota" : 0,
    "filesetName" : "sicredi",
    "filesystemName" : "fs1",
    "isDefaultQuota" : true,
    "objectId" : 0,
    "quotaId" : 454,
    "quotaType" : "GRP"
  }, {
    "blockGrace" : "none",
    "blockLimit" : 0,
    "blockQuota" : 0,
    "filesGrace" : "none",
    "filesLimit" : 0,
    "filesQuota" : 0,
    "filesetName" : "sicredi",
    "filesystemName" : "fs1",
    "isDefaultQuota" : true,
    "objectId" : 0,
    "quotaId" : 501,
    "quotaType" : "USR"
  } ],
  "status" : {
    "code" : 200,
    "message" : "The request finished successfully."
  }
}[root@lbsgpfs05 ~]# curl -k -u admin:passw0rd -XGET -H content-type:application/json "https://xx.xx.xx.xx:443/scalemgmt/v2/filesystems/fs1/quotas"
{
  "quotas" : [ {
    "blockGrace" : "none",
    "blockInDoubt" : 0,
    "blockLimit" : 0,
    "blockQuota" : 0,
    "blockUsage" : 512,
    "filesGrace" : "none",
    "filesInDoubt" : 0,
    "filesLimit" : 0,
    "filesQuota" : 0,
    "filesUsage" : 1,
    "filesystemName" : "fs1",
    "isDefaultQuota" : false,
    "objectId" : 0,
    "objectName" : "root",
    "quotaId" : 366,
    "quotaType" : "FILESET"
  }, {
    "blockGrace" : "none",
    "blockInDoubt" : 0,
    "blockLimit" : 6598656,
    "blockQuota" : 6598656,
    "blockUsage" : 5670208,
    "filesGrace" : "none",
    "filesInDoubt" : 0,
    "filesLimit" : 0,
    "filesQuota" : 0,
    "filesUsage" : 5,
    "filesystemName" : "fs1",
    "isDefaultQuota" : false,
    "objectId" : 1,
    "objectName" : "sicredi",
    "quotaId" : 367,
    "quotaType" : "FILESET"
  }
  "status" : {
    "code" : 200,
    "message" : "The request finished successfully."
  }
}

mmlsquota -j sicredi fs1 --block-size auto
                         Block Limits                                    |     File Limits
Filesystem type         blocks      quota      limit   in_doubt    grace |    files   quota    limit in_doubt    grace  Remarks
fs1        FILESET      5.408G     6.293G     6.293G          0     none |        5       0        0        0     none

mmrepquota -a
*** Report for USR GRP FILESET quotas on fs1
                         Block Limits                                    |                     File Limits
Name       fileset    type             KB      quota      limit   in_doubt    grace |    files   quota    limit in_doubt    grace entryType
sicredi    root       FILESET     5670208    6598656    6598656          0     none |        5       0        0        0     none e


Regards, | Abrazos, | Atenciosamente,
Delmar Demarchi .'.
Power and Storage Services Specialist
 
2D barcode - encoded with contact information Phone:55-19-2132-9469 | Mobile:55-19-9 9792-1323
E-mail: [email protected]
IBM

www.ibm.com/systems/services/labservices
 
_______________________________________________
gpfsug-discuss mailing list
gpfsug-discuss at spectrumscale.org
http://gpfsug.org/mailman/listinfo/gpfsug-discuss
 

_______________________________________________
gpfsug-discuss mailing list
gpfsug-discuss at spectrumscale.org
http://gpfsug.org/mailman/listinfo/gpfsug-discuss

Reply via email to