[arm-allstar] LOG

Doug Crompton wa3dsp at gmail.com
Mon Sep 3 12:22:02 EDT 2018


Luc,

 When using an SD card as in the Pi we limit writes to the card itself
therefore all logs are to a tmp filesystem or in other words to volatile
RAM. If you do a 'df' command at the Linux prompt you will see what I mean -

# df
Filesystem     1K-blocks    Used Available Use% Mounted on
/dev/root        3762048 1594272   1956956  45% /
devtmpfs          474584       0    474584   0% /dev
tmpfs             479192       0    479192   0% /dev/shm
tmpfs             479192   12344    466848   3% /run
tmpfs             479192       0    479192   0% /sys/fs/cgroup
tmpfs             479192      32    479160   1% /tmp
tmpfs              51200     412     50788   1% /var/log
/dev/mmcblk0p1    102182   19610     82572  20% /boot
tmpfs              95840       0     95840   0% /run/user/0

All of the filesystems defined tmpfs are in RAM. This includes /var/log and
all directories below it.

f you truly want to save data on an ongoing basis I would recommend
installing a USB stick. 32G or more USB sticks are very inexpensive.

You can either specifically mount it in /etc/fstab or make sure that devmon
is running using the following line - This could be the first line in
/etc/rc.local -

# check if devmon is running, if not running,  start it
pgrep devmon &> /dev/null || /usr/bin/devmon &> /dev/null

Then direct all things you want to keep to the USB stick.

There are other ways like sending the data to another computer but just
putting it on a USB stick is the easiest. I do this on my hubs storing logs
there and it has worked well. Here is what it looks like in my case in
fstab -

/dev/sda1       59374732 1520772  54814780   3% /media/MS1

I named the stick MS1. It is a 64G stick and after a year of logging has 3%
used!

And yes this could be the same USB stick that you do backups to using
file-backup.sh


*73 Doug*

*WA3DSP*

*http://www.crompton.com/hamradio <http://www.crompton.com/hamradio>*


On Mon, Sep 3, 2018 at 11:54 AM "Luc Drolet VE2LUQ via ARM-allstar" <
arm-allstar at hamvoip.org> wrote:

> Hello everyone,
>
> I have a small problem with my CDR-CSV file in / var / log /
> this file sometimes disappears ???, I ask myself a question which I
> believe,
> when I made an update of our asterisk version,
> in ssh mode "admin menu" # 1, the file CDR-CSV who disappears but I'm not
> sure!
>
> I installed the supermon 6.0 in our repeater and I also like this web page
> very good job
> Is it because I installed this web page that I have a bug on the CDR-CSV
> file?
>
> I use private NODES for your information.
>
> to get the CDR-CSV file, I go back to the 9-Start bash shell interface
> menu,
>  and execute this command
> "mkdir / var / log / asterisk / cdr-csv"
> and everything comes back to normal, skips that I lost my LOG
>
> Thank you for helping us
> Have a good day
> Luc
> VE2LUQ
> _______________________________________________
>
> 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