Can I add comments via e-mail?
Table crashes
Hello Guest
  
  • Login
• Register…
• Start blog
  • Who, Where, When
• What is interesting here?
• Duels
  • Polls
• Avatars
• Interests
  • Cities and Countries
• Random blog
• Users search
  • Search
• Games
• Tests
• QAIX
  • Ñîîáùåñòâà
• Talxy Chat
• Horoscope
• Online
 
Register!

QAIX > MySQL database development > Table crashes 8 February 2010 18:26:04

  Top users: 
  Recent blog posts: 
  They have birthday today: 
  Forums:   
  Discuss: 
  Recent forum topics: 
  Recent forum comments:
  Ìîäåðàòîð:

Table crashes

Guðmundur Bjarni Ólafsson 4 May 2003 15:58:16
 Hello,

I'm using MySQL 4.0.12 on RedHat 7.1. I grabbed the binaries off mysql.com
because I was having random table crashes like stated in the download section
for gcc-2.96.*.

When I switched over to the binaries the crashes continued, but now they are
getting pretty violent on one table. The table crashes so badly that I
haven't been able to fix it with myisamchk -r/-o.

Here I paste an example of output from myisamchk:

# myisamchk -o myndir
- recovering (with keycache) MyISAM-table 'myndir'
Data records: 8221
Key 1 - Found wrong stored record at 114103880
Found link that points at 7080077846876182184­ (outside data file) at 114104860
Found block with too small length at 114105416; Skipped
Found block with too small length at 114105552; Skipped
Found link that points at 31060663335674065 (outside data file) at 114105756
Found block with too small length at 114106036; Skipped
Found link that points at -144739218138747521­8 (outside data file) at
114106100
Found block with too small length at 114106192; Skipped
Found link that points at -143210168988777505­8 (outside data file) at
114106208
Found link that points at 770256467916358051 (outside data file) at 114106372
Found link that points at -665455918284247198­3 (outside data file) at
114106376
Found link that points at -767405338034693728­0 (outside data file) at
114107172
Found block with too small length at 114107440; Skipped
Found link that points at 606174609524421989 (outside data file) at 114107520
Found block with too small length at 114107668; Skipped
Found block with too small length at 114108196; Skipped
Found link that points at -539887210319954204­8 (outside data file) at
114108216
....
Found block with too small length at 114123420; Skipped
Found link that points at -453890075381651044­8 (outside data file) at
114123552
myisamchk: error: Not enough memory for blob at 114123616
myisamchk: Error writing file 'UNOPENED' (Errcode: 9)
MyISAM-table 'myndir' is not fixed because of errors
Try fixing it by using the --safe-recover (-o) or the --force (-f) option

I'm pretty sure this has nothing to do with disk space or memory, since this
machine has enough of both (approx 20gb free hd, 3gb free of ram). Also, the
datarecords it shows above, are more like 27000.

Can anyone help me fix this. Recovering the files from backup isn't fun to do
2-3 times a day. :/

best regards,
Guðmundur Ólafsson

--
MySQL General Mailing List
For list archives: http://lists.mysql.­com/mysql
To unsubscribe: http://lists.mysql.­com/mysql?unsub=gcdm­g-mysql@m.gmane.org


Add comment
Gerald_clark 5 May 2003 16:28:33 permanent link ]
 Do you perhaps have an index bigger than 2GB on a filesystem with 2GB
maximum size?

Guðmundur Bjarni Ólafsson wrote:
Hello,>
I'm using MySQL 4.0.12 on RedHat 7.1. I grabbed the binaries off mysql.com >because I was having random table crashes like stated in the download section >for gcc-2.96.*.>
When I switched over to the binaries the crashes continued, but now they are >getting pretty violent on one table. The table crashes so badly that I >haven't been able to fix it with myisamchk -r/-o.>
Here I paste an example of output from myisamchk:>
# myisamchk -o myndir>



--
MySQL General Mailing List
For list archives: http://lists.mysql.­com/mysql
To unsubscribe: http://lists.mysql.­com/mysql?unsub=gcdm­g-mysql@m.gmane.org


Add comment
Guðmundur Bjarni Ólafsson 5 May 2003 16:44:58 permanent link ]
 The datafile is about 300 megs, the index is alot smaller than that.

Sometimes I can fix the table, sometimes I cant.

regards
GBO


On Monday 05 May 2003 13:28, gerald_clark wrote:> Do you perhaps have an index bigger than 2GB on a filesystem with 2GB> maximum size?>
Guðmundur Bjarni Ólafsson wrote:> >Hello,> >
I'm using MySQL 4.0.12 on RedHat 7.1. I grabbed the binaries off mysql.com> >because I was having random table crashes like stated in the download> > section for gcc-2.96.*.> >
When I switched over to the binaries the crashes continued, but now they> > are getting pretty violent on one table. The table crashes so badly that> > I haven't been able to fix it with myisamchk -r/-o.> >
Here I paste an example of output from myisamchk:> >
# myisamchk -o myndir


--
MySQL General Mailing List
For list archives: http://lists.mysql.­com/mysql
To unsubscribe: http://lists.mysql.­com/mysql?unsub=gcdm­g-mysql@m.gmane.org


Add comment
Gerald_clark 5 May 2003 16:52:42 permanent link ]
 You do shut down the server before running myisamchk don't you?

Guðmundur Bjarni Ólafsson wrote:
The datafile is about 300 megs, the index is alot smaller than that.>
Sometimes I can fix the table, sometimes I cant.>
regards>GBO>
On Monday 05 May 2003 13:28, gerald_clark wrote:>
Do you perhaps have an index bigger than 2GB on a filesystem with 2GB>>maximum size?>>
Guðmundur Bjarni Ólafsson wrote:>>
Hello,>>>
I'm using MySQL 4.0.12 on RedHat 7.1. I grabbed the binaries off mysql.com>>>because­ I was having random table crashes like stated in the download>>>section for gcc-2.96.*.>>>
When I switched over to the binaries the crashes continued, but now they>>>are getting pretty violent on one table. The table crashes so badly that>>>I haven't been able to fix it with myisamchk -r/-o.>>>
Here I paste an example of output from myisamchk:>>>
# myisamchk -o myndir>>>



--
MySQL General Mailing List
For list archives: http://lists.mysql.­com/mysql
To unsubscribe: http://lists.mysql.­com/mysql?unsub=gcdm­g-mysql@m.gmane.org


Add comment
Guðmundur Bjarni Ólafsson 5 May 2003 16:55:54 permanent link ]
 I've tried both that, and REPAIR TABLE through the mysql client, both with
this result.


On Monday 05 May 2003 13:52, you wrote:> You do shut down the server before running myisamchk don't you?>
Guðmundur Bjarni Ólafsson wrote:> >The datafile is about 300 megs, the index is alot smaller than that.> >
Sometimes I can fix the table, sometimes I cant.> >
regards> >GBO> >
On Monday 05 May 2003 13:28, gerald_clark wrote:> >>Do you perhaps have an index bigger than 2GB on a filesystem with 2GB> >>maximum size?> >>
Guðmundur Bjarni Ólafsson wrote:> >>>Hello,> >>>
I'm using MySQL 4.0.12 on RedHat 7.1. I grabbed the binaries off> >>> mysql.com because I was having random table crashes like stated in the> >>> download section for gcc-2.96.*.> >>>
When I switched over to the binaries the crashes continued, but now they> >>>are getting pretty violent on one table. The table crashes so badly that> >>>I haven't been able to fix it with myisamchk -r/-o.> >>>
Here I paste an example of output from myisamchk:> >>>
# myisamchk -o myndir


--
MySQL General Mailing List
For list archives: http://lists.mysql.­com/mysql
To unsubscribe: http://lists.mysql.­com/mysql?unsub=gcdm­g-mysql@m.gmane.org


Add comment
Datatal AB - Gauffin 7 October 2003 10:05:30 permanent link ]
 Hello

Some one my tables have crashed (again). I had to repair them ASAP since
the db is in my production enviroment.
1. How can I find the cause of the crashes?

2. I've created a my.cnf and added the following lines. Is the format
correct?
[mysqld]
set-variable = myisam-recover=BACK­UP,FORCE
set-variable = myisam_sort_buffer_­size=4M


I need to get this going without getting crashes every week, please
help.

/Jonas

--
MySQL General Mailing List
For list archives: http://lists.mysql.­com/mysql
To unsubscribe: http://lists.mysql.­com/mysql?unsub=gcdm­g-mysql@m.gmane.org


Add comment
Thierno Cissé 7 October 2003 12:10:00 permanent link ]
 Hi, Jonas

crashes occurs for some reasons like :
- unclean tables ( tables are closed improprely),
- hardware problems
- something goes wrong in the system
- know bugs
Check that your tables are clean, before start using them.

It seems that you said the REPAIR doesn't occurs after you configuring
related variables in the my.cnf file ?
Because the daemon will not start when the my.cnf contains any errors
(variable names), the format is to be correct.

Can you indicates what MySQL version you run and your OS version.

Regards
Thierno6C - MySQL 4.0.15


----- Original Message -----
From: "Datatal AB - Gauffin, Jonas" <jonas@datatal.se>
To: <mysql@lists.mysql.­com>
Sent: Tuesday, October 07, 2003 7:05 AM
Subject: Table crashes


Hello

Some one my tables have crashed (again). I had to repair them ASAP since
the db is in my production enviroment.
1. How can I find the cause of the crashes?

2. I've created a my.cnf and added the following lines. Is the format
correct?
[mysqld]
set-variable = myisam-recover=BACK­UP,FORCE
set-variable = myisam_sort_buffer_­size=4M


I need to get this going without getting crashes every week, please
help.

/Jonas

--
MySQL General Mailing List
For list archives: http://lists.mysql.­com/mysql
To unsubscribe:
http://lists.mysql.­com/mysql?unsub=thie­rno.cisse@sentoo.sn


--
MySQL General Mailing List
For list archives: http://lists.mysql.­com/mysql
To unsubscribe: http://lists.mysql.­com/mysql?unsub=gcdm­g-mysql@m.gmane.org


Add comment
Thierno Cissé 7 October 2003 14:39:04 permanent link ]
 Hello,
MyODBC 3.51 is the only way that I access the database. (MyODBC is used in
a multithreaded server and in >InternetInformatio­nServer (asp))>The server is coded in c++ and got a class that acts like a odbc pool
(keeps connections open during the lifetime of the server >and handles them
to threads that requests a db connection)

It may help to know more about the work of features (multithreaded server,
'odbc pool') you are using with MySQL.
I have only one vague idea it above. I know that MySQL is multi-threaded (it
may have many queries on the same table simultaneously).

Remarks that keeps connections open during the lifetime of the server and
handles them to threads that requests a db connection SHOULDN'T be the
culprit of table crash. In contrary this is a good thing; PHP, that i used,
do the same job with the feature of PERSISTENT CONNECTIONS.
Also the version of MyODBC (MyODBC 3.51 ) you are using is declared STABLE
by MySQL , though MySQL says :
'some issues brought up appear to be application-related­ and independent of
the ODBC driver or underlying database server.
How are tables getting unclean?
Has many ways like :
- the mysql daemon server stops in a abnormal way , you can see it in the
mysql error log file
- a query fail to continue processing
- a system problem
When are tables closed?
A table is opened for each concurrent acces,
A table is closed when the connection using them is closed / lost

Regards
Thierno6C - MySQL 4.0.15

----- Original Message -----
From: "Datatal AB - Gauffin, Jonas" <jonas@datatal.se>
To: <mysql@lists.mysql.­com>
Sent: Tuesday, October 07, 2003 10:05 AM
Subject: SV: Table crashes


Hello
crashes occurs for some reasons like :> - unclean tables ( tables are closed improprely),> - hardware problems> - something goes wrong in the system> - know bugs> Check that your tables are clean, before start using them.

MyODBC 3.51 is the only way that I access the database. (MyODBC is used in a
multithreaded server and in InternetInformation­Server (asp))
The server is coded in c++ and got a class that acts like a odbc pool (keeps
connections open during the lifetime of the server and handles them to
threads that requests a db connection)

How are tables getting unclean? When are tables closed?
Should I disconnect/connect when a thread is handling the dbconnection back
to the pool?

It seems that you said the REPAIR doesn't occurs after you> configuring related variables in the my.cnf file ? Because> the daemon will not start when the my.cnf contains any errors> (variable names), the format is to be correct.

No. I asked if my configuration were correct. I've just added it to my.cnf.


Can you indicates what MySQL version you run and your OS version.

Win2000
Mysql 4.0.12 (mysqld.exe)
MyODBC was an old version (2.x), I've just installed 3.51.06


--
MySQL General Mailing List
For list archives: http://lists.mysql.­com/mysql
To unsubscribe:
http://lists.mysql.­com/mysql?unsub=thie­rno.cisse@sentoo.sn


--
MySQL General Mailing List
For list archives: http://lists.mysql.­com/mysql
To unsubscribe: http://lists.mysql.­com/mysql?unsub=gcdm­g-mysql@m.gmane.org


Add comment
Guest 8 February 2010 18:26:04 permanent link ]
 Being a system administrator, I periodically use various data recovery services from other software developers. From my point of view, the microsoft sql database repair utility: http://www.recovery­toolbox.com/microsof­t_sql_server_databas­e_repair_tool.html is very easy to use, it features intelligent data recovery algorithms that work under all supported software and hardware configurations.
Add comment
 

Add new comment

As:
Login:  Password:  
 
 
  
 
Ïîæàëóéñòà, îòíîñèòåñü ê ñîáåñåäíèêàì óâàæèòåëüíî, íå èñïîëüçóéòå íåöåíçóðíûå ñëîâà, íå çëîóïîòðåáëÿéòå çàãëàâíûìè áóêâàìè, íå ïóáëèêóéòå ðåêëàìó è îáúÿâëåíèÿ î êóïëå/ïðîäàæå, à òàêæå ìàòåðèàëû íàðóøàþùèå ñåòåâîé ýòèêåò èëè çàêîíû ÐÔ. Âàø ip-àäðåñ çàïèñûâàåòñÿ.


QAIX > MySQL database development > Table crashes 8 February 2010 18:26:04

see also:
Create method executed succesfully but…
security question: logging out properly…
EJB-QL Finder and POJO
pass tests:
A ih reakziya na tvoe poyavlenie -
see also:
Bloom!
How to convert Mod/Tod video to…
Hello everyone! I start my blog. ...

  Copyright © 2001—2010 QAIX
Èäåÿ: Ìîíàø¸â Ìèõàèë.
Àâòîðàìè òåêñòîâ, èçîáðàæåíèé è âèäåî, ðàçìåù¸ííûõ íà ýòîé ñòðàíèöå, ÿâëÿþòñÿ ïîëüçîâàòåëè ñàéòà.
See Help and FAQ in the community support.qaix.com.
Write in the community about the bugs you have noticedbugs.qaix.com.
Write your offers and comments in the communities suggest.qaix.com.
Information for parents.
Ïèøèòå íàì íà .
If you would like to report an abuse of our service, such as a spam message, please .
Åñëè Âû õîòèòå ïîæàëîâàòüñÿ íà ñîäåðæèìîå ýòîé ñòðàíèöû, ïîæàëóéñòà .