Get the App
SLTechnology News&Howtos  ›  Servers  › 

How cinder configures multiple ceph storage pools

Shulou Source: shulou.com Published: 2022-05-31 21:38:33 10月03日 Update

This article mainly shows you "cinder how to configure multiple ceph storage pools", the content is easy to understand, clear, hope to help you solve your doubts, the following let the editor lead you to study and learn "cinder how to configure multiple ceph storage pools" this article.

I. Ceph

To configure Ceph to use different storage devices, see: Ceph 2 speed storage with CRUSH.

II. Cinder

Suppose two pools are called:

Rbd-sata points to SATA rack

Rbd-ssd points to SSD rack

II.1 configuration operation

Cinder profile:

# multiple backend options # define the name of the backend group of multiple volumes enabled_backends=rbd-sata,rbd-ssd# definition above the group [rbd-sata] volume_driver=cinder.volume.driver.RBDDriverrbd_pool=cinder-satavolume_backend_name=RBD_SATA# if you enable cephX you need to configure the following # rbd_user=cinder#rbd_secret_uuid= [RBD-ssd] volume_driver=cinder.volume.driver.RBDDriverrbd_pool=cinder-ssdvolume_backend_name=RBD_SSD# if you enable cephX you need to configure the following # rbd_user=cinder#rbd_secret_uuid=

Finally, two volume types are created, pointing to their respective backends.

$cinder type-create ssd+--+-+ | ID | Name | +-- +-+ | b1522968- E4fa-4372-8ac4-3925b7c79ee1 | ssd | +-- +-+ $cinder type-create sata+--+-+ | ID | | Name | +-- +-+ | b50bf5a3-6044-4392-beeb-432302f6421c | sata | +-- +-+ |

Then create the pointer

$cinder type-key ssd set volume_backend_name=RBD_SSD$cinder type-key sata set volume_backend_name=RBD_SATA$cinder extra-specs-list+--+-+--+ | ID | Name | extra_specs | +-- +-+ | b1522968- E4fa-4372-8ac4-3925b7c79ee1 | ssd | {upright volumetric backended SSD'} | | b50bf5a3-6044-SSD'} | sata | {ubiquitous volumetric backended naming: upright RBDSB SATA'} | +-- +-- -+

Then restart the cinder service

$sudo restart cinder-api; sudo restart cinder-scheduler; sudo restart cinder-volumeII.2. Use it $cinder create-- volume_type ssd-- display_name vol-ssd 1 to talk about Murray + | Property | Value | +- -+-+ | attachments | [] | availability_zone | nova | | bootable | false | | Created_at | 2013-04-22T14:54:53.917580 | | display_description | None | | display_name | vol-ssd | | id | 4c777d96-66e4-4f85-815c-92d4503c5c8c | | metadata | {} | | Size | 1 | snapshot_id | None | | source_volid | None | | status | creating | | volume_type | ssd | | +-+-- + $cinder create-- volume_type ssd-- display_name vol-sata 1 "Murphy"- -- + | Property | Value | +-+-+ | attachments | [] | | availability_zone | nova | | bootable | false | | created_at | 2013-04-22T14:54:58.831327 | | display_description | None | | display_name | Vol-sata | | id | 8e347bd1-2044-40a2-ae87-ee9a23cddd71 | | metadata | {} | | size | 1 | | snapshot_id | None | | Source_volid | None | | status | creating | | volume_type | ssd | +-+- -+

Verify that the configuration is in effect

$rbd-p cinder-ssd lsvolume-8e347bd1-2044-40a2-ae87-ee9a23cddd71 $rbd-p cinder-sata lsvolume-4c777d96-66e4-4f85-815c-92d4503c5c8c is all the content of the article "how to configure multiple ceph storage pools in cinder". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

Tags: Configuration content storage pool pointing article two learning help different name multiple storage device pointer file easy to understand more organization knowledge type ribbon Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Microsoft macOS Shulou Tech Info vpn Shulou Information