Set the bluestore block size

It looks like the default bluestore that came with nautilus
is limiting us to a for-testing size of 10G regardless of what the
actual ceph volume is supposed to be. Try setting it to the size
we want (minus some room for overhead).

Closes-Bug: #1888895
Change-Id: I4e5233df826af6eeddc4e77820958909d4fe7d45
This commit is contained in:
Dan Smith 2020-07-24 11:23:06 -07:00
parent 4ca64cd718
commit 5a0a36f159
1 changed files with 4 additions and 0 deletions

View File

@ -427,6 +427,10 @@ function configure_ceph {
iniset -sudo ${CEPH_CONF_FILE} client "debug_client" "10"
iniset -sudo ${CEPH_CONF_FILE} client "debug_ms" "1"
local gigs
gigs=$(echo $CEPH_LOOPBACK_DISK_SIZE | grep -o '^[0-9]*')
iniset -sudo ${CEPH_CONF_FILE} global "bluestore_block_size" $((($gigs - 4) << 30))
# bootstrap the ceph monitor
sudo ceph-mon -c ${CEPH_CONF_FILE} --mkfs -i $(hostname) \
--keyring ${CEPH_DATA_DIR}/tmp/keyring.mon.$(hostname)