From 2d258d818a05ef1b7456ee6cec263605af24deba Mon Sep 17 00:00:00 2001 From: Sanoj Unnikrishnan Date: Tue, 24 Oct 2017 16:10:23 +0530 Subject: Quota: Adding man page for quota Change-Id: I95365c443705f56561cc10138318eb96db3b941e BUG: 1505660 Signed-off-by: Sanoj Unnikrishnan --- doc/gluster.8 | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/doc/gluster.8 b/doc/gluster.8 index d94a0dbeb92..a4ff7d9083d 100644 --- a/doc/gluster.8 +++ b/doc/gluster.8 @@ -126,6 +126,48 @@ Check status of data movement from the hot to cold tier. .TP \fB\ volume tier detach stop\fR Stop detaching the hot tier from the volume. + +.SS "Quota Commands" +.TP +\fB\ volume quota enable \fR +Enable quota on the specified volume. This will cause all the directories in the filesystem hierarchy to be accounted and updated thereafter on each operation in the the filesystem. To kick start this accounting, a crawl is done over the hierarchy with an auxiliary client. +.TP +\fB\ volume quota disable \fR +Disable quota on the volume. This will disable enforcement and accounting in the filesystem. Any configured limits will be lost. +.TP +\fB\ volume quota limit-usage [] \fR +Set a usage limit on the given path. Any previously set limit is overridden to the new value. The soft limit can optionally be specified (as a percentage of hard limit). If soft limit percentage is not provided the default soft limit value for the volume is used to decide the soft limit. +.TP +\fB\ volume quota limit-objects [] \fR +Set an inode limit on the given path. Any previously set limit is overridden to the new value. The soft limit can optionally be specified (as a percentage of hard limit). If soft limit percentage is not provided the default soft limit value for the volume is used to decide the soft limit. +.TP +NOTE: valid units of SIZE are : B, KB, MB, GB, TB, PB. If no unit is specified, the unit defaults to bytes. +.TP +\fB\ volume quota remove \fR +Remove any usage limit configured on the specified directory. Note that if any limit is configured on the ancestors of this directory (previous directories along the path), they will still be honored and enforced. +.TP +\fB\ volume quota remove-objects \fR +Remove any inode limit configured on the specified directory. Note that if any limit is configured on the ancestors of this directory (previous directories along the path), they will still be honored and enforced. +.TP +\fB\ volume quota list \fR +Lists the usage and limits configured on directory(s). If a path is given only the limit that has been configured on the directory(if any) is displayed along with the directory's usage. If no path is given, usage and limits are displayed for all directories that has limits configured. +.TP +\fB\ volume quota list-objects \fR +Lists the inode usage and inode limits configured on directory(s). If a path is given only the limit that has been configured on the directory(if any) is displayed along with the directory's inode usage. If no path is given, usage and limits are displayed for all directories that has limits configured. +.TP +\fB\ volume quota default-soft-limit \fR +Set the percentage value for default soft limit for the volume. +.TP +\fB\ volume quota soft-timeout