MySQL table crash
Днес имаше crash на основната mysql таблицата на dirimp3.com около час борба и check-ване и пускане на разни tools, сайта отново е на лице.
Част от лога:
# ./myisamchk -c dirimp3/music.MYI
Checking MyISAM file: dirimp3/music.MYI
myisamchk: warning: 1 client is using or hasn’t closed the table properly
- check file-size
- check record delete-chain
- check key delete-chain
- check index reference
- check data record references index: 1
- check data record references index: 2
- check data record references index: 3
- check data record references index: 4
myisamchk: error: Found key at page 32574464 that points to record outside datafile
- check record links
myisamchk: error: Keypointers and record positions doesn’t match
MyISAM-table ‘dirimp3/music.MYI’ is corrupted
# ./myisamchk -r dirimp3/music.MYI
- recovering (with sort) MyISAM-table ‘dirimp3/music.MYI’
- Fixing index 1
- Fixing index 2
- Fixing index 3
- Fixing index 4
# ./myisamchk -o dirimp3/music.MYI
- recovering (with keycache) MyISAM-table ‘dirimp3/music.MYI’
Duplicate key 4 for record at 1726560 against new record at 423740
Duplicate key 4 for record at 46808668 against new record at 6501208
Killed
Това е крайния резултат:
MyISAM file: xxxx/dirimp3/music.MYI
Record format: Packed
Character set: utf8_general_ci (45)
File-version: 1
Creation time: 2009-01-25 15:32:44
Recover time: 2009-02-15 18:47:35
Status: open,changed
Datafile length: 142761600 Keyfile length: 153101312
Max datafile length: 281474976710654 Max keyfile length: 288230376151710719
Recordlength: 101
