spacer.png, 0 kB
  May 24, 2013, 15:21:49

 
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length


Pages: [1]
  Print  
Author Topic: cannot lock table parts blahblah after hdd crash  (Read 1196 times)
Reab4

Posts: 126


View Profile
« on: June 17, 2010, 22:37:42 »

Got a hdd crash. urddb_svn is actually not on the crashed hdd but probably due to the IDE (yes IDE) controller things got messy.

Could not execute SQL query "LOCK TABLE parts_18318 write" mysql error: [144: Table './urddb_svn/parts_18318' is marked as crashed and last (automatic?) repair failed] in EXECUTE("LOCK TABLE parts_18318 write")

What to do?
Due to this, urd is cycling activating/failing/pausing the boneless update.

Edit: svn 1628
« Last Edit: June 17, 2010, 22:43:13 by Reab4 » Logged
spearhead
Administrator
*
Posts: 1038


View Profile WWW
« Reply #1 on: June 17, 2010, 22:41:58 »

run mysqlcheck
see man mysqlcheck
or myisamchk

if nothing works, you're probably  out of luck and probably have to truncate the table or delete the entire db.

Logged
thorwak

Posts: 202


View Profile
« Reply #2 on: June 18, 2010, 06:47:29 »

I've seen this when I killed mysqld (yeah I know, bright move) when I figured "optimize database"  took too long from within URD (so I was new, gimme a break  Cool )

Anyway, you should not loose the entire DB, at worst the parts_18318. Quickest fix, if you can live with it, is to purge that group (or purge the table manually) and rebuild it. Probably it's just not considered "consistent" since mysqld died when your IDE problem happened, and you will not loose any data (my guess).

I was able to fix my table (fairly big one btw) by using myisamchk as suggested by spearhead. (mysql should be stopped when doing this)

Here's some fairly straightforward info
http://dev.mysql.com/doc/refman/5.0/en/myisam-repair.html
Logged
Reab4

Posts: 126


View Profile
« Reply #3 on: June 18, 2010, 07:08:51 »

Thanks for the info. I decided to take the quick route to get it over with and delete the whole db.

Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC
Amigri by Fakdordes
spacer.png, 0 kB
spacer.png, 0 kB
spacer.png, 0 kB