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@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.


Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to