Write the site file for a cluster¶
The site file tells eb-local where each Slurm job’s node-local disk is mounted, which parallel file systems builds must avoid, and which salloc line to suggest outside a job.
A build with EasyBuild refuses to start without one; eb-local env, eb-local dev and eb-local eb work without it.
These steps write the site file from a template, install it beside the program, and check it on a compute node.
Before you start¶
eb-local installed in one place for every user, as Install eb-local describes, and a shell as root or as the account that owns the program.
How Slurm mounts a job’s node-local disk: the directory the mounts are in, the name of each job’s mount in it, and the file system type. Each job’s mount must be a mount of its own, owned by the job’s user, with the job id in its name.
The paths of the parallel file systems the nodes mount, such as
/scratch.
Write the file¶
List the templates eb-local carries, and their placeholders:
eb-local site listslurm placeholders: node_local_root, node_local_mount, node_local_fstype, shared_scratch, partition workstation placeholders: prefix
slurmis for any Slurm cluster whose jobs get a node-local disk.Print the file with your values:
eb-local site show slurm --set node_local_root=/local --set shared_scratch=/scratch# eb-local site file for a Slurm cluster whose jobs get a node-local disk. # eb-local site install slurm --set node_local_root=/local \ # --set shared_scratch=/scratch [--set node_local_mount=%j] \ # [--set node_local_fstype=ext4] [--set partition=cpu] # Each allocation's mount must be <node_local_root>/<node_local_mount>, with # %u the user and %j the job id, owned by the user; shared_scratch is the # parallel file system builds must avoid. [storage] node_local_root = "/local" node_local_mount = "%u.%j" node_local_fstype = "xfs" shared_scratch = ["/scratch"] [build] allocation_hint = "salloc -p cpu -n 16 -t 02:00:00" # site_toolchains = ["intel/2026.1"] # Users name their own vault for nimvault secrets in ~/.config/eb-local/config.toml: # [nimvault] # vault = "~/vault"
node_local_rootandshared_scratchhave no default, so each needs a--set. The others take their default unless set:node_local_mountis%u.%j, the user name and the job id, so job 4242 of the useralicehas/local/alice.4242;node_local_fstypeisxfs;partition, the partition inbuild.allocation_hint, iscpu.site showchecks the file as eb-local checks a site file it reads, and writes nothing.Install it:
eb-local site install slurm --set node_local_root=/local --set shared_scratch=/scratchwrote /usr/local/bin/config.toml from template slurm; eb-local config shows what it setssite installwritesconfig.tomlbeside the program, mode 644, or the file that--to FILEnames. It writes the file only when it loads as a site file, replaces an existing file only with--force, and never writes through a symbolic link.Add what the template has no placeholder for by editing the file: another parallel file system in
shared_scratch,build.site_toolchains,[build.node_types]or[eessi]. The configuration files lists every key, and the order in which eb-local looks for the site file.eb-local configreads the file again, and names the file and line of a key it refuses.
Keep a template of your own¶
A site that installs eb-local on more than one cluster, or again for each release, can keep its own template in a repository of its own.
A template is a site file with {{name}} placeholders, which --set name=VALUE must fill, and {{name:default}} ones, which take the default unless set.
examples/sites/example.toml in eb-local’s repository is a worked example, for a site that does not exist.
Copy it, change it, and give its path, with a slash, in place of slurm:
eb-local site show ./site.toml --set partition=gpu
eb-local site install ./site.toml --set partition=gpu
eb-local takes a name with a slash as a template file, and a name without one as a template it carries. It reads a template file only when it is a regular file, not a symbolic link, and not writable by group or others.
Check that it worked¶
As a user, print the configuration:
eb-local config
The storage settings and build.allocation_hint name the site file and the line that sets them:
build.allocation_hint salloc -p cpu -n 16 -t 02:00:00 [site /usr/local/bin/config.toml:16]
storage.node_local_root /local [site /usr/local/bin/config.toml:10]
storage.node_local_mount %u.%j [site /usr/local/bin/config.toml:11]
storage.node_local_fstype xfs [site /usr/local/bin/config.toml:12]
storage.shared_scratch /scratch [site /usr/local/bin/config.toml:13]
Then check the mount in a job, where a build would make its workspace:
salloc -p cpu -n 1 -t 00:05:00 srun eb-local doctor
ok eb-local 3.6.0
ok site file /usr/local/bin/config.toml
ok builds use the allocation's own xfs mount /local/%u.%j
ok installs go to /home/alice/eessi: a user install, prefix from default
ok no other EESSI or EasyBuild install variable is set in this shell
ok `eb-local eb` sources /cvmfs/software.eessi.io/versions/2026.06/init/lmod/bash
ok `eb-local eb` exports EESSI_USER_INSTALL=/home/alice/eessi, the prefix selected by configuration
ok Slurm job 6: build space /local/alice.6
info EESSI is not loaded in this shell; eval "$(eb-local env)" loads it with your modules
info eessi-arch-guard is not on PATH; builds, env and dev load EESSI for the target EESSI detects
warn your modules are not on MODULEPATH in this shell; eval "$(eb-local env)"
info no module command in this shell; builds source /cvmfs/software.eessi.io/versions/2026.06/init/lmod/bash
ok rtrash is on PATH: clean and uninstall move files to the trash
Nothing above stops a build.
The Slurm job line shows the job’s mount, which passed every check a build makes.
Outside a job, doctor says info not in a Slurm job in its place, and does not check the mount.
If it fails¶
Message |
Cause |
What to do |
|---|---|---|
|
A site file is there already. |
Compare it with what |
|
Every placeholder with no default is named, in the order the template writes them. |
Add each |
|
|
Use a name from the list. |
|
Each value goes inside a TOML string. |
Give a value without them. |
|
The value on line 10 of the rendered file is not a path from |
Give the absolute path. |
|
|
Name a regular file path with |
|
The template file, or the installed site file, is writable by group or others. |
Run |
|
The file that |
Make root or the program’s owner own it. |
|
|
Set them to where Slurm mounts the job’s node-local disk. |
|
|
Set it to |
Refusals lists every check of the mount.