GlusterCLI::Volume
Inherits Reference / Object
Instance methods
info(status = false) : VolumeInfo
Get Volume info and realtime Status
Example:
cli.volume("gvol1").info
cli.volume("gvol1").info(status: true)
option_reset(keys : Array(String))
Reset Multiple Volume Options
Example:
cli.volume("gvol1").option_reset(["changelog.changelog"])
option_reset(key : String)
Reset a Volume Option
Example:
cli.volume("gvol1").option_reset("changelog.changelog")
option_set(key : String, value : String)
Set a Volume Option
Example:
cli.volume("gvol1").option_set("changelog.changelog", "on")
option_set(key_values : Hash(String, String))
Set Multiple Volume Options
Example:
cli.volume("gvol1").option_set({"changelog.changelog" => "on"})
start(force = false)
Start a Gluster Volume
Example:
cli.volume("gvol1").start
# To start with *force* option
cli.volume("gvol1").start(force: true)
stop(force = false)
Stop a Gluster Volume
Example:
cli.volume("gvol1").stop
# To stop with *force* option
cli.volume("gvol1").stop(force: true)