'--data-slots',
help=('Intended number of slots on data device. The new OSD gets one'
'of those slots or 1/nth of the available capacity'),
+ type=int,
default=1,
)
dest='block_db_slots',
help=('Intended number of slots on db device. The new OSD gets one'
'of those slots or 1/nth of the available capacity'),
+ type=int,
default=1,
)
dest='block_wal_slots',
help=('Intended number of slots on wal device. The new OSD gets one'
'of those slots or 1/nth of the available capacity'),
+ type=int,
default=1,
)
kwargs = {
'device': device_name,
'tags': tags,
+ 'slots': getattr(self.args,
+ 'block_{}_slots'.format(device_type),
+ 1),
}
if size != 0:
kwargs['size'] = disk.Size.parse(size)
lv_name_prefix = "osd-{}".format(device_type)
kwargs = {'device': device,
'tags': {'ceph.type': device_type},
+ 'slots': self.args.data_slots,
}
logger.debug('data device size: {}'.format(self.args.data_size))
if self.args.data_size != 0: