class

GlusterCLI::Volume

Inherits Reference / Object

Instance methods

delete

Delete a Gluster Volume

Example:

cli.volume("gvol1").delete
Source
info(status = false) : VolumeInfo

Get Volume info and realtime Status

Example:

cli.volume("gvol1").info
cli.volume("gvol1").info(status: true)
Source
option_reset(keys : Array(String))

Reset Multiple Volume Options

Example:

cli.volume("gvol1").option_reset(["changelog.changelog"])
Source
option_reset(key : String)

Reset a Volume Option

Example:

cli.volume("gvol1").option_reset("changelog.changelog")
Source
option_set(key : String, value : String)

Set a Volume Option

Example:

cli.volume("gvol1").option_set("changelog.changelog", "on")
Source
option_set(key_values : Hash(String, String))

Set Multiple Volume Options

Example:

cli.volume("gvol1").option_set({"changelog.changelog" => "on"})
Source
start(force = false)

Start a Gluster Volume

Example:

cli.volume("gvol1").start

# To start with *force* option
cli.volume("gvol1").start(force: true)
Source
stop(force = false)

Stop a Gluster Volume

Example:

cli.volume("gvol1").stop

# To stop with *force* option
cli.volume("gvol1").stop(force: true)
Source