[arm-allstar] Allmon2 Node Information output problem/full file system

Doug Crompton wa3dsp at gmail.com
Sat May 13 19:52:42 EST 2017


Bob,

It is generally a good idea on a long running system to purge logs
periodically. Attached is a script that I run daily to maintain logs file
sizes for files that can have a tendency to fill up. I use cron to run it
in the middle of the night. This should handle your case well but you can
also use it as an example of how to truncate other logs or files that may
grow large. Some of my systems run for months or more without a reboot and
I have not seen any problems.

05 04 * * * /etc/asterisk/local/truncate_logs

Here is a typical file size comparison -

Filesystem     1K-blocks    Used Available Use% Mounted on
/dev/root        3762048 1497836   2053392  43% /
devtmpfs          467864       0    467864   0% /dev
tmpfs             472180       0    472180   0% /dev/shm
tmpfs             472180   47600    424580  11% /run
tmpfs             472180       0    472180   0% /sys/fs/cgroup
tmpfs             472180     120    472060   1% /tmp
tmpfs              51200    1404     49796   3% /var/log
/dev/mmcblk0p1    102182   18366     83816  18% /boot
/dev/sda1       59374732  123312  56212240   1% /media/MS1
tmpfs              94440       0     94440   0% /run/user/0

There is a 64G SD card installed. The /var/log never exceeds about 5-10%. I
am also not seeing the errors you are getting so I suspect it might have
been something you possibly changed. I asked Paul to comment on it.

I probably should put this out there for everyone in an update so they have
it at their disposal.


On Sat, May 13, 2017 at 3:40 PM, "Bob Schmidt via arm-allstar" <
arm-allstar at hamvoip.org> wrote:

> Hello all,
>
> On one of my nodes that has "Supermon" and "swissarmy" configured and
> enabled, I noticed that the “Node Information” column in Allmon2’s output
> was returning bad data and I was also getting a swap related error when
> using an editor.
>
> Further investigation revealed that /var/log/asterisk/astdb.txt was not
> being updated because the /var/log file system was full. Specifically,
> /var/log/httpd/error_log had grown very large due to over 818,000 entries
> of the following message:
>
> cat: /home/irlp/custom/vutil_calls: No such file or directory
>
> I did the following to resolve the problem pending further research:
>
> systemctl stop httpd
> mv -i /var/log/httpd/* /root
> mkdir –p /home/irlp/custom
> touch /home/irlp/custom/vutil_calls
> systemctl start httpd
>
> If you don't want to save the logs as I did, you could simply delete them.
>
> All is working fine again, however it would be better to resolve the
> problem at its root cause.  When time permits, I intend to take a closer
> look at swissarmy and supermon as they have IRLP related code in them.
>
> NOTE: I don't discount the possibility that I somehow caused my own
> problem.
>
> Nevertheless, if any of you are experiencing similar behavior, the above
> is something to check.  I hope this helps someone.
>
> 73,
> Bob, N9GMT
>
>
> --
> This message has been scanned for viruses and
> dangerous content by MailScanner, and is
> believed to be clean.
>
> _______________________________________________
>
> arm-allstar mailing list
> arm-allstar at hamvoip.org
> http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar
>
> Visit the BBB and RPi2/3 web page - http://hamvoip.org


More information about the arm-allstar mailing list