LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Red Hat Server Problems with Command Line and MySQL (https://www.linuxquestions.org/questions/linux-software-2/red-hat-server-problems-with-command-line-and-mysql-460676/)

jazee 07-03-2006 05:02 PM

Red Hat Server Problems with Command Line and MySQL
 
For some reason my Red Hat server keeps dieing on me. I get mysql.sock errors on all my website that connect to MySQL. I have found out that these are coming from the mysqld keeps shutting down. So when I try to start it again I get this error.
Code:

# service mysqld start
touch: cannot touch `/var/log/mysqld.log': Read-only file system
chmod: changing permissions of `/var/log/mysqld.log': Read-only file system
chmod: changing permissions of `/var/lib/mysql': Read-only file system
Timeout error occurred trying to start MySQL Daemon.
Starting MySQL:  /etc/rc.d/init.d/functions: line 415: /bin/false: Input/output error
                                                          [FAILED]
touch: cannot touch `/var/lock/subsys/mysqld': Read-only file system

I usaly have my ISP reboot it when this happens but I am getting tired of contact them everytime, one a day usaly to get it rebooted. So I try the shutdown command and get a diffrent error.

Code:

# shutdown -r
-bash: /sbin/shutdown: Input/output error

Any one have any ideas as to why this would happen. It is also killing my plesk interface as well. I can no longer get a log-in and I get DrWeb key errors when I try to start it.

timmeke 07-04-2006 10:19 AM

Quote:

Read-only file system
suggests that the filesystem on /var/log resides is mounted as read-only, which makes writing to log files impossible.

So, I suggest either changing the log directory to a writable one, or remounting the /var/log filesystem as read-write.


All times are GMT -5. The time now is 02:17 PM.