MySQL Fails to repair
Re: MySQL Fails to repair
trying to add system profile fails...profile.zip is 22 MG.....when i attached it the page is reset?
Re: MySQL Fails to repair
There is a maximum attachment size.
Try repairing the table manually:
If it fails, try:
Try repairing the table manually:
Code: Select all
cd /var/lib/mysql/nagios/ ; myisamchk -r -q nagios_logentries.MYICode: Select all
cd /var/lib/mysql/nagios/ ; myisamchk -r nagios_logentries.MYIFormer Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Re: MySQL Fails to repair
both options failed and I even tried the --force option...
Re: MySQL Fails to repair
If the following does not work, we may have to truncate the table or restore a backup:
Code: Select all
mysql -pnagiosxi -e 'use nagios; repair table nagios_logentries use_frm;'Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Re: MySQL Fails to repair
I may have got it fixed....
I ran
cd /var/lib/mysql/nagios/ ; myisamchk --safe-recover --force nagios_logentries.MYI
and it took awhile but MYSQL has started and I am seeing no current errors....I will monitor and repost after awhile....
I ran
cd /var/lib/mysql/nagios/ ; myisamchk --safe-recover --force nagios_logentries.MYI
and it took awhile but MYSQL has started and I am seeing no current errors....I will monitor and repost after awhile....
Re: MySQL Fails to repair
Im getting this in the MYSQL log...I have already expanded the virtual appliance by 5 G once.....
Disk is full writing './nagios/nagios_logentries.TMD' (Errcode: 28). Waiting for someone to free space... (Expect up to 60 secs delay for server to continue after freeing disk space)
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
16G 15G 8.0K 100% /
tmpfs 2.4G 0 2.4G 0% /dev/shm
/dev/sda1 97M 80M 13M 87% /boot
Disk is full writing './nagios/nagios_logentries.TMD' (Errcode: 28). Waiting for someone to free space... (Expect up to 60 secs delay for server to continue after freeing disk space)
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
16G 15G 8.0K 100% /
tmpfs 2.4G 0 2.4G 0% /dev/shm
/dev/sda1 97M 80M 13M 87% /boot
Re: MySQL Fails to repair
It seems like you've run out of disk space. You will have to take care of this issue first.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: MySQL Fails to repair
Extended to 50G and rerunning repair script again
Re: MySQL Fails to repair
repair completed successfully! Thanks guys!
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: MySQL Fails to repair
Excellent!