6.2. 将块存储(cinder)类型映射到新的 Ceph 池
- WARNING
-
在现有环境中定义性能层可能会导致 Ceph 集群中的大量数据移动。
ceph-ansible,director 在堆栈更新过程中触发,没有逻辑来检查集群中是否已定义池,以及它是否包含数据。这意味着,在现有环境中定义性能层可能具有危险,因为与池关联的默认 CRUSH 规则更改会导致数据移动。如果您需要添加或删除节点的帮助或建议,请联系红帽支持。
完成配置步骤后,使用 Block Storage (cinder)创建映射到您创建的 fastpool 层的类型,使性能层功能可供 RHOSP 租户使用。
流程
-
以
stack用户身份登录 undercloud 节点。 获取
overcloudrc文件:$ source overcloudrc检查块存储卷现有类型:
$ cinder type-list创建新的块存储卷 fast_tier :
$ cinder type-create fast_tier检查是否创建了 Block Storage 类型:
$ cinder type-list当
fast_tierBlock Storage 类型可用时,将fastpool设置为您创建的新层的 Block Storage 卷后端:$ cinder type-key fast_tier set volume_backend_name=tripleo_ceph_fastpool使用新层创建新卷:
$ cinder create 1 --volume-type fast_tier --name fastdisk