Skip to content

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.

Quick answer

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.
Infrastructure#slurm#nhc#node-drain#gpu-health#nvml#xid

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.

Live diagnosis, no signup

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.

training_logs.txt
No log to hand? Try one:

Upload your log file. Large files are processed in your browser. Only selected evidence is submitted when you run diagnosis.

3 free cloud diagnoses per day

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.

SymptomPossible explanation
sinfo -R lists Reason: Scheduler health check failed / NHC: check_nvml failedSite 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 reasonSite 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

  1. 1Check sinfo -R and scontrol show node <node> before changing node state.
  2. 2Read /var/log/nhc.log, host dmesg Xid lines, and nvidia-smi ECC counters.
  3. 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.

Use your company email, for example alex@yourcompany.com.

Who qualifies?

Company email domains activate the free 30-day Team evaluation (up to 50 diagnoses a day) after an email and domain check, whatever mail provider you use. If we cannot verify your domain automatically, support reviews it: write to support@denpex.com. Free local diagnosis in the editor extension needs no account.

Using a personal email (Gmail, Outlook, Naver, QQ) or solo cluster? Create a free $0 account (no work email required) to save 7-day history and unlock AI fallback, or send a cluster crash log for a live walkthrough.
Already have an account? Sign in

Searchable error signature

search key
sinfo -R: DRAINED Reason: Scheduler health check failed
NHC: ERROR: check_gpu_health failed: uncorrectable ECC or missing GPU device

Use 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 logs

No 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

snippet
sinfo -R
scontrol show node <node> | grep -iE 'State=|Reason='
dmesg -T | grep -iE 'NVRM: Xid|ECC|AER'
nvidia-smi -q -d ECC,ROW_REMAPPER

This 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 / StackRecommendationNotes
Zombie PID / full /tmpClean epilog residue, verify NHC exits 0, then RESUMESafe software/host cleanup.
Xid 48/64/79/95 or dcgmi diag failureKeep node DRAINED and open hardware RMADo not resume unverified hardware faults.

With the fix vs without the fix

DimensionWith the fixWithout the fix
Node recoveryInspect NHC log + dmesg + dcgmi diag before RESUMEBlind RESUME black-holes next multi-node training run
Fleet reliabilityTrack recurring drain reasons per nodeSame 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 extension

Slurm 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 errors

Frequently 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?
No. Always check /var/log/nhc.log, dmesg Xids, and ECC counters first; resuming a node with uncontained ECC or dropped GPUs will crash the next job scheduled onto it.
What causes NHC to fail right after a GPU job is cancelled?
Leftover zombie processes holding GPU memory or uncleaned IPC/tmp artifacts can fail epilog checks if Slurm epilog scripts do not terminate child cgroups cleanly.

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.