深挖Openstack Cinder - CLI命令(3)

本文详细介绍了OpenStack Cinder的CLI命令,包括管理后端服务、卷转移、一致性组、配额、QoS、卷类型、加密等操作。用户可以了解如何创建、查看、删除和修改这些资源,并通过CLI进行相应的操作。
摘要由CSDN通过智能技术生成

======================回忆上篇 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>

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值