Bug 1573077 - [RFE] storage.reserve option should take size of disk as input instead of percentage
Summary: [RFE] storage.reserve option should take size of disk as input instead of per...
Alias: None
Product: Red Hat Gluster Storage
Classification: Red Hat
Component: posix
Version: rhgs-3.4
Hardware: Unspecified
OS: Unspecified
Target Milestone: ---
: RHGS 3.5.0
Assignee: Sheetal Pamecha
QA Contact: Vinayak Papnoi
Depends On: 1651445
Blocks: 1696803
TreeView+ depends on / blocked
Reported: 2018-04-30 07:09 UTC by Prasad Desala
Modified: 2019-10-30 12:20 UTC (History)
8 users (show)

Fixed In Version: glusterfs-6.0-7
Doc Type: Enhancement
Doc Text:
The storage.reserve option can now reserve available space in size in addition to reserving in percentage.
Clone Of:
: 1651445 (view as bug list)
Last Closed: 2019-10-30 12:19:38 UTC
Target Upstream Version:

Attachments (Terms of Use)

System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2019:3249 0 None None None 2019-10-30 12:20:03 UTC

Description Prasad Desala 2018-04-30 07:09:15 UTC
Description of problem:
In the current design, storage.reserve option takes a numeric percentage value as input to save the predetermined percentage of disk space.

Input in Percentage:
Let's say we have 100TB of backend bricks and enabled storage.reserve option. By default the minimum value is 1% and would be reserving this space on the disk. 

1% of 100TB would be 1TB. So, if this option is enabled we would endup not using  1TB space on the bricks which can be worrying. The more the brick size, the more the unutilized space here.

Input in size:
If we take size as an input and if the admin wants to reserve 200GB of space on the 1TB bricks.  
With this approach, he will be saving 800GB of disk space which can be utilized.

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1) Create a gluster volume and start it.
2) mount it on a client.
3) set storage.reserve limits using below command
gluster volume set <volname> storage.reserve <number>

Comment 19 Vinayak Papnoi 2019-07-18 07:18:29 UTC
Build Version:

The storage.reserve volume option takes values in bytes (KB, MB, GB, etc) successfully and the reserve value is enforced on the bricks successfully.

Performed all the test cases present in the polarion link attached with the bug.
All test cases have passed.

Hence, moving this bug to VERIFIED.

Comment 24 errata-xmlrpc 2019-10-30 12:19:38 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.


Note You need to log in before you can comment on or make changes to this bug.