我想将Slurm作业调度系统中的用户从当前组移到其他组。 但是当我尝试明显的时候会出现错误:
sacctmgr modify user where name=example set account=groupb
我得到的唯一方法是删除它,并用新的帐户再次创build:
sacctmgr delete user example account=groupa sacctmgr add user example account=groupb
谢谢
我来了这个答案,并希望分享我的见解:在斯普林姆一切都是围绕协会。 Zhens的回答是绝对正确的。 只需为该用户添加一个新的关联,并删除旧的关联。 甚至离开旧的关联,以便用户可以决定在哪个帐户下运行作业(请参阅srun的-U选项)
sacctmgr remove user where user=example and account=oldgroup sacctmgr add user name=example defaultaccount=newgroup ...
我发现另一种使用多个帐户的方式,并设置默认的添加到最后一个:
sacctmgr add user example account=groupb sacctmgr modify user where user=example set defaultaccount=groupb