first comment on the replicated pools: the replication size for rbd pools of 2 is not suitable for production clusters. It is only a matter of time before you lose data. Joachim www.clyso.com Hohenzollernstr. 27, 80801 Munich Utting a. A. | HR: Augsburg | HRB: 25866 | USt. ID-Nr.: DE2754306 Am Sa., 14. Sept. 2024 um 14:04 Uhr schrieb <przemek.kuczynski@gmail.com>:
Here You have guide
https://febryandana.xyz/posts/deploy-ceph-openstack-cluster/
in short
ceph osd pool create images 128 ceph osd pool set images size 2 while [ $(ceph -s | grep creating -c) -gt 0 ]; do echo -n .;sleep 1; done
ceph osd pool create volumes 128 ceph osd pool set volumes size 2 while [ $(ceph -s | grep creating -c) -gt 0 ]; do echo -n .;sleep 1; done
ceph osd pool create vms 128 ceph osd pool set vms size 2 while [ $(ceph -s | grep creating -c) -gt 0 ]; do echo -n .;sleep 1; done
ceph osd erasure-code-profile set ec-22-profile k=2 m=2 crush-device-class=ssd ceph osd erasure-code-profile ls ceph osd erasure-code-profile get ec-22-profile
ceph osd pool create images_data 128 128 erasure ec-22-profile while [ $(ceph -s | grep creating -c) -gt 0 ]; do echo -n .;sleep 1; done
ceph osd pool create volumes_data 128 128 erasure ec-22-profile while [ $(ceph -s | grep creating -c) -gt 0 ]; do echo -n .;sleep 1; done
ceph osd pool create vms_data 128 128 erasure ec-22-profile while [ $(ceph -s | grep creating -c) -gt 0 ]; do echo -n .;sleep 1; done
ceph osd pool ls detail
ceph osd pool set images_data allow_ec_overwrites true ceph osd pool set volumes_data allow_ec_overwrites true ceph osd pool set vms_data allow_ec_overwrites true
ceph osd pool application enable volumes rbd ceph osd pool application enable images rbd ceph osd pool application enable vms rbd ceph osd pool application enable volumes_data rbd ceph osd pool application enable images_data rbd ceph osd pool application enable vms_data rbd On ceph.conf You need put as below
[client.glance] rbd default data pool = images_data
[client.cinder] rbd default data pool = volumes_data
[client.nova] rbd default data pool = vms_data for permission you probably also need add
caps mon = "allow r, allow command \\"osd blacklist\\", allow command \\"osd blocklist\\", allow command \\"blacklistop\\", allow command \\"blocklistop\\"" Newer versions might not work with blacklist anymore. _______________________________________________ ceph-users mailing list -- ceph-users@ceph.io To unsubscribe send an email to ceph-users-leave@ceph.io