This makes sure `ceph-volume lvm batch` will recreate the db device
with the right size when coming from a cluster deployed prior to 14.2.13
Fixes: https://tracker.ceph.com/issues/59442
Signed-off-by: Guillaume Abrioux <gabrioux@ibm.com>
(cherry picked from commit
98c68f2c8f648a5b9faac295999de212d362744d)
if vg_name == 'unused_devices':
slots_for_vg = requested_slots
else:
- slots_for_vg = len(vg_devices) * requested_slots
+ if len(vg_devices) > 1:
+ slots_for_vg = len(args.devices)
+ else:
+ slots_for_vg = len(vg_devices) * requested_slots
dev_size = dev.vg_size[0]
# this only looks at the first vg on device, unsure if there is a better
# way