Cinder Multiple-backends

Cinder Multiple-backends


2017/11/15

在我们的实际生产环境中,openstack后端存储需要与多种类型的存储对接,如商业的SAN存储和分布式ceph存储。即使是同种类型的存储,也可以做性能区分,分为冷盘和热盘,存储不同类型的数据。本文主要介绍如何实现在ceph存储根据不同磁盘介质类型创建不同的卷类型,并与openstack进行对接。为用户提供不同级别的存储性能服务。

效果展示

先看下配置完成后的效果

(cinder-volume)[cinder@node07 /var/lib/cinder]$ cinder service-list
+------------------+-----------------+------+---------+-------+----------------------------+-----------------+
| Binary           | Host            | Zone | Status  | State | Updated_at                 | Disabled Reason |
+------------------+-----------------+------+---------+-------+----------------------------+-----------------+
| cinder-backup    | node07          | nova | enabled | up    | 2017-11-15T03:20:09.000000 | -               |
| cinder-scheduler | node07          | nova | enabled | up    | 2017-11-15T03:20:06.000000 | -               |
| cinder-volume    | node07@rbd-1    | nova | enabled | up    | 2017-11-15T03:20:08.000000 | -               |
| cinder-volume    | node07@rbd-2    | nova | enabled | down  | 2017-11-03T02:31:31.000000 | -               |
| cinder-volume    | node07@rbd-sata | nova | enabled | up    | 2017-11-15T03:20:06.000000 | -               |
| cinder-volume    | node07@rbd-ssd  | nova | enabled | up    | 2017-11-15T03:20:07.000000 | -               |
+------------------+-----------------+------+---------+-------+----------------------------+-----------------+

查看已创建的卷类型

(cinder-volume)[cinder@node07 /var/lib/cinder]$ cinder type-list
+--------------------------------------+------+-------------+-----------+
| ID                                   | Name | Description | Is_Public |
+--------------------------------------+------+-------------+-----------+
| cc790d0a-17d9-480f-8236-863549882fa1 | ssd  |             | True      |
| ccf55837-ed2d-4e9f-84b8-5dadb30ef725 | sata |             | True      |
+--------------------------------------+------+-------------+-----------+

查看volume-type和backend的关系

(cinder-volume)[cinder@node07 /var/lib/cinder]$ cinder extra-specs-list
+--------------------------------------+------+-------------------------------------+
| ID                                   | Name | extra_specs                         |
+--------------------------------------+------+-------------------------------------+
| cc790d0a-17d9-480f-8236-863549882fa1 | ssd  | {
  'volume_backend_name': 'rbd-ssd'}  |
|
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值