[slurm-users] log rotation for slurmctld.

navin srivastava navin.altair at gmail.com
Fri Mar 13 13:13:04 UTC 2020


Hi,

i wanted to understand how log rotation of slurmctld works.
in my environment i don't have any logrotation for the slurmctld.log and
now the log file size reached to 125GB.

can i move the log file  to some other location and then restart.reload of
slurm service will start a new log file.i think this should work without
any issues.
am i right or it will create any issue.

Also i need to create a log rotate.is the below config works as it is.i
need to do it on production environment so asking to make sure it will work
fine without any issue.

/var/log/slurm/slurmctld.log {
weekly
missingok
notifempty
sharedscripts
create 0600 slurm slurm
rotate 8
compress
postrotate
      /bin/systemctl reload slurmctld.service > /dev/null 2>/dev/null || true
endscript
}



Regards
Navin.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.schedmd.com/pipermail/slurm-users/attachments/20200313/b1edb61a/attachment.htm>


More information about the slurm-users mailing list