MySQL wont start after linode reboot
In need of some urgent help!
I'm a Linode newbie and just rebooted my linode for the first time.
For some reason MySQL is now refusing to start. I'm getting the following message:
> start: Job failed to start
When running:
sudo service mysql restart
Any help willing be gratefully received as all my sites are currently down!
Cheers,
Terry
11 Replies
/etc/init.d/mysqld start
have you turn mysqld's chkconfig levels 235 on?
Turn even sure what the second question means? Any pointers?
Thanks
Got this fixed in the end. Turns out I had run out of disk space due to one log file ballooning to 15Gb! Finally tracked it down and deleted it and all has gone back to normal.
Thanks for replies - most appreciated
Cheers,
Terry
Someone once edited a main script of a high-traffic site, causing it to spam two E_NOTICEs on each hit… >.<
The semi-cool thing is that MySQL apparently halts processing queries when it notices being out of disk space, keeps the data in memory until it can write it, and resumes operations like nothing happened afterwards.
@rsk:
The semi-cool thing is that MySQL apparently halts processing queries when it notices being out of disk space, keeps the data in memory until it can write it, and resumes operations like nothing happened afterwards.
I just threw up in my mouth a bit.
@hoopycat:
I just threw up in my mouth a bit.
Er, care to explain?
To me, logging an error message with "waiting for X kb of disk space" and queuing all new requests seems better than crashing and leaving a damaged table…
(As an aside: normally, filesystems reserve a percentage (5% or so?) of the disk for root. In other words, a normal user will get no-space-left-on-device at 95%, while root can cram it all the way up to 100%. I wonder if it might not be a bad idea for logs to be owned/written to by a non-root user.)
For the root-reserved area… well, that was the case here, it was free… which's quite good, as I'm not sure if I could log in otherwise… keep in mind, tho, that MySQL runs as non-root too, so it also can't touch that space.