Merge run_3osds and run_7osds scripts

This commit is contained in:
Vitaliy Filippov
2022-06-03 01:56:36 +03:00
parent 21b306e25f
commit c4eb46600d
11 changed files with 112 additions and 175 deletions
+4 -2
View File
@@ -1,6 +1,8 @@
#!/bin/bash -ex
. `dirname $0`/run_7osds.sh
OSD_COUNT=7
PG_COUNT=32
. `dirname $0`/run_3osds.sh
IMG_SIZE=960
@@ -38,7 +40,7 @@ fi
# Check that no objects are lost !
nobj=`$ETCDCTL get --prefix '/vitastor/pg/stats' --print-value-only | jq -s '[ .[].object_count ] | reduce .[] as $num (0; .+$num)'`
if [ "$nobj" -ne $((IMG_SIZE*8)) ]; then
if [ "$nobj" -ne $((IMG_SIZE*8/PG_DATA_SIZE)) ]; then
format_error "Data lost after multiple interrupted rebalancings"
fi