Skip to content

Commit c24bae9

Browse files
committed
Adding max-subsys
1 parent 9670b41 commit c24bae9

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

bare-metal/bootstrap-cluster.sh

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ storage_private_ips=$STORAGE_PRIVATE_IPS
1414
print_help() {
1515
echo "Usage: $0 [options]"
1616
echo "Options:"
17-
echo " --max-lvol <value> Set Maximum lvols (optional)"
17+
echo " --max-subsys <value> Set Maximum subsystems (optional)"
1818
echo " --max-snap <value> Set Maximum snapshots (optional)"
1919
echo " --max-size <value> Set Maximum amount of GB to be utilized on storage node (optional)"
2020
echo " --number-of-devices <value> Set number of devices (optional)"
@@ -57,7 +57,7 @@ print_help() {
5757
echo " Example: --extra-cluster-args \"--log-del-interval 10 --cap-warn 80\""
5858
echo " --extra-sn-args <value> Additional arguments to pass to storage-node commands (optional)"
5959
echo " Configure flags (--nodes-per-socket, --sockets-to-use, --pci-allowed,"
60-
echo " --pci-blocked, --max-lvol, --max-size) are auto-routed to sn configure."
60+
echo " --pci-blocked, --max-subsys, --max-size) are auto-routed to sn configure."
6161
echo " Remaining flags go to sn add-node."
6262
echo " Example: --extra-sn-args \"--spdk-debug --nodes-per-socket 4\""
6363
echo " Example: --extra-sn-args \"--host-nqn /home/ec2-user/host-nqn.json\""
@@ -67,7 +67,7 @@ print_help() {
6767

6868
parse_args() {
6969
# initialize all vars
70-
MAX_LVOL=""
70+
MAX_SUBSYS=""
7171
MAX_SNAPSHOT=""
7272
MAX_SIZE=""
7373
NO_DEVICE=""
@@ -120,8 +120,8 @@ EXTRA_CLUSTER_ARGS=()
120120
while [[ $# -gt 0 ]]; do
121121
arg="$1"
122122
case $arg in
123-
--max-lvol)
124-
MAX_LVOL="$2"
123+
--max-subsys)
124+
MAX_SUBSYS="$2"
125125
shift
126126
;;
127127
--max-snap)
@@ -298,7 +298,7 @@ CONFIGURE_ONLY_FLAGS=(
298298
--sockets-to-use
299299
--pci-allowed
300300
--pci-blocked
301-
--max-lvol
301+
--max-subsys
302302
--max-size
303303
)
304304

@@ -585,7 +585,7 @@ main() {
585585
fi
586586

587587
local configure_cmd="${SBCLI_CMD} --dev -d storage-node configure"
588-
[[ -n "$MAX_LVOL" ]] && configure_cmd+=" --max-lvol $MAX_LVOL"
588+
[[ -n "$MAX_SUBSYS" ]] && configure_cmd+=" --max-subsys $MAX_SUBSYS"
589589
[[ -n "$MAX_SIZE" ]] && configure_cmd+=" --max-size $MAX_SIZE"
590590
# Append configure flags extracted from --extra-sn-args
591591
for arg in "${EXTRA_CONFIGURE_ARGS[@]}"; do

0 commit comments

Comments
 (0)