Page 1 of 1

A database connection error has been detected, we are attemp

Posted: Mon Jan 05, 2015 1:46 pm
by shawnashley
A database connection error has been detected, we are attempting to repair the server, if the repair does not resolve the issue, please contact Nagios support.

I have tried unsuccessfully to repair the database. I believe I may be out of disk space. any help would be greatly appreciated.

Re: A database connection error has been detected, we are at

Posted: Mon Jan 05, 2015 1:54 pm
by tmcdonald
Let's confirm the disk space:

Code: Select all

df -h

Re: A database connection error has been detected, we are at

Posted: Mon Jan 05, 2015 3:33 pm
by shawnashley
/dev/mapper/VolGroup-lv_root 7.5g 7.g 137m 99%

I deleted some old backups and upgrade files and was able to get the server up and running again. It is a virtual machine and I added another 10gb to the VM. I do not have enough disk space to run a backup.

Re: A database connection error has been detected, we are at

Posted: Mon Jan 05, 2015 3:36 pm
by slansing
I would recommend using snapshots in that case, as your main source of backing up the system.

Re: A database connection error has been detected, we are at

Posted: Mon Jan 05, 2015 3:39 pm
by shawnashley
but I cannot restore the snap shot as it will put the machine back to the state it is now, not enough disk space.

Can I extend that partition without destroying the data?

Re: A database connection error has been detected, we are at

Posted: Mon Jan 05, 2015 3:59 pm
by slansing
Well, lets at least get you to a better position, what is the output of:

Code: Select all

for i in G M K; do du -ah | grep [0-9]$i | sort -nr -k 1; done | head -n 11
You may want to clear out some old logs in /var/, you can follow this to resize:

http://assets.nagios.com/downloads/nagi ... M_Disk.pdf

Re: A database connection error has been detected, we are at

Posted: Mon Jan 05, 2015 4:13 pm
by shawnashley
4.0k

Re: A database connection error has been detected, we are at

Posted: Mon Jan 05, 2015 4:18 pm
by shawnashley
I just cleared old log files and now have 2.7gb free. I should be able to get a backup now.

Re: A database connection error has been detected, we are at

Posted: Mon Jan 05, 2015 4:43 pm
by slansing
Great, I'd grab a snapshot if it is in current, working condition as well, and move that backup off of the system before you attempt to expand the disk via the above guide. Let us know how it goes or if you have any questions at all!