[slurm-users] Slurmctld and log file

Timo Rothenpieler timo.rothenpieler at uni-bremen.de
Tue Sep 8 10:17:52 UTC 2020


My slurm logrotate file looks like this:

> /var/log/slurm/*.log {
>     weekly
>     compress
>     missingok
>     nocopytruncate
>     nocreate
>     nodelaycompress
>     nomail
>     notifempty
>     noolddir
>     rotate 5
>     sharedscripts
>     size=5M
>     create 640 slurm slurm
>     postrotate
>         systemctl reload slurmd > /dev/null 2>&1 || true
>         systemctl reload slurmdbd > /dev/null 2>&1 || true
>         systemctl reload slurmctld > /dev/null 2>&1 || true
>     endscript
> }

The reload section is probably the most important part yours is missing.


On 08.09.2020 11:41, Gestió Servidors wrote:
> Hello,
> 
> I don’t know why, but my SLURM server (that is running fine) has its 
> slurmdctl.log file with size 0 bytes... so... where is writting logs? It 
> seems that log file has 0 bytes from logrotate process during today’s 
> early morning. My logrotate SLURM conf is this:
> 
> [root at server logrotate.d]# cat slurm
> 
> /var/log/slurmdctl.log
> 
> /var/log/slurmdbd.log
> 
> {
> 
> rotate 7
> 
> notifempty
> 
> missingok
> 
> create
> 
> weekly
> 
> }
> 
> Now, I have run “scontrol reconfigure” and, voilà, file 
> /var/log/slurmdctl.log has appeared... but it doesn’t show log info from 
> logrotate execution to scontrol execution, so I have lost log info...
> 
> Is a logrotate problem or is a SLURM one?
> 
> Thanks.
> 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5361 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://lists.schedmd.com/pipermail/slurm-users/attachments/20200908/44bf8d24/attachment.bin>


More information about the slurm-users mailing list