Verify Cluster¶
Verify that the Slurm cluster and Kubernetes are deployed successfully on the service cluster after booting the nodes.
Overview¶
After booting the nodes, verify the following:
- Required Slurm services are active and compute nodes report an
idlestate. - GPU-enabled Slurm nodes complete GPU driver installation.
- The Slurm PAM feature restricts SSH access to compute nodes to the duration of an active job.
- Kubernetes pods and nodes on the service cluster are healthy.
Prerequisites¶
- Nodes are booted and provisioned.
- Slurm and/or Kubernetes have been deployed (see Setup Slurm or Setup Service K8S).
- For GPU verification: GPU-enabled Slurm nodes are configured (see Slurm With Gpu).
- For PAM verification: External LDAP is deployed (see Deploy External LDAP).
Procedure¶
Verify Slurm Cluster¶
-
On the Slurm controller node, verify the required services are running:
Run on: Slurm control nodesystemctl status munge systemctl status slurmctld systemctl status slurmdbd systemctl status mariadbConfirm that each service is active (running).
-
Verify the node status with
sinfo:Run on: Slurm control nodesinfoEnsure that the compute nodes are listed and the node state is
idle.
Verify Slurm Cluster with GPU¶
-
On Slurm nodes that have GPUs, it may take some time for Slurmd to start because of the GPU driver installation. To view the logs during this process, run:
Run on: GPU compute nodetail -f /var/log/cloud-init-output.log
Note
- The CUDA installation path on the OIM and nodes must be
{client_share_path}/slurm/cuda. - The
client_share_pathis the same as mentioned instorage_config.ymlfornfs_slurm.
Verify PAM Feature for Slurm¶
Slurm PAM restricts SSH access to compute nodes for non-root users. You can log in only while their job is actively running on the node. After the job is completed, you are automatically logged out.
-
On the login node, switch to the LDAP user:
Run on: login nodessh <ldap_user>@<login_node_hostname> sbatch job.sh -
While the job is running, SSH as
<ldap_user>to the Slurm node where the job is running. After the job is completed,<ldap_user>is logged out.
Verify Kubernetes on the Service Cluster¶
-
Run the following commands on the Kubernetes controller node:
Run on: K8s control plane nodekubectl get pods -A -o wide kubectl get nodes -o wide
Verification¶
| Check | Command | Expected Result |
|---|---|---|
| Slurm services active | systemctl status munge slurmctld slurmdbd mariadb |
All active (running) |
| Slurm nodes idle | sinfo |
Compute nodes listed, state idle |
| PAM restricts SSH | ssh <ldap_user>@<node> outside job runtime |
Access denied after job completes |
| K8s nodes ready | kubectl get nodes -o wide |
All Ready |
| K8s pods running | kubectl get pods -A -o wide |
All Running |
Next Steps¶
- Slurm With GPU -- Configure GPU support for Slurm.
- Deploy External LDAP -- Set up centralized authentication for the PAM feature.
