[slurm-users] Problem with assigning user to partition

Mahmood Naderan mahmood.nt at gmail.com
Fri Apr 20 03:56:00 MDT 2018


For both "add user" and "modify user", I see Partitions=
So, how did you conclude that Partitions is only available with "add user"?

[root at rocks7 ~]# sacctmgr remove user where name=test2
 Deleting users...
  test2
Would you like to commit changes? (You have 30 seconds to decide)
(N/y): y
[root at rocks7 ~]# sacctmgr add user test2 Account=diamond Partitions=MONTHLY1
 Adding User(s)
  test2
 Associations =
  U = test2     A = diamond    C = jupiter    P = monthly1
 Non Default Settings
Would you like to commit changes? (You have 30 seconds to decide)
(N/y): y
[root at rocks7 ~]# sacctmgr list association
format=account,user,partition,association
   Account       User  Partition     Assocs
---------- ---------- ---------- ----------
      root
      root       root
   diamond
   diamond      test2   monthly1
     local
     local      hamid
     local    mahmood
     local       test

Is that correct?

Regards,
Mahmood




On Fri, Apr 20, 2018 at 1:55 PM, Loris Bennett
<loris.bennett at fu-berlin.de> wrote:
> From 'sacctmgr --help':
>
>        add user           - Accounts=, AdminLevel=, Clusters=,
>                             DefaultAccount=, DefaultQOS=, DefaultWCKey=,
>                             Fairshare=, MaxTRESMins=, MaxTRES=,
>                             MaxJobs=, MaxNodes=, MaxSubmitJobs=, MaxWall=,
>                             Names=, Partitions=, and QosLevel=
>        modify user        - (set options) AdminLevel=, DefaultAccount=,
>                             DefaultQOS=, DefaultWCKey=, Fairshare=,
>                             MaxTRESMins=, MaxTRES=, MaxJobs=, MaxNodes=,
>                             MaxSubmitJobs=, MaxWall=, NewName=,
>                             and QosLevel=,
>                             RawUsage= (with admin privileges only)
>                             (where options) Accounts=, AdminLevel=,
>                             Clusters=, DefaultAccount=, Names=,
>                             Partitions=, and QosLevel=             >
>
> I would interpret this as meaning you can set 'Partitions' when you
> create a user, but you can't change it later using 'modify' as it is
> then only a 'where option'.
>
> So it looks to me like you need to delete your user and recreate it with
> the desired partition.
>
> Cheers,
>
> Loris
>
> PS: In your example you have a typo: MONTHLLY1 with double 'L' - don't
> let that trip you up.
>
> --
> Dr. Loris Bennett (Mr.)
> ZEDAT, Freie Universität Berlin         Email loris.bennett at fu-berlin.de
>



More information about the slurm-users mailing list