Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for running Slurm commands from Apptainer environment #2

Open
hansemro opened this issue Apr 18, 2023 · 1 comment
Open
Labels
enhancement New feature or request

Comments

@hansemro
Copy link
Contributor

hansemro commented Apr 18, 2023

To make Slurm commands work from within an Apptainer environment (from a compute node), the container needs the following:

  • Some bindings from the compute node:
    • /var/spool/slurmd/
    • /run/slurm/ : contains active slurm configuration (conf which is symlinked to /var/spool/slurmd/conf-cache)
      • this path is used by slurm client utilities
    • /run/munge/
  • Slurm 22.05.5 (installed from local yum repo on Klone)
  • Add slurm user to /etc/passwd and /etc/group
    • As described in HYAK101 tutorial.

From initial testing, I have been able to use slurm tools from a Rocky Linux 8 container (which is what the host environment is based on). However, more work will be required to get slurm working from a non-RHEL8 distribution (such as Ubuntu).

Although the HYAK101 tutorial describes some of the steps to get Slurm working, it yields a less reproducible container as it fetches files from Klone's host environment rather than off the internet.

@hansemro hansemro added the enhancement New feature or request label Apr 18, 2023
@hansemro
Copy link
Contributor Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant