Viewing quotas

Use the getfattr command and the ceph.quota extended attributes to view the quota settings for a directory.

About this task

Note: If the attributes appear on a directory inode, then that directory has a configured quota. If the attributes do not appear on the inode, then the directory does not have a quota set, although its parent directory might have a quota that is configured. If the value of the extended attribute is 0, the quota is not set.
For more information, see the getfattr(1) manual page.

Procedure

View CephFS quotes in one of the following ways.
  • Using a byte-limit quota.
    getfattr -n ceph.quota.max_bytes DIRECTORY
    For example:
    [root@client ~]# getfattr -n ceph.quota.max_bytes /mnt/cephfs/
    getfattr: Removing leading '/' from absolute path names
    # file: mnt/cephfs/
    ceph.quota.max_bytes="100000000"
    In this example, 100000000 equals 100 MB.
  • Using a file-limit quota.
    getfattr -n ceph.quota.max_files DIRECTORY
    For example:
    [root@client ~]# getfattr -n ceph.quota.max_files /mnt/cephfs/
    getfattr: Removing leading '/' from absolute path names
    # file: mnt/cephfs/
    ceph.quota.max_files="10000"
    In this example, 10000 equals 10,000 files.