Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
07-09-2017, 04:37 AM
|
#1
|
LQ Newbie
Registered: Jul 2017
Posts: 4
Rep:
|
CACTI login webpage gives error - root directory 100%
Cacti webpage gives below error;
FATAL: Cannot connect to MySQL server on 'localhost'. Please make sure you have specified a valid MySQL database name in 'include/config.php' Warning: Unknown: write failed: No space left on device (28) in Unknown on line 0 Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/var/lib/php/session) in Unknown on line 0
Root directory partition is 100%, is it safe to empty mysqld.log file consuming 28G out of 38G? or can i reduce /home partition and increase root partition.. what would be the best solution?
Thanks
|
|
|
07-09-2017, 11:12 AM
|
#2
|
LQ Guru
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 27,194
|
Quote:
Originally Posted by nk5454
Cacti webpage gives below error;
FATAL: Cannot connect to MySQL server on 'localhost'. Please make sure you have specified a valid MySQL database name in 'include/config.php' Warning: Unknown: write failed: No space left on device (28) in Unknown on line 0 Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/var/lib/php/session) in Unknown on line 0
Root directory partition is 100%, is it safe to empty mysqld.log file consuming 28G out of 38G? or can i reduce /home partition and increase root partition.. what would be the best solution?
|
Stop MySQL first, then remove the log(s) in question, and restart it, and consider looking at logrotate to keep things like that from happening. And 'reduce /home partition' isn't an easy thing to do, unless you have LVM in place, and are also running LVM on your / partition as well...which you probably aren't. A 38GB root partition is very small these days.
|
|
|
07-10-2017, 09:22 AM
|
#3
|
LQ Newbie
Registered: Jul 2017
Posts: 4
Original Poster
Rep:
|
will it effect the current graphs and configuration if i empty mysqld.log file? or its just a logs and would make no difference..
|
|
|
07-10-2017, 09:30 AM
|
#4
|
LQ Guru
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 27,194
|
Quote:
Originally Posted by nk5454
will it effect the current graphs and configuration if i empty mysqld.log file? or its just a logs and would make no difference..
|
If you're concerned, then back up the logs/copy them elsewhere. But these are just MySQL log files, not the data that drives anything. Again, stop MySQL, and do as you wish with the logs, and again, look into using logrotate.
|
|
|
07-10-2017, 09:41 AM
|
#5
|
LQ Newbie
Registered: Jul 2017
Posts: 4
Original Poster
Rep:
|
Thanks TB0ne,
Could you please let me know how can i backup logs and apply logrotate..
Regards
|
|
|
07-10-2017, 10:07 AM
|
#6
|
LQ Guru
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 27,194
|
Quote:
Originally Posted by nk5454
Thanks TB0ne,
Could you please let me know how can i backup logs and apply logrotate..
|
AGAIN: as said before, you can copy them elsewhere. How you do this and where you copy them to is up to you. And you can read the documentation on logrotate from their website and the many logrotate tutorials you can find with a brief Google search.
|
|
|
07-11-2017, 04:18 AM
|
#7
|
LQ Newbie
Registered: Jul 2017
Posts: 4
Original Poster
Rep:
|
I copied the file into other directory after stopping service: service mysqld stop, then when i completed copying, i tried to start the services by command service mysqld start, its giving below error;
Timeout error occurred trying to start MySQL Daemon
Starting mysqld: [FAILED]
how can i get mysqld started again?
Regards..
|
|
|
07-11-2017, 06:56 AM
|
#8
|
LQ Guru
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 27,194
|
Quote:
Originally Posted by nk5454
I copied the file into other directory after stopping service: service mysqld stop, then when i completed copying, i tried to start the services by command service mysqld start, its giving below error;
Timeout error occurred trying to start MySQL Daemon
Starting mysqld: [FAILED]
how can i get mysqld started again?
|
Check our disk space again. If you copied that file to another folder on the same out-of-space drive, you've done nothing but relocate the problem. Also try running
Code:
service mysqld stop; mysqld_safe &
...to see if that helps. Again, as you've been asked a couple of times now, why is your / partition so small? Have you tried to reboot? Did you check any of the system logs to see if there are any errors??
Read the "Question Guidelines" link in my posting signature; putting your exact error message into Google yields lots of suggestions/results.
|
|
|
All times are GMT -5. The time now is 07:06 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|