- Ceph Cookbook(Second Edition)
- Vikhyat Umrao Michael Hackett Karan Singh
- 224字
- 2021-07-02 23:19:15
How to do it...
In the last recipe, we learned to configure Glance to use Ceph. In this recipe, we will learn to use the Ceph RBD with the Cinder service of OpenStack:
- Since in this demonstration we are not using multiple backend cinder configurations, comment the enabled_backends option from the /etc/cinder/cinder.conf file:
- Navigate to the options defined in cinder.volume.drivers.rbd section of the /etc/cinder/cinder.conf file and add the following (replace the secret UUID with your environments value):
volume_driver = cinder.volume.drivers.rbd.RBDDriver
rbd_pool = volumes
rbd_user = cinder
rbd_secret_uuid = e279566e-bc97-46d0-bd90-68080a2a0ad8
rbd_ceph_conf = /etc/ceph/ceph.conf
rbd_flatten_volume_from_snapshot = false
rbd_max_clone_depth = 5
rbd_store_chunk_size = 4
rados_connect_timeout = -1
glance_api_version = 2
- Execute the following command to verify the previous entries:
# cat /etc/cinder/cinder.conf | egrep "rbd|rados|version" |
grep -v "#"

- Comment enabled_backend=lvm option in /etc/cinder/cinder.conf:

- Restart the OpenStack Cinder services:
# service openstack-cinder-volume restart
- Source the keystone_admin files for OpenStack:
# source /root/keystonerc_admin
# cinder list
- To test this configuration, create your first Cinder volume of 2 GB, which should now be created on your Ceph cluster:
# cinder create --display-name ceph-volume01
--display-description "Cinder volume on CEPH storage" 2

- Check the volume by listing the Cinder and Ceph volumes pool:
# cinder list

# rbd -p volumes ls --id cinder
# rbd info volumes/volume-7443e2b6-0674-4950-9371-49094a1702a7
--id cinder

- Similarly, try creating another volume using the OpenStack horizon dashboard.
推薦閱讀
- 零起步輕松學(xué)單片機技術(shù)(第2版)
- 機艙監(jiān)測與主機遙控
- 基于ARM 32位高速嵌入式微控制器
- 系統(tǒng)安裝與重裝
- Learn CloudFormation
- 面向?qū)ο蟪绦蛟O(shè)計綜合實踐
- 工業(yè)機器人維護與保養(yǎng)
- Microsoft System Center Confi guration Manager
- LMMS:A Complete Guide to Dance Music Production Beginner's Guide
- 一步步寫嵌入式操作系統(tǒng)
- Mastering OpenStack(Second Edition)
- FANUC工業(yè)機器人配置與編程技術(shù)
- 設(shè)計模式
- 基于元胞自動機的人群疏散系統(tǒng)建模與分析
- 軟件質(zhì)量管理實踐