块存储集群

Block Storage v3

块存储集群列表

列出块存储集群。

此命令需要 --os-volume-api-version 3.7 或更高版本。

openstack block storage cluster list
    [--sort-column SORT_COLUMN]
    [--sort-ascending | --sort-descending]
    [--cluster <name>]
    [--binary <binary>]
    [--up]
    [--down]
    [--disabled]
    [--enabled]
    [--num-hosts <hosts>]
    [--num-down-hosts <hosts>]
    [--long]
--sort-column SORT_COLUMN

指定要对数据进行排序的列(首先指定的列具有优先级,不存在的列将被忽略),可以重复

--sort-ascending

按升序对列进行排序

--sort-descending

按降序对列进行排序

--cluster <name>

按集群名称过滤,不带后端将列出同一集群的所有集群服务。

--binary <binary>

集群二进制文件。

--up

按运行状态过滤。

--down

按停止状态过滤。

--disabled

按禁用状态过滤。

--enabled

按启用状态过滤。

--num-hosts <hosts>

按集群中的主机数量过滤。

--num-down-hosts <hosts>

按停止的主机数量过滤。

--long

在输出中列出附加字段

块存储集群设置

设置块存储集群属性。

此命令需要 --os-volume-api-version 3.7 或更高版本。

openstack block storage cluster set
    [--binary <binary>]
    [--enable | --disable]
    [--disable-reason <reason>]
    <cluster>
--binary <binary>

要过滤的二进制文件的名称;默认为 ‘cinder-volume’(可选)

--enable

启用集群

--disable

禁用集群

--disable-reason <reason>

禁用集群的原因(应与 –disable 选项一起使用)

cluster

要更新的块存储集群的名称(仅限名称)

块存储集群显示

显示块存储集群的详细信息。

此命令需要 --os-volume-api-version 3.7 或更高版本。

openstack block storage cluster show [--binary <binary>] <cluster>
--binary <binary>

服务二进制文件。

cluster

块存储集群的名称。