heketi-cli (8) Linux Manual Page
heketi-cli – Command line program for Heketi
Synopsis
heketi-cli [commands] [options]
Description
Command line program for Heketi
Commands
Cluster Commands
heketi-cli cluster createCreate a cluster
Example
$ heketi-cli cluster create
heketi-cli cluster delete <CLUSTER-ID>Delete a cluster
Example
$ heketi-cli cluster delete 886a86a868711bef83001
heketi-cli cluster info <CLUSTER-ID>Retrieves information about clusterExample
$ heketi-cli cluster info 886a86a868711bef83001
heketi-cli cluster listLists the clusters managed by HeketiExample
$ heketi-cli cluster list
Device Commands
heketi-cli device add –name=<DEVICE-NAME> –node=<NODE-ID>Add new device to node to be managed by HeketiOptions
–name=""
–node=""
heketi-cli device delete <DEVICE-ID>Deletes a device from Heketi nodeExample
$ heketi-cli device delete 886a86a868711bef83001
heketi-cli device disable <DEVICE-ID>Disallow usage of a device by placing it offlineExample
$ heketi-cli device disable 886a86a868711bef83001
heketi-cli device enable <DEVICE-ID>Allows device to go onlineExample
$ heketi-cli device enable 886a86a868711bef83001
heketi-cli device info <DEVICE-ID>Retrieves information about deviceExample
$ heketi-cli device info 886a86a868711bef83001
Node Commands
heketi-cli node add –zone=<ZONE-NUMBER> –cluster=<CLUSTER-ID> –management-host-name=<MANAGEMENT-HOSTNAME> –storage-host-name=<STORAGE-HOSTNAME>Add new node to be managed by HeketiOptions
–cluster=""
–management-host-name=""
–storage-host-name=""
–zone=-1
heketi-cli node delete <NODE-ID>Deletes a node from Heketi managementExample
$ heketi-cli node delete 886a86a868711bef83001
heketi-cli node disable <NODE-ID>Disallow usage of a node by placing it offlineExample
$ heketi-cli node disable 886a86a868711bef83001
heketi-cli node enable <NODE-ID>Allows node to go onlineExample
$ heketi-cli node enable 886a86a868711bef83001
heketi-cli node info <NODE-ID>Retrieves information about nodeExample
$ heketi-cli node info 886a86a868711bef83001
heketi-cli node listList all nodes in clusterExample
$ heketi-cli node list
Setup OpenShift/Kubernetes persistent storage for Heketi
heketi-cli setup-openshift-heketi-storageCreates a dedicated GlusterFS volume for Heketi. Once the volume is created, a Kubernetes/OpenShift list object is created to configure the volume.Options
–listfile="heketi-storage.json"
Topology Commands
heketi-cli topology load –json=<JSON-FILENAME>Add devices to Heketi from a configuration fileOptions
-j, –json=""
heketi-cli topology infoRetreives information about the current TopologyExample
$ heketi-cli topology info
Volume Commands
heketi-cli volume create –cluster=<CLUSTER-ID> –disperse-data=<DISPERSION-VALUE> –durability=<TYPE> –name=<VOLUME-NAME> –redundancy=<REDUNDENCY-VALUE> –replica=<REPLICA-VALUE> –size=<VOLUME-SIZE> –snapshot-factor=<SNAPSHOT-FACTOR-VALUE>Create a GlusterFS volumeOptions
–clusters=""
-
Optional: Comma separated list of cluster ids where this volume must be allocated. If omitted, Heketi will allocate the volume on any of the configured clusters which have the available space. Providing a set of clusters will ensure Heketi allocates storage for this volume only in the clusters specified.
–disperse-data=4
-
Optional: Dispersion value for durability type 'disperse'. Default is 4
–durability="replicate"
-
Optional: Durability type. Values are: none: No durability. Distributed volume only. replicate: (Default) Distributed-Replica volume. disperse: Distributed-Erasure Coded volume.
–gid=0
-
Optional: Initialize volume with the specified group id Default is 0
–name=""
-
Optional: Name of volume. Only set if really necessary
–persistent-volume[=false]
-
Optional: Output to standard out a persistent volume JSON file for OpenShift or Kubernetes with the name provided.
–persistent-volume-endpoint=""
-
Optional: Endpoint name for the persistent volume
–persistent-volume-file=""
-
Optional: Create a persistent volume JSON file for OpenShift or Kubernetes with the name provided.
–redundancy=2
-
Optional: Redundancy value for durability type 'disperse'. Default is 2
–replica=3
-
Replica value for durability type 'replicate'. Default is 3
–size=-1
-
Size of volume in GB
–snapshot-factor=1
-
Optional: Amount of storage to allocate for snapshot support. Must be greater 1.0. For example if a 10TiB volume requires 5TiB of snapshot storage, then snapshot-factor would be set to 1.5. If the value is set to 1, then snapshots will not be enabled for this volume
heketi-cli volume delete <VOLUME-ID>Deletes the volumeExample
$ heketi-cli volume delete 886a86a868711bef83001
heketi-cli volume expand –expand-size=<SIZE> –volume=<VOLUME-ID>Expand a volumeOptions
–expand=""
–volume=""
Example
heketi-cli volume info <VOLUME-ID>Retrieves information about volumeExample
$ heketi-cli volume info 886a86a868711bef83001
heketi-cli volume listLists the volumes managed by HeketiExample
$ heketi-cli volume list
Global Options
–json[=false]
-
Print response as JSON
–secret=""
-
Secret key for specified user. Can also be set using the environment variable HEKETI_CLI_KEY
-s, –server=""
-
Heketi server. Can also be set using the environment variable HEKETI_CLI_SERVER
–user=""
-
Heketi user. Can also be set using the environment variable HEKETI_CLI_USER
-v, –version[=false]
-
Print version
Example
-
$ export HEKETI_CLI_SERVER=http://localhost:8080 $ heketi-cli volume list
Copyright
Copyright (c) 2015 The heketi Authors
