What's different? Slurm is replacing LSF as Hazel's job scheduler. During testing, a limited set of nodes is available.

Step 1: Connect to the Cluster

Web browser: Go to https://servood.hpc.ncsu.edu (Open OnDemand) and log in with your Unity credentials.

Terminal: ssh YOUR_UNITY_ID@login.hpc.ncsu.edu

See detailed connection instructions for more options.

Step 2: Navigate to Your Scratch Directory

cd /share/$(groups | awk '{print $1}')/$USER

Your scratch directory is where you run jobs and store working data. See storage documentation for all directory locations and quotas.

Step 3: Create a Batch Script

Create a file called test_slurm.sh with the following contents:

#!/bin/bash
#SBATCH --job-name=slurm_test
#SBATCH --output=test.out.%j
#SBATCH --error=test.err.%j
#SBATCH --ntasks=1
#SBATCH --time=00:10:00

echo "Hello from $(hostname)"
echo "Job ID: $SLURM_JOB_ID"
date

See the batch script template for a full list of #SBATCH options.

Step 4: Submit and Monitor

sbatch test_slurm.sh          # Submit the job
squeue -u $USER               # Check job status (PD=pending, R=running)

When the job completes, check results with: cat test.out.*

Key Slurm Commands

CommandPurpose
sbatch script.shSubmit a batch job
squeue -u $USERView your queued and running jobs
scancel JOBIDCancel a job
sinfo -N -lShow node availability
sacct -j JOBIDView completed job details
sallocStart an interactive session

See job monitoring documentation for more details.

What's Next?

I want to...Go to...
Learn all batch script optionsBatch Script Template
Run a GPU jobGPU Jobs
Run parallel (MPI/OpenMP) jobsParallel Jobs
Run many similar jobs at onceArray Jobs
Understand partitions and resourcesPartitions and Resources
See LSF-to-Slurm command mappingMigrating from LSF
Check test environment statusDeployment Status

Reporting Issues

If you encounter problems during testing, please email help@ncsu.edu with:

  • Job ID (from sbatch output)
  • The batch script you used
  • Error messages or unexpected behavior
  • Output from squeue -j JOBID or sacct -j JOBID