From 144163495b73eb5bde44819362c47dd3238f06bf Mon Sep 17 00:00:00 2001 From: Samuel Just Date: Thu, 30 Nov 2023 22:12:19 -0800 Subject: [PATCH] vstart.sh: add --require-osd-and-client-version and --use-crush-tunables flags Signed-off-by: Samuel Just --- src/vstart.sh | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/src/vstart.sh b/src/vstart.sh index 01fc493978a..23ae7ef6cc8 100755 --- a/src/vstart.sh +++ b/src/vstart.sh @@ -177,6 +177,8 @@ io_uring_enabled=0 with_jaeger=0 force_addr=0 osds_per_host=0 +require_osd_and_client_version="" +use_crush_tunables="" with_mgr_dashboard=true if [[ "$(get_cmake_variable WITH_MGR_DASHBOARD_FRONTEND)" != "ON" ]] || @@ -605,6 +607,16 @@ case $1 in shift echo "osds_per_host $osds_per_host" ;; + --require-osd-and-client-version) + require_osd_and_client_version="$2" + shift + echo "require_osd_and_client_version $require_osd_and_client_version" + ;; + --use-crush-tunables) + use_crush_tunables="$2" + shift + echo "use_crush_tunables $use_crush_tunables" + ;; *) usage_exit esac @@ -1101,6 +1113,15 @@ EOF if [ "$crimson" -eq 1 ]; then $CEPH_BIN/ceph osd set-allow-crimson --yes-i-really-mean-it fi + + if [ -n "$require_osd_and_client_version" ]; then + $CEPH_BIN/ceph osd set-require-min-compat-client $require_osd_and_client_version + $CEPH_BIN/ceph osd require-osd-release $require_osd_and_client_version --yes-i-really-mean-it + fi + + if [ -n "$use_crush_tunables" ]; then + $CEPH_BIN/ceph osd crush tunables $use_crush_tunables + fi } start_osd() { -- 2.39.5