Le 14/06/2015 08:53, Jordan Willis a écrit :
Hello,
Thanks for answering my questions over the past few weeks. I have
enabled slurmdbd and it seems to connect fine to my controller. I then
added a cluster,
sacctmgr add cluster my_new_cluster
1. Should my_new_cluster match the ClusterName in slurm.conf?
Yes. If this not currently the case, fixing this should also fix 2/ and 3/.
4. When adding users, is there anyway to automatically add the users in
/etc/passwd? How do the accounts of a person submitting get linked with
the accounts added by sacctmgr add user
No, slurm has no control over /etc/passwd file since POSIX users could
also be hosted in an LDAP directory or so. You have to write your own
scripts to add users in both SlurmDBD and /etc/passwd, not a big deal
though :)
You have to mind there are 3 levels of user/account involved with SlurmDBD:
- POSIX users (in /etc/passwd or LDAP)
- SlurmDBD users
- SlurmDBD accounts
POSIX and SlurmDBD users must share the same name/login, so the mapping
is direct. Then users can control their jobs account using --account
submission parameter. If not given, the default SlurmDBD account
associated to their SlurmDBD user is used.
There are also many resources available online on this matter:
http://slurm.schedmd.com/slurm_ug_2012/SUG_Oct2012_DBD.pdf
https://www.youtube.com/watch?v=8UfzXnzSmL4&feature=relmfu
http://slurm.schedmd.com/accounting.html
rémi