]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
ceph-volume: use correct extents when using db-devices and >1 osds_per_device 32875/head
authorFabian Niepelt <f.niepelt@mittwald.de>
Wed, 11 Dec 2019 13:19:14 +0000 (14:19 +0100)
committerShyukri Shyukriev <shshyukriev@suse.com>
Sat, 25 Jan 2020 21:21:09 +0000 (23:21 +0200)
commitb6f8ca3b033499f567bf2dab8a762f0d7b452526
tree544f47b5adcf0356d3358286f9f6c2e2c79a3c5e
parente1c5fd9306ce839d8d3ac8160c57aba42e0231a8
ceph-volume: use correct extents when using db-devices and >1 osds_per_device

Actual data size depending on osds_per_device needs to be calculated here. Otherwise, if osds_per_device is greater than 1, ceph-volume will allocate 100% of the device to the first osd and then fail to create the LV for the second because the volume group is already full.

Fixes: https://tracker.ceph.com/issues/39442
Signed-off-by: Fabian Niepelt <f.niepelt@mittwald.de>
(cherry picked from commit ecde6cd619605003706f545b0b5ad4e2e8932f28)

 Conflicts:
src/ceph-volume/ceph_volume/devices/lvm/strategies/bluestore.py
src/ceph-volume/ceph_volume/devices/lvm/strategies/bluestore.py