[arm-allstar] SD Card full will no write anything
David McGough
kb4fxc at inttek.net
Fri Mar 27 17:43:42 EDT 2020
Hi Danny,
Yes, agreed, rebooting should only be used as a one-time fix to rapidly
get everything happy again. Then, setup a log management strategy for the
long term, so that the full filesystem issue doesn't reoccur.
73, David KB4FXC
On Fri, 27 Mar 2020, Danny K5CG wrote:
> Yes you are 100% correct David. I mispoke and actually found this out
> myself the other day because Supermon would not display callsigns from
> astdb.txt which is also on the tempfs filesystem in RAM. the astdb
> update juob could not build a file because /var/log/asterisk was full.
> That's what led me to the YUGE btmp and btmp.1 files in /var/log.
>
> Rebooting solves it but if you are running a hub for a club and there
> are users who stay connected, I'd rather not do that.
>
> Danny
>
> ----- Original Message -----
> > From: "David McGough" <kb4fxc at inttek.net>
> > To: "ARM Allstar" <arm-allstar at hamvoip.org>
> > Cc: "k5cg" <k5cg at hamoperator.org>
> > Sent: Friday, March 27, 2020 4:02:36 PM
> > Subject: Re: [arm-allstar] SD Card full will no write anything
>
> > Guys,
> >
> > Remember, on HamVoIP /var/log a tmpfs filesystem---a RAMdrive. It's not
> > stored on the SD card. So, the simplest way fix this space issue is
> > simply reboot; rebooting obviously removing all the contents from
> > /var/log, which might not be desirable, if you're wanting to analyze any
> > of this data.
> >
> > 73, David KB4FXC
> >
> >
> >
> > On Fri, 27 Mar 2020, "Danny K5CG via ARM-allstar" wrote:
> >
> >> The file /var/log/btmp is the log of access attempts by people trying to get
> >> into your node.
> >
> > For a list of source IPs try running this
> >
> > lastb -a | awk '{print $10}' | grep -v ^192 | sort | uniq | sed '/^$/d'
> >
> > Change the ^192 there to your local IP subnet's first octet like ^10 or ^172
> > etc.
> >
> > I would recommend...
> > 1. finding out how it is that your node is so accessible to hacking attempts and
> > secure it.
> > 2. install a USB flash drive and mounting is as /var/log to get some space off
> > your MicroSD card.
> >
> > Danny
> > K5CG
> >
> >
> >
> >
> > ----- Original Message -----
> >> From: "ARM Allstar" <arm-allstar at hamvoip.org>
> >> To: "ARM Allstar" <arm-allstar at hamvoip.org>
> >> Cc: "Wayne Jauss" <jauss at pacbell.net>
> >> Sent: Friday, March 27, 2020 2:20:26 PM
> >> Subject: [arm-allstar] SD Card full will no write anything
> >
> >> So I thought I would share. I am LinuxÃÂ challenged, but found this out of need.
> >> My SD card had filled up maybe due to my using a public static IP, maybe due to
> >> allowing port forwarding on my router, but I can't be the only person with this
> >> trouble ever. I had filled my SD card due to the file /var/log/btmp getting too
> >> big so my solution was to writing a cron job as following,10,25,40,55 * * * *
> >> /usr/local/sbit/trimlog.sh /var/log/btmp 1000This checks the file every 15 mins
> >> and truncates the file and fixed it for me. Like I said, I am a newbie and any
> >> suggestions from the experts would be helpful. Input is very useful.Thanks for
> >> all you guys are doing.Wayne Jauss / N6TBQ
> >> _______________________________________________
> >>
> >> 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/4 web page - http://hamvoip.org
> > _______________________________________________
> >
> > 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/4 web page - http://hamvoip.org
>
More information about the ARM-allstar
mailing list