Page 1 of 1
Disk Root getting full with DB log
Posted: Tue Dec 29, 2020 9:54 pm
by tchandra
Hi Team,
we have one of Nagios Worker server and it has root partition. Recently, we are getting space issue for disk root.Then i checked and found that
Maria db log under /var/log is occupying more space and i am unable to compress it as it is a live log. Can someone please suggest on this to clear the space issue.
Thanks in advance.
Regards,
Chandra
Re: Disk Root getting full with DB log
Posted: Wed Dec 30, 2020 11:13 am
by cdienger
Stop the service and then try deleting the log:
Keep an eye on the log after you restart it. If it growing quickly then that can be a sign of a problem and we'll want to take a look at the log.
Re: Disk Root getting full with DB log
Posted: Tue Jan 05, 2021 11:09 pm
by tchandra
Hi cdienger ,
Thanks for the response.
You suggested to delete the db log after stopped the service. if i can delete the log, is there any problem occurs in Nagios or not.
can you please suggest on this.
Thanks in Advance.
Regards,
Chandra
Re: Disk Root getting full with DB log
Posted: Wed Jan 06, 2021 11:42 am
by cdienger
No, XI doesn't need the log. It does need the database service though so when you go to remove the log do it quickly:
Code: Select all
systemctl stop mariadb
rm -f /var/log/mariadb/mariadb.log
systemctl start mariadb
Make sure nagios is still running afterwards:
and restart it if needed:
Re: Disk Root getting full with DB log
Posted: Thu Jan 07, 2021 11:06 pm
by tchandra
Hi cdienger ,
Thanks for suggestion. Anyhow , we have cleared the space and issue is fixed now.
Re: Disk Root getting full with DB log
Posted: Fri Jan 08, 2021 9:07 am
by scottwilkerson
tchandra wrote:Hi cdienger ,
Thanks for suggestion. Anyhow , we have cleared the space and issue is fixed now.
Great!
Locking thread