======================回忆上篇 Cinder CLI命令(2)===============================
四. 后端服务
1. 列出所有后端服务
cinderservice-list [--host <hostname>] [--binary <binary>]
参数:
参数 |
含义 |
host |
根据主机名来筛选 |
binary |
根据服务名称来筛选 |
2. 启用服务
cinderservice-enable <hostname> <binary>
参数:
参数 |
含义 |
hostname |
主机名 |
binary |
服务名称 |
3. 禁用服务
cinderservice-disable [--reason <reason>] <hostname> <binary>
参数:
参数 |
含义 |
reason |
禁用原因 |
hostname |
主机名 |
binary |
服务名称 |
五. 卷转移
1. 创建转移卷
cindertransfer-create [--name <name>] <volume>
参数:
参数 |
含义 |
name |
转移卷名 |
volume |
卷名或ID,发送方提供的卷 |
2. 查看转移卷详情
cindertransfer-show <transfer>
参数:
参数 |
含义 |
transfer |
转移卷名或ID |
3. 接收转移卷
cindertransfer-accept <transfer> <auth_key>
参数:
参数 |
含义 |
transfer |
接收方准备接收的转移卷ID |
auth_key |
发送方提供的auth_key值 |
4. 列出所有转移卷
cindertransfer-list [--all-tenants [<0|1>]]
参数:
参数 |
含义 |
all-tenants |
是否列出所有租户的转移卷,0:不是,1:是,只能Admin使用 |
5. 删除转移卷
cindertransfer-delete <transfer>
参数:
参数 |
含义 |
transfer |
转移卷名或ID |
六. 一致性组
1. 创建一致性组
cinderconsisgroup-create [--name <name>] [--description <description>]
[--availability-zone<availability-zone>]
<volume-types>
参数:
参数 |
含义 |
name |
一致性组名 |
description |
一致性组描述信息 |
availability-zone |
可用的zone |
volume-types |
卷类型 |
2. 其他方式创建一致性组
cinderconsisgroup-create-from-src [--cgsnapshot <cgsnapshot>]
[--source-cg<source-cg>]
[--name <name>]
[--description<description>]
参数:
参数 |
含义 |
cgsnapshot |
一致性组快照名或ID |
source-cg |
源一致性组名或ID |
name |
一致性组名 |
description |
一致性组描述信息 |
3. 删除一致性组
cinderconsisgroup-delete [--force]
<consistencygroup>