Hi;
After I try to create a user again (without deleting the user), You can
modify (create actually) the user using:
sacctmgr create user name=foo Defaultaccount=xyz set
partition=par1,par2,par3
This command create 3 different associations, if there arn't already.
You can see result using:
sacctmgr show assoc where user=foo
Ahmet M.
21.08.2020 23:51 tarihinde mercan yazdı:
Hi;
I think You can not update user's partition:
https://slurm-dev.schedmd.narkive.com/2UnWaNQJ/setting-a-users-s-partition-with-sacctmgr
It is a part of the assosiation and it can be set at creating user as
an option:
https://slurm.schedmd.com/accounting.html#database-configuration
'Accounting records are maintained based upon what we refer to as
an Association, which consists of four elements: cluster, account,
user names and an optional partition name. Use the sacctmgr command to
create and manage these records.'
'Associations can also be created that are tied to specific
partitions. When using the "add user" command of sacctmgr you can
include the Partition=<PartitionName> option to create an association
that is unique to other associations with the same Account and User.'
But you can delete and recreate user.
Ahmet M.
21.08.2020 22:38 tarihinde Matthew BETTINGER yazdı:
Maybe it's Friday but I cannot for the life of me figure out how to
update a user's partitions.
Just trying to add a user access to another partition.
sacctmgr modify user where name=foo set partition=par1,par2,par3
Use keyword 'where' to modify condition
Tried pretty much all the permutations of this but not the correct
one. These sacctmgr commands are pretty tricky if you do not use
them all of the time.
Thanks.
M