Slurm Scheduler Health Check Failed: GPU Node Drain Triage
Diagnose Slurm node DRAIN state caused by scheduler health check failed (NHC): inspect NVML visibility, Xid/ECC faults, zombie CUDA PIDs, and safe RESUME steps.
When Slurm drains a GPU node with Reason=NHC or scheduler health check failed, keep the node drained until you inspect scontrol show node Reason, /var/log/nhc.log, dmesg Xids, and nvidia-smi -q. Never blindly run State=RESUME before verifying both NVML health and ECC/link counters.
- Symptom
sinfo -R: DRAINED Reason: Scheduler health check failed- Root cause
- Site HealthCheckProgram detected a failed GPU, ECC/Xid fault, zombie CUDA PID, IB link drop, or host OS resource failure.
- Recommended fix
- Run sinfo -R and scontrol show node <node> to preserve the exact Reason string and timestamp.
- How Denpex helps
- Denpex investigates Slurm Scheduler Health Check Failed: GPU Node Drain Triage using the evidence you provide or your connected workload collects. Earlier rank, host or application evidence is needed to distinguish an initiating failure from a downstream report.
What this failure is
Slurm's HealthCheckProgram (typically LBNL NHC or a site NVML/DCGM check) exited non-zero and automatically transitioned the compute node into DRAIN state.
Is this what broke your run? Paste your log.
You're reading about Slurm Scheduler Health Check Failed: GPU Node Drain Triage. Paste your own traceback and relevant evidence for an investigation of your workload, with a next action or a specific missing fact. A reference entry does not establish your cause. No account or card for the free diagnosis. Review data handling before submitting sensitive logs.
Before uploading, review cloud data handling and local options.
Upload your log file. Large files are processed in your browser. Only selected evidence is submitted when you run diagnosis.
Why it happens (the mechanism)
Node Health Checks drain GPU nodes when they detect missing GPUs, NVML timeouts, uncorrectable ECC or failed row remapping, lingering zombie GPU processes after job teardown, offline InfiniBand HCAs, or full local scratch filesystems.
What you'll observe
- GPU nodes drop out of the Slurm idle pool marked DRAIN with health check failed
- Multi-node jobs sit pending with ReqNodeNotAvail while capacity drains away
Common symptoms and what they mean
Check possible explanations against the incident evidence. A matching symptom alone does not establish its cause.
| Symptom | Possible explanation |
|---|---|
| sinfo -R lists Reason: Scheduler health check failed / NHC: check_nvml failed | Site HealthCheckProgram detected a failed GPU, ECC/Xid fault, zombie CUDA PID, IB link drop, or host OS resource failure. |
| scontrol show node reports State=IDLE+DRAIN with HealthCheckProgram reason | Site HealthCheckProgram detected a failed GPU, ECC/Xid fault, zombie CUDA PID, IB link drop, or host OS resource failure. |
Which systems are affected
- Slurm HPC and AI training clusters
- Clusters running LBNL NHC or custom DCGM/NVML prolog/epilog checks
How to confirm this is the problem
Use this checklist to test the hypothesis against a small reproduction. No single line proves the root cause, so preserve the preceding events and compare one variable at a time.
- ✓Verify HealthCheckProgram exits 0 manually on the node, dcgmi diag -r 2 passes, and scontrol show node returns IDLE without immediate re-drain.
Root cause
- Site HealthCheckProgram detected a failed GPU, ECC/Xid fault, zombie CUDA PID, IB link drop, or host OS resource failure.
The fix and how to prevent it
How to fix it
- Run sinfo -R and scontrol show node <node> to preserve the exact Reason string and timestamp.
- Inspect /var/log/nhc.log (or Slurm slurmd logs) on the drained host to read the exact failing check.
- Run dmesg -T | grep -iE 'NVRM: Xid|ECC|AER' and nvidia-smi -q -d ECC,ROW_REMAPPER alongside ibstat.
- If the cause was a stale zombie process or cleared transient condition, verify dcgmi diag -r 2 passes before running scontrol update NodeName=<node> State=RESUME. Keep hardware-faulted nodes drained for RMA.
Step-by-step remediation
- 1Check sinfo -R and scontrol show node <node> before changing node state.
- 2Read /var/log/nhc.log, host dmesg Xid lines, and nvidia-smi ECC counters.
- 3Run dcgmi diag -r 2 on clean nodes before State=RESUME, or keep drained for OEM RMA.
How to prevent it
- Run automated NHC epilog checks between jobs so bad GPUs never poison subsequent users
- Alert on drain-reason frequency per node serial to catch flaky risers or cooling loops early
Save this diagnosis and catch the next crash automatically
All root cause, fix, and prevention steps above are free to read. Create a free account with any email or GitHub to keep your saved diagnosis history across the encyclopedia and run cloud checks, or use a work email below for the 30-day Team evaluation. No card required.
Or start a 30-day free Team trial (work email)
Verified work email unlocks all 14 fleet diagnostic tools, Slack alerts, and team history for 30 days. No card and no automatic charge.
Searchable error signature
sinfo -R: DRAINED Reason: Scheduler health check failed
NHC: ERROR: check_gpu_health failed: uncorrectable ECC or missing GPU deviceUse this text as a lookup key in logs and upstream issue trackers. It is not presented as a captured customer log. Confirm the cause from your own preceding events, versions, configuration and the cited references.
Diagnose your own log automatically
The root cause and fix steps above stay free. Create a free account to analyze full job logs, attribute the first failed rank, and keep saved incident history.
Sign up free. Analyze your cluster logsNo credit card. Daily allowance follows verified trust tier. Instant access.
Why the recommended fix works
Preserving the NHC log and checking dmesg/ECC before clearing DRAIN prevents silently returning a hardware-faulted node into multi-node training allocations.
Code examples
sinfo -R
scontrol show node <node> | grep -iE 'State=|Reason='
dmesg -T | grep -iE 'NVRM: Xid|ECC|AER'
nvidia-smi -q -d ECC,ROW_REMAPPERThis snippet illustrates the entry-specific check. Verify the installed versions, permissions, target and workload context before using it. A command or API example is not proof of recovery.
Best practices by model family
| Model / Stack | Recommendation | Notes |
|---|---|---|
| Zombie PID / full /tmp | Clean epilog residue, verify NHC exits 0, then RESUME | Safe software/host cleanup. |
| Xid 48/64/79/95 or dcgmi diag failure | Keep node DRAINED and open hardware RMA | Do not resume unverified hardware faults. |
With the fix vs without the fix
| Dimension | With the fix | Without the fix |
|---|---|---|
| Node recovery | Inspect NHC log + dmesg + dcgmi diag before RESUME | Blind RESUME black-holes next multi-node training run |
| Fleet reliability | Track recurring drain reasons per node | Same lemon node drains repeatedly every week |
Diagnostic note
“If a node drains repeatedly for the same NHC failure after reboot, log its GPU UUIDs and PCI slots across drains; recurring Xid 79 or IB drops on one node point to hardware or slot seating rather than user jobs.”
Diagnose this failure in VS Code
Select the traceback or open the failed terminal, then run Denpex locally to inspect matched failure patterns, supporting evidence and next checks without uploading the log. Verify recommendations against your workload before changing production.
Install the free VS Code extensionSlurm GPU errors in context
Slurm GPU failures can occur before allocation, during cgroup creation or inside the workload. The hub joins job reason, GRES, memory, node-health and distributed-launch evidence.
Compare related slurm gpu errorsFrequently asked questions
Questions engineers and on-call staff commonly ask about this failure.
Is it safe to run scontrol update State=RESUME right after a health check drain?
What causes NHC to fail right after a GPU job is cancelled?
Don't just read the fix, diagnose your run
The encyclopedia explains documented failure patterns. Denpex investigates your logs, configuration and stack, shows the supporting evidence, and asks for missing details when needed.
Related Infrastructure errors
Dual ISP BGP Route Withdrawal Causing Complete GPU Cloud Region Outage
Infrastructure · critical
Routine UPS Maintenance Triggering Cascading Power and Cooling Failure Across GPU Cloud Region
Infrastructure · critical
Remediation Storm Prevention via Circuit Breaker Pattern in AutoClusters
Infrastructure · high
Network Storage Volume Causing Process Hangs on H100 GPU Nodes
Infrastructure · high