From: Samuel Just Date: Fri, 1 Dec 2023 06:12:19 +0000 (-0800) Subject: vstart.sh: add --require-osd-and-client-version and --use-crush-tunables flags X-Git-Tag: v19.1.0~339^2~6 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=d9f463e650483d7d01c715431e0ec5a1ea31b7af;p=ceph.git vstart.sh: add --require-osd-and-client-version and --use-crush-tunables flags Signed-off-by: Samuel Just --- diff --git a/src/vstart.sh b/src/vstart.sh index 4e776def9717a..20a35729c8e76 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" ]] || @@ -267,6 +269,8 @@ options: --seastore-secondary-devs-type: device type of all secondary blockdevs. HDD, SSD(default), ZNS or RANDOM_BLOCK_SSD --crimson-smp: number of cores to use for crimson --osds-per-host: populate crush_location as each host holds the specified number of osds if set + --require-osd-and-client-version: if supplied, do set-require-min-compat-client and require-osd-release to specified value + --use-crush-tunables: if supplied, set tunables to specified value \n EOF @@ -606,6 +610,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 @@ -1102,6 +1116,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() {