]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
ceph-volume: use correct extents when using db-devices and >1 osds_per_device
authorFabian Niepelt <f.niepelt@mittwald.de>
Wed, 11 Dec 2019 13:19:14 +0000 (14:19 +0100)
committerGitHub <noreply@github.com>
Wed, 11 Dec 2019 13:19:14 +0000 (14:19 +0100)
commitecde6cd619605003706f545b0b5ad4e2e8932f28
treeb62d0ce0ea7422bb33c10c64424e46b7e12cbc0f
parent71dea683072f9ad8f1d66e7defbf6f4683c6a58a
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>
src/ceph-volume/ceph_volume/devices/lvm/strategies/bluestore.py