Skip to main content

deploy-slurm-cluster

Deploy a Slurm GPU cluster with DeepOps and prove it works. Use when asked to deploy, install, or rebuild Slurm on one or more GPU servers with this repository.

소스 정보

저장소
NVIDIA/deepops
최근 소스 활동
2026년 7월 14일 15:16
감지된 SKILL.md 언어
영어
스타
1,477
포크
361

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
name
deploy-slurm-cluster
description
Deploy a Slurm GPU cluster with DeepOps and prove it works. Use when asked to deploy, install, or rebuild Slurm on one or more GPU servers with this repository.
# Deploy a Slurm GPU cluster ## Preconditions - Ubuntu 22.04/24.04 or RHEL/Rocky 8/9 hosts you may fully manage (driver installs may reboot them; no active users or workloads). - SSH access from the provisioning machine to every host as a sudo-capable user. - Run everything from the repository root. ## Procedure 1. Prepare the environment and verify it: ```bash git submodule update --init --recursive ./scripts/setup.sh cp -r config.example config ``` 2. Edit `config/inventory`: put the controller under `[slurm-master]` and compute nodes under `[slurm-node]` (a single machine can be both). Set the connection user in `[all:vars]` if not root. 3. Preflight — must pass before deploying: ```bash python3 scripts/validation/deepops_doctor.py --remote --json ``` Fix anything in `failures` (each check's `detail` says how) and rerun. 4. Deploy: ```bash ansible-playbook -l slurm-cluster playbooks/slurm-cluster.yml ``` This installs NVIDIA drivers, builds and configures Slurm, and sets up munge, NFS, and node health checks. Expect roughly 30–60 minutes on a first run. 5. Validate on a cluster node — the success signal is this, not the play recap: ```bash python3 scripts/validation/validate_slurm.py --json ``` Require `"ok": true` with `gpu_job_ok: true` and `nodes_unavailable: 0`. ## Failure branches - **Playbook fails on a transient error** (mirror timeout, apt lock, network blip): rerun the same playbook; it is idempotent. A converged rerun ends with `changed=0`. - **`nvidia-smi` works in the validator's srun job but "fails" over SSH**: that is the login GPU-hide behavior, not an error (see AGENTS.md gotchas). - **`gpu_job_ok: false` with driver errors**: follow `skills/diagnose-driver-install/`. - **Node shows `down` or `drained` in `node_states`**: check `scontrol show node <name>` for the reason; after fixing, resume with `scontrol update nodename=<name> state=resume`. - **Wrong or stale host facts after reprovisioning a node**: rerun with `--flush-cache`.
GitHub에서 보기