In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces "how to use Ceph as the back-end storage of OpenStack". In the daily operation, I believe many people have doubts about how to use Ceph as the back-end storage of OpenStack. Xiaobian consulted all kinds of materials and sorted out simple and easy-to-use operation methods. I hope it will be helpful to answer the questions of "how to use Ceph as the back-end storage of OpenStack". Next, please follow the editor to study!
An overview of libvirt configures librbd's QEMU interface, which allows you to use Ceph block storage in OpenStack. Ceph block storage is a clustered object, which means it has better performance than stand-alone servers.
To use Ceph block devices in OpenStack, you must first install QEMU,libvirt and OpenStack. The following figure describes the OpenStack and Ceph technology hierarchy:
Http://my.oschina.net/JerryBaby/blog/376580 the official document I translated is for reference only.
System planning OpenStack cluster:
Control node: openstack (controller) 192.168.1.131
Compute node: compute 192.168.1.132
Storage node: storage 192.168.1.133
Ceph Cluster:
Monitor, mds, osd0 nodes: openstack (controller) 192.168.1.131
Osd1:compute 192.168.1.132
Osd2:storage 192.168.1.133
System architecture:
Configuration process
Important: since two sets of cluster services are deployed on the same set of nodes, some configuration of the Ceph cluster is omitted during the configuration process.
Create a storage pool
# ceph osd pool create volumes 128# ceph osd pool create images 128# ceph osd pool create vms 128
Set Ceph client authentication
Execute the following command on the OpenStack node:
# ceph auth get-or-create client.cinder mon 'allow r' osd 'allow class-read object_prefix rbd_children, allow rwx pool=volumes, allow rwx pool=vms, allow rx pool=images'# ceph auth get-or-create client.glance mon' allow r 'osd' allow class-read object_prefix rbd_children, allow rwx pool=images'
Add a key file for client.cinder,client.glance to access the node and change the owner:
# ceph auth get-or-create client.glance | ssh openstack sudo tee / etc/ceph/ceph.client.glance.keyring# ssh openstack sudo chown glance:glance / etc/ceph/ceph.client.glance.keyring# ceph auth get-or-create client.glance | ssh compute sudo tee / etc/ceph/ceph.client.glance.keyring# ssh compute sudo chown nova:nova / etc/ceph/ceph.client.glance.keyring# ceph auth get-or-create client.cinder | ssh compute sudo tee / etc/ceph/ceph.client .cinder.keyring # ssh compute sudo chown nova:nova / etc/ceph/ceph.client.cinder.keyring# ceph auth get-or-create client.cinder | ssh storage sudo tee / etc/ceph/ceph.client.cinde.keyring# ssh storage sudo chown cinder:cinder / etc/ceph/ceph.client.cinder.keyring
The node nova-compute process running nova-compute requires a key file. They also store the client.cinder user's key in libvirt. The libvirt process needs it to access the cluster when binding block devices in Cinder.
Create a temporary copy of the key on the nova-compute node:
# uuidgen457eb676-33da-42ec-9a8c-9293d545c337# cat > secret.xml
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.