CEPH_ARGS+="--bluestore_block_wal_size=536870912 "
CEPH_ARGS+="--bluestore_block_wal_create=true "
CEPH_ARGS+="--bluestore_fsck_on_mount=true "
+ #choosing randomly allocation from file
+ CEPH_ARGS+="--bluestore_allocation_from_file=$((RANDOM % 2)) "
run_mon $dir a || return 1
run_mgr $dir x || return 1
total_space_after=$( ceph tell osd.0 perf dump bluefs | jq ".bluefs.slow_total_bytes" )
free_space_after=`ceph tell osd.0 bluestore bluefs device info | grep "BDEV_SLOW" -A 2 | grep free | cut -d':' -f 2 | cut -d"," -f 1 | cut -d' ' -f 2`
- if [$total_space_after != $requested_space]; then
+ if [ $total_space_after != $requested_space ]; then
echo "total_space_after = $total_space_after"
echo "requested_space = $requested_space"
return 1;