BIG mysql db problem
Moderators: Developers, Moderators
BIG mysql db problem
hello,
i have a problem with my cacti database.
two tables are causing me trouble:
poller_time:
it tells me "can't find poller_time.MYI" and when i go into the mysql folder there is no file there.
user_log:
it tells me "can't open user_log.MYI" the file is there but must be always in use or something like this i guess ??
i don't have realized a problem with cacti, but i am damed scared
the problem is i can't make a mysqldump (only with -f).
does anyone know how to solve the problem?
thx
i have a problem with my cacti database.
two tables are causing me trouble:
poller_time:
it tells me "can't find poller_time.MYI" and when i go into the mysql folder there is no file there.
user_log:
it tells me "can't open user_log.MYI" the file is there but must be always in use or something like this i guess ??
i don't have realized a problem with cacti, but i am damed scared
the problem is i can't make a mysqldump (only with -f).
does anyone know how to solve the problem?
thx
ok..
some more informations what i did now:
i created a new database with all my datas inside and created the 2 missing tables new from the original script (.sql).
i did a update from 0.8.6b to 0.8.6c....
as ever everything seems normal now! i will let it running like this now.
does anybody know why it came to this two corrupted tables?
i recently had a full hardisk partitions, where mysql resides. can this be the cause?
i just don't want this error comes again.
thank you for any informational or helping answer.
rik
some more informations what i did now:
i created a new database with all my datas inside and created the 2 missing tables new from the original script (.sql).
i did a update from 0.8.6b to 0.8.6c....
as ever everything seems normal now! i will let it running like this now.
does anybody know why it came to this two corrupted tables?
i recently had a full hardisk partitions, where mysql resides. can this be the cause?
i just don't want this error comes again.
thank you for any informational or helping answer.
rik
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
If it's windows 2000/xp, messed up file systems can cause files to disappear.
TheWitness
TheWitness
True understanding begins only when we realize how little we truly understand...
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
File system problems will affect all OS'.
TheWitness
TheWitness
True understanding begins only when we realize how little we truly understand...
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
;-) yes
yes.. you are totally right.
i can imagine the cause for user_log which table was always in use (locked) whould be the full disk.
but it seems strange to me the file of the poller_time table wasn't anymore on the disk...
i am happy if i know why this problem appeard because we have about 500 devices and it whould not be funny to not know why such problem came, maybe it is more a mysql topic.
thank you for your answers
rik
i can imagine the cause for user_log which table was always in use (locked) whould be the full disk.
but it seems strange to me the file of the poller_time table wasn't anymore on the disk...
i am happy if i know why this problem appeard because we have about 500 devices and it whould not be funny to not know why such problem came, maybe it is more a mysql topic.
thank you for your answers
rik
We have cacti version 0.8.6f
We have the same problem mentioned above :
CACTID: Poller[0] ERROR: Problem with MySQL: Can't find file: 'poller_time.MYI' (errno: 2)
Can we apply the same solution (add the table) or has anybode else have another solution ?
Thx !
We have the same problem mentioned above :
CACTID: Poller[0] ERROR: Problem with MySQL: Can't find file: 'poller_time.MYI' (errno: 2)
Can we apply the same solution (add the table) or has anybode else have another solution ?
Thx !
Do not underestimate the power of denial
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Poller time is a fairly transient table. So, between polling cycles you could do the following:
mysql -u root -p cacti
> truncate table poller_time;
> quit
If this does not fix the issue, then you can take the create syntax from cacti.sql file and paste it into mysql's command line interface, or use MySQL query browser, phpMySQL, or MySQL control center. You would disable the poller first, delete the table and then execute the create script.
TheWitness
mysql -u root -p cacti
> truncate table poller_time;
> quit
If this does not fix the issue, then you can take the create syntax from cacti.sql file and paste it into mysql's command line interface, or use MySQL query browser, phpMySQL, or MySQL control center. You would disable the poller first, delete the table and then execute the create script.
TheWitness
True understanding begins only when we realize how little we truly understand...
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
I know that MyISAM tables tend to corrupt when the database shut's down abruptly.
When i'm in this situation, i generally:
- verify tables with >show table status
- if any table looks like crap, run a > mysqlcheck on them
- then a > mysqlrepair if needed.
Depending on urgency to fix the system...
The disapeared file seems like something else though ?
Jef
When i'm in this situation, i generally:
- verify tables with >show table status
- if any table looks like crap, run a > mysqlcheck on them
- then a > mysqlrepair if needed.
Depending on urgency to fix the system...
The disapeared file seems like something else though ?
Jef
- rony
- Developer/Forum Admin
- Posts: 6022
- Joined: Mon Nov 17, 2003 6:35 pm
- Location: Michigan, USA
- Contact:
Those 2 tables can be dropped and recreated.
Use the following Query to recreate them in the mysql client while having the cacti database selected:
This will recreate the tables in question. I would also suggest that you run a repair on the database before and after the above actions.
Questions, let me know.
Use the following Query to recreate them in the mysql client while having the cacti database selected:
Code: Select all
drop table poller_output;
drop table user_log;
CREATE TABLE user_log (
username varchar(50) NOT NULL default '0',
user_id mediumint(8) NOT NULL default '0',
time datetime NOT NULL default '0000-00-00 00:00:00',
result tinyint(1) NOT NULL default '0',
ip varchar(15) NOT NULL default '',
PRIMARY KEY (username,user_id,time)
) TYPE=MyISAM;
CREATE TABLE poller_output (
local_data_id mediumint(8) unsigned NOT NULL default '0',
rrd_name varchar(19) NOT NULL default '',
time datetime NOT NULL default '0000-00-00 00:00:00',
output text NOT NULL,
PRIMARY KEY (local_data_id,rrd_name,time)
) TYPE=MyISAM;
Questions, let me know.
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
Who is online
Users browsing this forum: No registered users and 1 guest