Skip to content
Snippets Groups Projects
Commit 7e937a55 authored by William Xiong's avatar William Xiong
Browse files

Pool to balance must now always be specified

parent b1be8360
No related branches found
No related tags found
1 merge request!3Use --only-poolid instead of bugfix
......@@ -47,13 +47,12 @@ if [ -n "$5" ]
#Which Pool to use to search for remapped pgs.
POOL=$5
POOL_ID=$(ceph df --format json | jq --arg poolname $POOL '.pools[] | select(.name == $poolname) | .id')
echo "Using Pool: $POOL with pool_id: $POOL_ID"
else
echo "Must Specify which pool to balance. Exiting"
exit 1
fi
echo "Using Pool: $POOL with pool_id: $POOL_ID"
echo "Using Device Class: $DEV_CLASS"
echo "Using PG Threshold: $PG_THRESHOLD"
echo "Using Max Remaps: $MAX_REMAPS"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment