차이
문서의 선택한 두 판 사이의 차이를 보여줍니다.
openstack_multiple_cinder_backend [2022/03/10 01:41] – 만듦 koov | openstack_multiple_cinder_backend [2022/03/10 09:05] (현재) – koov | ||
---|---|---|---|
줄 1: | 줄 1: | ||
====== Openstack multiple cinder backend ====== | ====== Openstack multiple cinder backend ====== | ||
+ | |||
+ | ===== Multiple pool backend ===== | ||
+ | |||
+ | Ceph backend 사용시 cinder의 기본 backend pool인 '' | ||
+ | |||
+ | <WRAP prewrap> | ||
+ | <code yaml> | ||
+ | parameter_defaults: | ||
+ | CephClientKey: | ||
+ | CephClusterFSID: | ||
+ | CephExternalMonHost: | ||
+ | |||
+ | CephAnsiblePlaybookVerbosity: | ||
+ | |||
+ | CinderRbdExtraPools: | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | 위와같이 추가하게 되면 '' | ||
+ | |||
+ | <WRAP prewrap> | ||
+ | <code bash> | ||
+ | (overcloud) [stack@director ~]$ openstack volume service list | ||
+ | +------------------+--------------------------------+------+---------+-------+----------------------------+ | ||
+ | | Binary | ||
+ | +------------------+--------------------------------+------+---------+-------+----------------------------+ | ||
+ | | cinder-scheduler | overcloud-controller-1 | ||
+ | | cinder-scheduler | overcloud-controller-2 | ||
+ | | cinder-scheduler | overcloud-controller-0 | ||
+ | | cinder-volume | ||
+ | | cinder-volume | ||
+ | | cinder-volume | ||
+ | +------------------+--------------------------------+------+---------+-------+----------------------------+ | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | 2가지 볼륨 서비스가 추가로 기동된것을 확인 할 수 있다. | ||
+ | |||
+ | 이후 볼륨 타입을 추가해준다. | ||
+ | |||
+ | <WRAP prewrap> | ||
+ | <code bash> | ||
+ | (overcloud) [stack@director ~]$ cinder type-list | ||
+ | +--------------------------------------+-------------+---------------------+-----------+ | ||
+ | | ID | Name | Description | ||
+ | +--------------------------------------+-------------+---------------------+-----------+ | ||
+ | | 98653d20-8229-4ce1-9b63-855c5acfa85b | tripleo | ||
+ | | bda85913-bd4a-48e5-b054-3fa6060f9573 | __DEFAULT__ | Default Volume Type | True | | ||
+ | +--------------------------------------+-------------+---------------------+-----------+ | ||
+ | (overcloud) [stack@director ~]$ cinder type-create ssd | ||
+ | +--------------------------------------+------+-------------+-----------+ | ||
+ | | ID | Name | Description | Is_Public | | ||
+ | +--------------------------------------+------+-------------+-----------+ | ||
+ | | 6924bd4d-db05-48e3-97b7-e29204a405a3 | ssd | - | True | | ||
+ | +--------------------------------------+------+-------------+-----------+ | ||
+ | (overcloud) [stack@director ~]$ cinder type-key ssd set volume_backend_name=tripleo_ceph_ssdpool | ||
+ | (overcloud) [stack@director ~]$ cinder type-show ssd | ||
+ | +---------------------------------+--------------------------------------------+ | ||
+ | | Property | ||
+ | +---------------------------------+--------------------------------------------+ | ||
+ | | description | ||
+ | | extra_specs | ||
+ | | id | 6924bd4d-db05-48e3-97b7-e29204a405a3 | ||
+ | | is_public | ||
+ | | name | ssd | | ||
+ | | os-volume-type-access: | ||
+ | | qos_specs_id | ||
+ | +---------------------------------+--------------------------------------------+ | ||
+ | (overcloud) [stack@director ~]$ cinder create 100 --name testdisk1 --volume-type ssd | ||
+ | +--------------------------------+-----------------------------------------------------+ | ||
+ | | Property | ||
+ | +--------------------------------+-----------------------------------------------------+ | ||
+ | | attachments | ||
+ | | availability_zone | ||
+ | | bootable | ||
+ | | consistencygroup_id | ||
+ | | created_at | ||
+ | | description | ||
+ | | encrypted | ||
+ | | id | 5d02afcb-8ef4-47d1-b0e4-397247c815e0 | ||
+ | | metadata | ||
+ | | migration_status | ||
+ | | multiattach | ||
+ | | name | testdisk1 | ||
+ | | os-vol-host-attr: | ||
+ | | os-vol-mig-status-attr: | ||
+ | | os-vol-mig-status-attr: | ||
+ | | os-vol-tenant-attr: | ||
+ | | replication_status | ||
+ | | size | 100 | | ||
+ | | snapshot_id | ||
+ | | source_volid | ||
+ | | status | ||
+ | | updated_at | ||
+ | | user_id | ||
+ | | volume_type | ||
+ | +--------------------------------+-----------------------------------------------------+ | ||
+ | (overcloud) [stack@director ~]$ cinder list | ||
+ | +--------------------------------------+-----------+-----------+------+-------------+----------+-------------+ | ||
+ | | ID | Status | ||
+ | +--------------------------------------+-----------+-----------+------+-------------+----------+-------------+ | ||
+ | | 5d02afcb-8ef4-47d1-b0e4-397247c815e0 | available | testdisk1 | 100 | ssd | false | | | ||
+ | +--------------------------------------+-----------+-----------+------+-------------+----------+-------------+ | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | |||
+ | ===== Multiple Ceph Cluster backend ===== | ||
+ | 이 구성은 아예 Ceph Cluster를 2개 이상 사용하고자 하는 경우에 사용한다. | ||