[Gluster-devel] Object Quotas

Vijaikumar Mallikarjuna vmallika at redhat.com
Mon Nov 23 15:28:46 UTC 2015


Hi All,

We have implemented a new feature 'Object quotas' in glusterfs-3.7, this
feature is same like 'Usage quota' and accounts on the numbers of inodes.

The mechanism is to store count of objects (inodes: files/directories) as
part of an extended attribute of a directory (same extended attribute used
for usage quotas).

Each directory's extended attribute value will indicate the number of
objects present in a tree with the directory being considered as the root
of the tree.

Commands supported for 'Object Quotas'

# volume quota <VOLNAME> {limit-objects <path> <number> [<percent>]}

# volume quota <VOLNAME> list-objects [<path>]

# volume quota <VOLNAME> remove-objects <path>

'Object Quota' will be enabled as part of 'gluster volume quota <VOLNAME>
enable'. If the glusterfs is upgraded to 3.7 where is the quota is alreday
enabled in the previous version before upgrade,

execute below command to enable 'Object Quota':

gluster volume inode-quota <VOLNAME> enable

Please provide your feedback.

Thanks,

Vijay
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.gluster.org/pipermail/gluster-devel/attachments/20151123/d2e71aa5/attachment.html>


More information about the Gluster-devel mailing list