Hello,

Thank you for the reply. There are two accounts on this cluster. What I was 
primarily trying to do was define a default QOS with a partition. My idea was 
to use sacctmgr to create an association between the partition, the QOS and a 
group of users. In other words to place this group of users in the same account 
– with access to the gpu partition and a specific QOS. This does appear to 
work, however perhaps I don’t fully understand the logic. So, when I submit 
using…

sbatch -A gpuusers -p gpus slurm.serial  -- that works as expected and the 
correct QOS is selected

sbatch -A gpuusers slurm.serial  -- that fails since the cluster assumes that 
the default partition is called batch (and submission to batch are not allowed 
for users in “gpuusers”). So that does make sense, however I had hoped that the 
command..

sacctmgr add user=djb1 account=gpuusers Partition=gpus

would assign the “gpus” as the default partition for users in the “gpuusers” 
group. However, that idea doesn’t appear to work.. Does anyone please have any 
comments? Am I going about this in the wrong way?

Best regards,
David


From: Lachlan Musicman [mailto:[email protected]]
Sent: Wednesday, February 15, 2017 9:57 PM
To: slurm-dev <[email protected]>
Subject: [slurm-dev] RE: Configuring slurm accounts

If you are only in one account, you don't need to list it.
What version of slurm are you using? Someone else mentioned needing to restart 
slurmctld to users to stick. Which is not something I've experienced, but try 
that maybe?
I am presuming that your slurm.conf is set up correctly for accounts?
I tend to use user=<name> rather than user <name>
sacctmgr add user=djb1 account=gpuusers Partition=gpus

Do you see your user in:
sacctmgr list associations

?
cheers
L.

------
The most dangerous phrase in the language is, "We've always done it this way."

- Grace Hopper

On 16 February 2017 at 01:41, Baker D.J. 
<[email protected]<mailto:[email protected]>> wrote:
PS.. please note the typo in my sbatch command.. it should be….

sbatch -A gpuusers slurm.serial

David

From: Baker D.J.
Sent: Wednesday, February 15, 2017 2:32 PM
To: slurm-dev <[email protected]<mailto:[email protected]>>
Subject: Configuring slurm accounts

Hello,

I’m attempting to configure a slurm account and I suspect I’m missing something 
fundamental. As a test I’ve created a partition called “gpus”, a QOS called 
“fast” and an account called “gpuusers”. I’m attempting to ensure that the 
member of the account, gpuuser, only have access to the partition, gpus, with 
QOS fast. So this is what I tried..

sacctmgr -i add qos name=fast …
sacctmgr create account gpuusers DefaultQOS=fast
sacctmgr modify account gpuusers set qoslevel=fast
sacctmgr add user djb1 account=gpuusers Partition=gpus

I’m I correct in thinking that those associations  limit members of the account 
to the partition gpus with QOS=fast or have I made a fundamental error? When I 
try to submit a job as djb1, for example “sbatch –q gpuusers slurm.serial”, I 
find….

sbatch: error: Batch job submission failed: Invalid account or 
account/partition combination specified

Any help with this would be appreciated, please.

Best regards,
David

Reply via email to