Red Hat Bugzilla – Bug 764709
Gluster command to view the default values of volume options?
Last modified: 2013-12-18 19:06:25 EST
Currently there are no CLI command for this. Will think of getting it out.
*** This bug has been marked as a duplicate of bug 2041 ***
Since my first request is a different once, I'm opening a separate bug for that (2980).
I would like to get some idea on the following queries:
1.) Is there any gluster command currently available to reset a particular volume option to its default value? I know that there is "gluster volume reset" to reset the options completely. But that will reset everything including the other required options as well. So just wanted to know if there is an option to remove/disable a specific option so that it won't list in the next "gluster volume info" output (similar to on/off in translators). If no option is available, please take this as a feature request.
2.) Is there any option/command to view the default values of any volume options? For example: How will I know the default values of "performance.cache-max-file-size" or "performance.cache-min-file-size" without looking at the code or generating a GlusterFS state dump?
We should be able to view the default values either by executing a command or looking at the volume files (once an option is set, its default value should be given just above/below to it as commented so that we can set to it, if needed, without doing a volume reset). If no option is present, please include this also as a feature request.
Thanks in advance.