Skip to content

Commit

Permalink
manpage: expand example section and add arbiter volume create example
Browse files Browse the repository at this point in the history
To avoid looking weird when the arbiter example is added the whole
example section is expanded a little bit. Then an example of
creating an arbiter volume is added.

Signed-off-by: John Mulligan <[email protected]>
  • Loading branch information
phlogistonjohn authored and obnoxxx committed May 30, 2018
1 parent 626a5fc commit 5f9b2b0
Showing 1 changed file with 23 additions and 1 deletion.
24 changes: 23 additions & 1 deletion docs/man/heketi-cli.8
Original file line number Diff line number Diff line change
Expand Up @@ -677,14 +677,36 @@ Can also be set using the environment variable HEKETI\_CLI\_USER.
\fB\-v\fP, \fB\-\-version\fP[=false]
Print version.
.PP
.SH EXAMPLE
.SH EXAMPLES
.PP
.SS List Volumes
.PP
Specify the Heketi server to contact using an environment variable
and list the volumes.
.RS
.nf
$ export HEKETI\_CLI\_SERVER=http://localhost:8080
$ heketi\-cli volume list
.fi
.RE
.PP
.SS Create a Volume
.PP
Create a 4 GiB volume.
.RS
.nf
$ heketi\-cli volume create --size 4
.fi
.RE
.PP
.SS Create an Arbiter Volume
.PP
Create a 4 GiB volume that uses the arbiter feature.
.RS
.nf
$ heketi\-cli volume create --size 4 --gluster-volume-options='user.heketi.arbiter true'
.fi
.RE
.SH COPYRIGHT
.nf
Copyright (c) 2015-2018 The heketi Authors
Expand Down

0 comments on commit 5f9b2b0

Please sign in to comment.