The cluster config doesn't contain qos rules definitions. It only
contains mappings of qos to users/accounts.
Currently it is impossible to dump and edit qos rules, although
it is possible to add and remove defined qos from/to users.
--Dani_L.
Yes, afaik you can only dump the whole cluster config, not a
specific entity. If you dump the cluster config, also qos rules
are included, so you can modify the rules in the cluster config
and load it.
If you don't want to do that, then just use the sacctmgr
modify option.
Cheers,
Barbara
On 8/5/19 12:02 PM, Daniel Letai
wrote:
The documentation clearly states
dump <ENTITY> <File=FILENAME>
Dump cluster data to the specified file. If the filename is
not specified it uses clustername.cfg filename by default.
However, the only entity sacctmgr dump seems to accept is
<cluster name>.
Glancing over the code at https://github.com/SchedMD/slurm/blob/master/src/sacctmgr/cluster_functions.c#L1006
it doesn't seem like sacctmgr will accept anything other than
a cluster name either.
How can I easily dump to file qos rules, in a way that would
allow me to modify and upload new qos as required?
BTW, just noticed "archive" is not in the 'commands' section
of sacctmgr man, but is treated as a command in later sections
of the man page.