![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I have a NAS installed MySQL with/from OptWare. It works in some way ok, but now and then it goes down, both MySQL and the NAS, no web, no SSH, no telnet, no sql. Just power off the nas or i rare cases I have to disconnect the power, not even reset button works. Any idear about where this MySQL put log files ? Had some try to upgrade the OptWare installed MySQL to version 5.0 and maybe then up to present 5.2 ? I just have ont database on then MySQL, and only one table, and the table has a record with only one entery, a decimal number. I fill in a lot of records (millions) with numbers between 1 and 10. I can some times fill in more than 10 millinon record before it frezz other times just som hundred. This kind of use of a databse should not be a reason for stability problems ? I can understand preformance problems. |
#3
| |||||
| |||||
|
|
I have a NAS installed MySQL with/from OptWare. |
|
It works in some way ok, but now and then it goes down, both MySQL and the NAS, no web, no SSH, no telnet, no sql. |
|
Any idear about where this MySQL put log files ? |
|
Had some try to upgrade the OptWare installed MySQL to version 5.0 and maybe then up to present 5.2 ? |
|
This kind of use of a databse should not be a reason for stability problems ? I can understand preformance problems. |
#4
| |||
| |||
|
|
Is the MySQL *server* code installed over there, Yes. all MySQL server is running on the NAS. |
|
To be brutally honest, I would not try to run anything except file service software on a NAS device, and would put the database on a real server. Well, I will give it a try, I do not need preformance, so I am willing |
#5
| |||
| |||
|
|
On Mon, 20 Sep 2010 15:55:03 GMT, "Peter H. Coffin" hellsop (AT) ninehells (DOT) com> wrote: Is the MySQL *server* code installed over there, Yes. all MySQL server is running on the NAS. To be brutally honest, I would not try to run anything except file service software on a NAS device, and would put the database on a real server. Well, I will give it a try, I do not need preformance, so I am willing to "pay" for stability on that cost. I need to find a way to make my MySQL server more stabel on the cost of preformance. I think there must be some settings to do so. |
|
I notist mysqld --safe-mode, and flush tables, maybe something to try ? |
#6
| |||
| |||
|
|
The way to increase the stability for the application, though, is to give the server a reasonable amount of resources to work with, so it can return results promptly. Why not set the server up in a way that it only need the resources |
|
--safe-mode turns off some optimization options. It doesn't mean the server uses less RAM. (For reference, my installation mostly manages metadata for a picture gallery. Not exactly a stressful situation. It uses about 75MB normally, and peaks at about 120MB of memory and swap. Most NAS boxes have less than that for *the whole system*) I start the mysql demon with mysqld_safe now and it looks more stabel. |
#7
| ||||
| ||||
|
|
Do you mean NAS as in "a smallist box that exports a disk to the network" and there is a MySQL running on it? Yes, just like that. |
|
It works in some way ok, but now and then it goes down, both MySQL and the NAS, no web, no SSH, no telnet, no sql. Could be anything. Hot candidate would be: running out of memory. Do not look like that, but how to see ? I have to coolrestart the NAS |
|
Any idear about where this MySQL put log files ? Depends on configuration. You should check the MySQL error log: mysql> SHOW VARIABLES LIKE 'log_error'; Default is $DATADIR/$HOSTNAME.err mysql> SHOW VARIABLES LIKE 'datadir'; Thanks for this, usefull stuff to know. |
|
This kind of use of a databse should not be a reason for stability problems ? I can understand preformance problems. Certainly not. But on small computer like cheap NASes you may hit some resource bottleneck rather soon. But how to find out whitch bottleneck I had hit, and how to setup |
#8
| |||
| |||
|
|
Could be anything. Hot candidate would be: running out of memory. Do not look like that, but how to see ? I have to coolrestart the NAS to get in contact when things go wrong, so nothing usefull in logfile when I come it contact with it again. |
|
If ram should be a problem, can I then use a USB stick as ram in any way ? |
![]() |
| Thread Tools | |
| Display Modes | |
| |