d1681e
From 16aae2303e2cd70405a3ab5a41c719256dd2db7a Mon Sep 17 00:00:00 2001
d1681e
From: Sanoj Unnikrishnan <sunnikri@redhat.com>
d1681e
Date: Tue, 24 Oct 2017 16:10:23 +0530
d1681e
Subject: [PATCH 090/128] Quota: Adding man page for quota
d1681e
d1681e
> Change-Id: I95365c443705f56561cc10138318eb96db3b941e
d1681e
> BUG: 1505660
d1681e
> https://review.gluster.org/#/c/18561/
d1681e
d1681e
Change-Id: I95365c443705f56561cc10138318eb96db3b941e
d1681e
BUG: 1501345
d1681e
Signed-off-by: Sanoj Unnikrishnan <sunnikri@redhat.com>
d1681e
Reviewed-on: https://code.engineering.redhat.com/gerrit/124658
d1681e
Tested-by: RHGS Build Bot <nigelb@redhat.com>
d1681e
Reviewed-by: Sunil Kumar Heggodu Gopala Acharya <sheggodu@redhat.com>
d1681e
---
d1681e
 doc/gluster.8 | 42 ++++++++++++++++++++++++++++++++++++++++++
d1681e
 1 file changed, 42 insertions(+)
d1681e
d1681e
diff --git a/doc/gluster.8 b/doc/gluster.8
d1681e
index 316a3d2..4c20307 100644
d1681e
--- a/doc/gluster.8
d1681e
+++ b/doc/gluster.8
d1681e
@@ -123,6 +123,48 @@ Check status of data movement from the hot to cold tier.
d1681e
 .TP
d1681e
 \fB\ volume tier <VOLNAME> detach stop\fR
d1681e
 Stop detaching the hot tier from the volume.
d1681e
+
d1681e
+.SS "Quota Commands"
d1681e
+.TP
d1681e
+\fB\ volume quota <VOLNAME> enable \fR
d1681e
+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.
d1681e
+.TP
d1681e
+\fB\ volume quota <VOLNAME> disable \fR
d1681e
+Disable quota on the volume. This will disable enforcement and accounting in the filesystem. Any configured limits will be lost.
d1681e
+.TP
d1681e
+\fB\ volume quota <VOLNAME> limit-usage <PATH> <SIZE> [<PERCENT>] \fR
d1681e
+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.
d1681e
+.TP
d1681e
+\fB\ volume quota <VOLNAME> limit-objects <PATH> <SIZE> [<PERCENT>] \fR
d1681e
+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.
d1681e
+.TP
d1681e
+NOTE: valid units of SIZE are : B, KB, MB, GB, TB, PB. If no unit is specified, the unit defaults to bytes.
d1681e
+.TP
d1681e
+\fB\ volume quota <VOLNAME> remove <PATH> \fR
d1681e
+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.
d1681e
+.TP
d1681e
+\fB\ volume quota <VOLNAME> remove-objects <PATH> \fR
d1681e
+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.
d1681e
+.TP
d1681e
+\fB\ volume quota <VOLNAME> list <PATH> \fR
d1681e
+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.
d1681e
+.TP
d1681e
+\fB\ volume quota <VOLNAME> list-objects <PATH> \fR
d1681e
+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.
d1681e
+.TP
d1681e
+\fB\ volume quota <VOLNAME> default-soft-limit <PERCENT> \fR
d1681e
+Set the percentage value for default soft limit for the volume.
d1681e
+.TP
d1681e
+\fB\ volume quota <VOLNAME> soft-timeout <TIME> \fR
d1681e
+Set the soft timeout for the volume. The interval in which limits are retested before the soft limit is breached.
d1681e
+.TP
d1681e
+\fB\ volume quota <VOLNAME> hard-timeout <TIME> \fR
d1681e
+Set the hard timeout for the volume. The interval in which limits are retested after the soft limit is breached.
d1681e
+.TP
d1681e
+\fB\ volume quota <VOLNAME> alert-time <TIME> \fR
d1681e
+Set the frequency in which warning messages need to be logged (in the brick logs) once soft limit is breached.
d1681e
+.TP
d1681e
+NOTE: valid units of time and their symbols are : hours(h/hr), minutes(m/min), seconds(s/sec), weeks(w/wk), Days(d/days).
d1681e
 .SS "Geo-replication Commands"
d1681e
 .TP
d1681e
 \fI\ Note\fR: password-less ssh, from the master node (where these commands are executed) to the slave node <SLAVE_HOST>, is a prerequisite for the geo-replication commands.
d1681e
-- 
d1681e
1.8.3.1
d1681e