Heketi命令相关操作
新建heketidbstorage数据库(heketi用于记录GLusterFS集群磁盘空间信息等资源使用情况的数据库)
heketi-cli --server http://localhost:8080 setup-openshift-heketi-storage
查看GlusterFS集群的信息
集群列表
heketi-cli --server http://localhost:8080 cluster list
集群详细信息
heketi-cli --server http://localhost:8080 cluster info <cluster ID>
节点信息
heketi-cli --server http://localhost:8080 node info <node ID>
卷信息
heketi-cli --server http://localhost:8080 volume list
其他常用命令
heketi支持如下命令
heketi-cli --server http://localhost:8080 -h
blockvolume Heketi Volume Management
cluster Heketi cluster management
db Heketi Database Management
device Heketi device management
help Help about any command
loglevel Heketi Log Level
node Heketi Node Management
setup-openshift-heketi-storage Setup OpenShift/Kubernetes persistent storage for Heketi
topology Heketi Topology Management
volume Heketi Volume Management
集群相关命令
heketi-cli --server http://localhost:8080 cluster -h
create Create a cluster
delete Delete the cluster
info Retrieves information about cluster
list Lists the clusters managed by Heketi
setflags Set flags on a cluster
节点相关命令
heketi-cli --server http://localhost:8080 node -h
add Add new node to be managed by Heketi
delete Deletes a node from Heketi management
disable Disallow usage of a node by placing it offline
enable Allows node to go online
info Retrieves information about the node
list List all nodes in cluster
remove Removes a node and all its associated devices from Heketi
rmtags Removes tags from a node
settags Sets tags on a node
卷相关命令
heketi-cli --server http://localhost:8080 volume -h
clone Creates a clone
create Create a GlusterFS volume
delete Deletes the volume
expand Expand a volume
info Retrieves information about the volume
list Lists the volumes managed by Heketi