This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| set -Eeuo pipefail | |
| KUBERNETES_MINOR="${KUBERNETES_MINOR:-v1.35}" | |
| POD_CIDR="${POD_CIDR:-10.244.0.0/16}" | |
| FLANNEL_VERSION="${FLANNEL_VERSION:-v0.28.9}" | |
| LONGHORNCTL_VERSION="${LONGHORNCTL_VERSION:-v1.12.1}" | |
| LONGHORN_UI_NODE_PORT="${LONGHORN_UI_NODE_PORT:-30080}" | |
| LONGHORN_NAMESPACE="longhorn-system" | |
| LONGHORN_MANAGER_IMAGE="${LONGHORN_MANAGER_IMAGE:-docker.io/dauren2495/longhorn-manager:localci-20260814-055609-m87b4c88-i183eea2}" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Read-only: print current host IRQ / workqueue / RPS CPU masks compactly. | |
| # Changes NOTHING. No arguments, no root strictly required (some files may be | |
| # unreadable without it, shown as '?'). | |
| set -uo pipefail | |
| log() { echo "$(date '+%Y-%m-%d %H:%M:%S') $*"; } | |
| compact() { | |
| # reads mask values on stdin, prints "value (xN)" groups on one line |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Steer host kernel work (IRQ / workqueue / RPS) away from SPDK CPUs. | |
| # | |
| # Usage: steer-away-from-spdk.sh <spdk_cpu_mask> | |
| # <spdk_cpu_mask> hex bitmask of CPUs used by spdk_tgt, e.g. 0x3 (CPU 0,1) | |
| # | |
| # It computes "all online CPUs AND NOT spdk_mask" and pins: | |
| # - IRQ smp_affinity (default + per-IRQ) | |
| # - unbound workqueue cpumask (global + per-workqueue) | |
| # - RPS rps_cpus on physical NICs |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| set -euo pipefail | |
| for h in "$@"; do | |
| echo "=== Cleanup: ${h}.n3r ===" | |
| ./ceph-v2-manage.sh cleanup -l "${h}.n3r" -p ceph-v2 --skip-check -v | |
| done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| set -euo pipefail | |
| HOST_FILE="" | |
| HOSTS=() | |
| usage() { | |
| echo "Usage: $0 [--file <hosts-file>] [hostname ...]" | |
| echo "" | |
| echo "Verifies that hosts are fully removed: no daemons, not in host list, not in crush map." |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| set -euo pipefail | |
| POLL_INTERVAL=10 | |
| TIMEOUT=1800 # 30 minutes | |
| HOST_FILE="" | |
| HOSTS=() | |
| MODE="drain" # drain or check | |
| usage() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| set -euo pipefail | |
| POLL_INTERVAL=10 | |
| TIMEOUT=1800 # 30 minutes | |
| HOST_FILE="" | |
| HOSTS=() | |
| MODE="drain" # drain or check | |
| usage() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| set -euo pipefail | |
| POLL_INTERVAL=10 | |
| TIMEOUT=1800 # 30 minutes | |
| HOST_FILE="" | |
| HOSTS=() | |
| MODE="drain" # drain or check | |
| usage() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| set -euo pipefail | |
| HOST_FILE="" | |
| HOSTS=() | |
| usage() { | |
| echo "Usage: $0 [--file <hosts-file>] [hostname ...]" | |
| echo "" | |
| echo "Checks if CRUSH weight is zero for each specified host." |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| set -euo pipefail | |
| HOST_FILE="" | |
| HOSTS=() | |
| usage() { | |
| echo "Usage: $0 [--file <hosts-file>] [hostname ...]" | |
| echo "" | |
| echo "Checks if CRUSH weight is zero for each specified host." |
NewerOlder