[slurm-users] How do you make --export=NONE the default behavior for our cluster?

Ransom, Geoffrey M. Geoffrey.Ransom at jhuapl.edu
Fri Jun 3 18:39:44 UTC 2022

    We recently added new architectures to our compute and submit nodes and a PATH gets generated based on the type of machine our users log into. Unfortunately, this PATH is architecture dependent but it is getting copied with slurm jobs to the compute nodes which could be a different architecture as the submit node. Right now, running srun inside the sbatch script will fail with linking errors if you submit from a RHEL 8 box and land on a RHEL 7 box since it tries to run the RHEL 8 compiled version due to the PATH environment variable.

Adding "--export=NONE" to the job avoids the problem, but I'm not seeing a way to change this default behavior for the whole cluster.

How do you change/set default options for the cluster for all users so "--export=NONE" is the default behavior?

Is this change likely to break anything unexpected or cause problems?
Our users have NFS mounted home directories so if we removed the ssh non-admin user block they would get a similar/functional environment as they do on the submit nodes.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.schedmd.com/pipermail/slurm-users/attachments/20220603/2d4c134b/attachment.htm>

More information about the slurm-users mailing list