Error Trying to Repair Corrupt Table

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
[email protected]
Posts: 4
Joined: Wed May 28, 2014 10:05 am

Error Trying to Repair Corrupt Table

Post by [email protected] »

When attempting an upgrade I received the following error...

Error: Got error 28 from storage engine when trying to dump tablespaces

Got error 144 Table ./nagios/nagios_notifications is marked as crashed.......

Tied to run myisamchk -r -f nagios_<corrupted_table> on the affected table but get a segmentation fault after the 2nd index repair runs.

Tried to run echo "use nagios;repair table nagios_notifications use_frm;" | mysql -pnagiosxi with no success.

Ideas?

Thanks,

Joe
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Error Trying to Repair Corrupt Table

Post by abrist »

First, try our repair script:

Code: Select all

/usr/local/nagiosxi/scripts/repairmysql.sh nagios
[email protected] wrote:Tied to run myisamchk -r -f nagios_<corrupted_table> on the affected table but get a segmentation fault after the 2nd index repair runs.
When a repair fails, it should not segfault. Try our script and report back.
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.
[email protected]
Posts: 4
Joined: Wed May 28, 2014 10:05 am

Re: Error Trying to Repair Corrupt Table

Post by [email protected] »

Script runs and fails with segmentation fault. See attached screen grab.

Joe
You do not have the required permissions to view the files attached to this post.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Error Trying to Repair Corrupt Table

Post by abrist »

Well, the table may need to be truncated if all else fails. If you are a current customer, please send an email to [email protected] to open a ticket.
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.
Locked