User Tools

Site Tools


tech:slurm

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
tech:slurm [2021/03/29 15:18] – [Modify user accounts] kohofertech:slurm [2022/06/30 14:28] – [Modify user accounts] kohofer
Line 241: Line 241:
   debug*       up   infinite      1   idle linux1   debug*       up   infinite      1   idle linux1
  
-If computer node is **<color #ed1c24>down</color>** or **<color #ed1c24>drain</color>**+If computer node is <color #ed1c24>down</color> or <color #ed1c24>drain</color>
  
 <code> <code>
Line 345: Line 345:
 Display the accounts created: Display the accounts created:
  
-  sacctmgr show account -s   # Show also associations in the accounts+  # Show also associations in the accounts 
 +  sacctmgr show account -s 
 +  # Show all columns separated by pipe | symbol 
 +  sacctmgr show account -s -P 
 +  # 
   sacctmgr show user -s   sacctmgr show user -s
  
 Add user Add user
  
-  sacctmgr add user <usernme> Account=gpu-users Partition=gpu+  sacctmgr add user <username> Account=gpu-users Partition=gpu
  
 Modify user, give 12000 minutes/200 hours for usage Modify user, give 12000 minutes/200 hours for usage
  
-  sacctmgr modify user misegata set GrpTRESMin=cpu=12000,gres/gpu=12000+  sacctmgr modify user <username> set GrpTRESMin=cpu=12000,gres/gpu=12000 
 + 
 +Modify user by removing it from certain account 
 + 
 +  sacctmgr remove user where user=<username> and account=<account> 
 + 
 +Delete user 
 + 
 +  sacctmgr delete user ivmilan 
 +  Deleting users... 
 +  ivmilan 
 +  Would you like to commit changes? (You have 30 seconds to decide) 
 +  (N/y): y 
  
 Restart the services: Restart the services:
Line 366: Line 383:
   systemctl status slurmdbd.service   systemctl status slurmdbd.service
  
 +==== Submit a job to a specific node using Slurm's sbatch command ====
 +
 +To run a job on a specific Node use this option in the job script
 +
 +  #SBATCH --nodelist=gpu03
  
  
Line 1029: Line 1051:
  
 ===== Links ===== ===== Links =====
 +
 +[[https://developer.nvidia.com/cuda-toolkit|CUDA Toolkit]]
 +
 +[[https://docs.nvidia.com/cuda/cuda-installation-guide-linux/index.html|NVIDIA CUDA Installation Guide for Linux]]
 +
  
 https://www.admin-magazine.com/HPC/Articles/Warewulf-Cluster-Manager-Development-and-Run-Time/Warewulf-3-Code/MPICH2 https://www.admin-magazine.com/HPC/Articles/Warewulf-Cluster-Manager-Development-and-Run-Time/Warewulf-3-Code/MPICH2
/data/www/wiki.inf.unibz.it/data/pages/tech/slurm.txt · Last modified: 2022/11/24 16:17 by kohofer