original text from customer : The customer (University-StAndrews) had some problems with changes getting lost (see PARM 19311). During discussions with him about the issue, he has requested that SLURM be improved so that there is an scontrol command that will create a good SLURM configuration file from the running configuration ( a bit like in PBS Pro). This would mean that he could use scontrol to change his configuration on the fly, and when happy generate good configuration files rather than have to create the configuration file and do potentially many restarts to re-read the file (scontrol reconfigure)before he gets it correct. =============================================================================== Created new scontrol option: “scontrol write config” Uses same slurm functions used by “scontrol show config” for gathering key/value pairs as stored in the slurm_ctl_conf structure. Also gathers node and partition info from the node_info and partition_info structures respectively. Uses slurm hostlist functions for generating a hostlist format for nodes that have like attributes for writing node information to the generated conf file. I am not writing all the possible node attributes on the node definition line. I have essentially picked certain ones. Comments? Of course user can manually edit these after the fact. Since many of the values within the key/value pairs are too verbose to be used in an actual slurm.conf they are altered. For example “UNLIMITED” is changed to “0” (per slurm.conf man page, but perhaps UNLIMITED is ok?), SUSPEND_TIME=NONE is changed to SUSPEND_TIME=0. NULL values, empty values and N/A values are commented out. KeepAliveTime=SYSTEM_DEFAULT is also commented out (didn’t know a value for SYSTEM_DEFAULT). Note: If “DefMemPerCPU” is set to UNLIMITED in the conf file then the value is stored as “2147483647”. Slurm.conf man page says this value is in megabytes – so that value can cause problems. I am setting it to “0” if it is that value. Comments? I am grouping key/value pairs in the generated conf file according to perceived groups (accounting, power, logs, etc.) Attached is a conf file generated by this new command.
This is a duplicate of 1099. Need to go ahead and close *** This ticket has been marked as a duplicate of ticket 1099 ***