Fresh Proxmox fleet audit (2026-07-28) with current VM placements, RAM, CPU, and storage for all 7 reachable hosts. Written to docs/proxmox/AUDIT-2026-07-28.md — supersedes placement data in PROJECT.md sections 4-8. Key audit findings: - CRITICAL: UCS01/02 and netinfra01/02 HA pairs both still on tsys4 storage. tsys4 failure = DNS/DHCP/NTP + LDAP/AD fully dark. These migrations were the #1 recommendation from the previous audit and have not been done. - CRITICAL: 2 of 3 active k3s cnodes (cnode1 + cnode2) on tsys4 NFS. tsys4 failure = etcd quorum lost. - 59% of running VMs still on tsys4 storage (improved from 68%). - cnode VMIDs have changed since PROJECT.md was written (cnode1 is now VMID 906 on tsys9, cnode2 is VMID 705 on tsys7, etc.) Gardening fixes: - Removed duplicate fleet-audit.sh (check.sh + deploy-check.sh already exist for this purpose) - Fixed hardcoded path /home/reachableceo/projects/perfopt in 13 perf/ scripts to use BASH_SOURCE-derived relative paths (per AGENTS.md self-locating scripts convention) - Updated STATUS.md Known Issues with the two critical findings - Updated STATUS.md Pending with prioritized pre-k8s action items - Registered AUDIT-2026-07-28.md in docmap.md 💘 Generated with Crush Assisted-by: Crush:glm-5.2
57 lines
1.8 KiB
Bash
Executable File
57 lines
1.8 KiB
Bash
Executable File
#!/bin/bash
|
|
# deploy-tuning.sh - copies apply-tunings.sh to target hosts and runs it.
|
|
# Usage: bash deploy-tuning.sh [--no-nfs] [--apply] <host> [host...]
|
|
# Default mode is dry-run. Pass --apply to commit. Pass --no-nfs to skip NFS section.
|
|
set -uo pipefail
|
|
|
|
SCRIPT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)/scripts/apply-tunings.sh"
|
|
SSH_OPTS=(-o BatchMode=yes -o ConnectTimeout=8 -o ServerAliveInterval=10 -o StrictHostKeyChecking=accept-new)
|
|
MODE=""
|
|
EXTRA_FLAGS=""
|
|
|
|
HOSTS=()
|
|
for arg in "$@"; do
|
|
case "$arg" in
|
|
--apply) MODE="--apply" ;;
|
|
--dry-run) MODE="" ;;
|
|
--no-nfs) EXTRA_FLAGS="--no-nfs" ;;
|
|
*) HOSTS+=("$arg") ;;
|
|
esac
|
|
done
|
|
|
|
if [ "${#HOSTS[@]}" -eq 0 ]; then
|
|
echo "Usage: $0 <host> [host...] [--apply]"
|
|
echo "Default: dry-run. Pass --apply to commit."
|
|
exit 1
|
|
fi
|
|
|
|
if [ ! -r "$SCRIPT" ]; then
|
|
echo "FATAL: $SCRIPT not found"
|
|
exit 1
|
|
fi
|
|
|
|
for host in "${HOSTS[@]}"; do
|
|
echo "================================================================"
|
|
echo "[$host] deploying apply-tunings.sh (mode: ${MODE:-dry-run})"
|
|
echo "================================================================"
|
|
|
|
if ! ssh "${SSH_OPTS[@]}" "root@$host" 'echo ok' >/dev/null 2>&1; then
|
|
echo "[$host] SKIP: unreachable"
|
|
continue
|
|
fi
|
|
|
|
echo "[$host] uploading..."
|
|
if ! scp "${SSH_OPTS[@]}" "$SCRIPT" "root@$host:/root/apply-tunings.sh" >/dev/null 2>&1; then
|
|
echo "[$host] SKIP: scp failed"
|
|
continue
|
|
fi
|
|
|
|
echo "[$host] running (output below)..."
|
|
echo "----------------------------------------------------------------"
|
|
ssh "${SSH_OPTS[@]}" "root@$host" "chmod +x /root/apply-tunings.sh && bash /root/apply-tunings.sh $MODE $EXTRA_FLAGS" 2>&1
|
|
rc=$?
|
|
echo "----------------------------------------------------------------"
|
|
echo "[$host] exit code: $rc"
|
|
echo ""
|
|
done
|