[Swan] Log file issues?
Nick Howitt
nick at howitts.co.uk
Mon Jun 28 07:12:13 UTC 2021
On 27/06/2021 23:14, Tom Robinson wrote:
> Hi All,
>
> I have recurring issue with libreswan hogging disk space until I restart
> the daemon.
>
> Notice below that /dev/vda3 (the root volume) is 92% capacity. A simple
> restart of the daemon brings that back to 29%.
>
> I suspect that perhaps a log file handle is not being released. Is there
> a fix for this? How can I confirm the actual cause for this issue?
>
> # df -h
> Filesystem Size Used Avail Use% Mounted on
> devtmpfs 3.9G 0 3.9G 0% /dev
> tmpfs 3.9G 0 3.9G 0% /dev/shm
> tmpfs 3.9G 201M 3.7G 6% /run
> tmpfs 3.9G 0 3.9G 0% /sys/fs/cgroup
> /dev/vda3 8.6G 7.9G 710M 92% /
> /dev/vda1 497M 120M 378M 25% /boot
> tmpfs 783M 0 783M 0% /run/user/0
> # systemctl restart ipsec
> # df -h
> Filesystem Size Used Avail Use% Mounted on
> devtmpfs 3.9G 0 3.9G 0% /dev
> tmpfs 3.9G 0 3.9G 0% /dev/shm
> tmpfs 3.9G 201M 3.7G 6% /run
> tmpfs 3.9G 0 3.9G 0% /sys/fs/cgroup
> /dev/vda3 8.6G 2.5G 6.1G 29% /
> /dev/vda1 497M 120M 378M 25% /boot
> tmpfs 783M 0 783M 0% /run/user/0
> [root at apex ~]#
>
> /Kind regards,/
>
> *Tom Robinson
> **IT Manager/System Administrator
Have you configured the logging or is it logging to syslog? If you
configure loggong yourself you will also have to set up some sort of
logrotate configlet. If you ahve not set up logging, it should log to
syslog (/var/log/secure, mainly, in my case) and logrotate looks after
the log rotation.
More information about the Swan
mailing list