天天看点

openstack 管理三十九 - cinder 连接多个 ceph 存储方法环境说明目标cinder server 配置

环境说明

当前 openstack 使用正常

由于后端 ceph 存储容量已经超过 60%

不希望直接进行扩容, 因为会存在大量的数据迁移问题

新创建另外一个 ceph 集群, 并计划用于 openstack 成为一个新的 ceph 后端

旧的 ceph 集群称为 ceph-A, 使用中的 pool 为 volumes

新的 ceph 集群称为 ceph-B, 使用中的 pool 为 develop-ceph

目标

在 openstack 中, 同时连接到两个不同的 ceph backend

cinder server 配置

  1. ceph 连接配置
  2. cinder 服务配置
  3. 命令行对 cinder 服务进行管理
  4. 验证

ceph 连接配置

1.同时把两个 ceph 集群中的配置复制到 cinder 服务器 /etc/ceph 目录下, 定义成不同命名

[[email protected] ceph]# tree `pwd`
/etc/ceph
├── ceph.client.admin-develop.keyring      <- ceph-B 集群中的 admin key
├── ceph.client.admin-volumes.keyring      <- ceph-A 集群中的 admin key
├── ceph.client.developcinder.keyring      <- ceph-B 集群中的用户 developcinder key
├── 
           

继续阅读