Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I want to move a user in Slurm job scheduling system ,from its current group to other group. But there is errors when I try the obvious:

sacctmgr modify user where name=example set account=groupb

The only way I get is deleting it and creating again with the new account:

sacctmgr delete user example account=groupa
sacctmgr add user example account=groupb

Thanks

share|improve this question
add comment

2 Answers

I came over this answer and want to share my insight here: In Slurm everything is centered around associations. Zhens answer is absolutely right. Just add an new association for that user and delete the old one. Or even leave the old association so the User might decide under which account to run a job (see -U option of srun)

sacctmgr remove user where user=example and account=oldgroup
sacctmgr add user name=example defaultaccount=newgroup ...
share|improve this answer
add comment
up vote 1 down vote accepted

I found another way using multiple accounts and setting the default one to the last one added:

sacctmgr add user example account=groupb
sacctmgr modify user where user=example set defaultaccount=groupb
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.