diff options
author | Sachin Pandit <spandit@redhat.com> | 2014-03-17 07:22:03 +0530 |
---|---|---|
committer | Rajesh Joseph <rjoseph@redhat.com> | 2014-03-25 06:37:12 -0700 |
commit | c36c95a79c2f73f35727c6f8cba0586714663fd9 (patch) | |
tree | 3e81ca9cae265acd9c68ccb1f74a1d44c0bd7c90 /rpc | |
parent | c553246c30290efcead1f32e4464ce86070ac9f2 (diff) |
snapshot/config : snapshot config changes.
Syntax :
gluster snapshot config [volname] [snap-max-hard-limit <value>]
[snap-max-soft-limit <value>]
1)If volume name is not specified, then the value is set system wide.
2)If volume name is specified, then the value is set to that particular volume.
*NOTE : snap-max-soft-limit cannot be specified to individual volumes.
case 1) When system limit is greater than volume limit.
Sample output :
Snapshot System Configuration:
snap-max-hard-limit : 200
snap-max-soft-limit : 50%
Snapshot Volume Configuration:
Volume : vol2
snap-max-hard-limit : 100
Effective snap-max-hard-limit : 100
Effective snap-max-soft-limit : 50 (50%)
Volume : vol1
snap-max-hard-limit : 150
Effective snap-max-hard-limit : 150
Effective snap-max-soft-limit : 75 (50%)
case 2) When system limit is lesser than volume limit.
Sample output :
Snapshot System Configuration:
snap-max-hard-limit : 50
snap-max-soft-limit : 50%
Snapshot Volume Configuration:
Volume : vol2
snap-max-hard-limit : 100
Effective snap-max-hard-limit : 50
Effective snap-max-soft-limit : 25 (50%)
Volume : vol1
snap-max-hard-limit : 150
Effective snap-max-hard-limit : 50
Effective snap-max-soft-limit : 25 (50%)
Change-Id: I97b5daefec7205bb9ab7b5b51d38f504cc5ee940
BUG: 1075034
Signed-off-by: Sachin Pandit <spandit@redhat.com>
Reviewed-on: http://review.gluster.org/7303
Reviewed-by: Rajesh Joseph <rjoseph@redhat.com>
Tested-by: Rajesh Joseph <rjoseph@redhat.com>
Diffstat (limited to 'rpc')
-rw-r--r-- | rpc/xdr/src/cli1-xdr.h | 6 | ||||
-rw-r--r-- | rpc/xdr/src/cli1-xdr.x | 5 |
2 files changed, 5 insertions, 6 deletions
diff --git a/rpc/xdr/src/cli1-xdr.h b/rpc/xdr/src/cli1-xdr.h index b4b717e4c..5e8c29fbb 100644 --- a/rpc/xdr/src/cli1-xdr.h +++ b/rpc/xdr/src/cli1-xdr.h @@ -191,9 +191,9 @@ enum gf1_cli_snapshot_info { typedef enum gf1_cli_snapshot_info gf1_cli_snapshot_info; enum gf1_cli_snapshot_config { - GF_SNAP_CONFIG_TYPE_NONE = 0, - GF_SNAP_CONFIG_TYPE_SET = 0 + 1, - GF_SNAP_CONFIG_DISPLAY = 0 + 2, + GF_SNAP_CONFIG_TYPE_NONE = 0, + GF_SNAP_CONFIG_TYPE_SET = 1, + GF_SNAP_CONFIG_DISPLAY = 2, }; typedef enum gf1_cli_snapshot_config gf1_cli_snapshot_config; diff --git a/rpc/xdr/src/cli1-xdr.x b/rpc/xdr/src/cli1-xdr.x index 8167abbf9..f9d29b7e1 100644 --- a/rpc/xdr/src/cli1-xdr.x +++ b/rpc/xdr/src/cli1-xdr.x @@ -137,10 +137,9 @@ enum gf1_cli_snapshot { enum gf1_cli_snapshot_config { GF_SNAP_CONFIG_TYPE_NONE = 0, - GF_SNAP_CONFIG_SYS_MAX, - GF_SNAP_CONFIG_VOL_MAX, + GF_SNAP_CONFIG_TYPE_SET, GF_SNAP_CONFIG_DISPLAY, - GF_SNAP_CONFIG_CG_MAX + }; struct gf_cli_req { |