[mythtv-users] Sudden seemingly-random database issues

Karl Newman newmank1 at asme.org
Wed Oct 1 04:01:21 UTC 2014


On Tue, Sep 30, 2014 at 7:20 PM, Tom Lichti <tom at redpepperracing.com> wrote:

> On Tue, Sep 30, 2014 at 7:57 PM, Brian S <inanimatecrbnrod at hotmail.com>
> wrote:
>
>> On 09/27/2014 05:21 PM, Tom Lichti wrote:
>>
>>> On Sat, Sep 27, 2014 at 3:56 PM, Brian S <inanimatecrbnrod at hotmail.com
>>> <mailto:inanimatecrbnrod at hotmail.com>> wrote:
>>>
>>>
>>>     Next, I was able to get the mysql daemon to start by adding the
>>>     "innodb_force_recovery = 2" flag to /etc/mysql/my.cnf. First tried
>>>     =1 and got the same error as previously noted.
>>>
>>>     With mysql up and running I checked all databases/tables with:
>>>     mysqlcheck -c -u root -p --all-databases
>>>     Output indicated all tables in both the mysql database and the
>>>     mythconverg database were "OK." (again can attach output if useful).
>>>     This may have been a bad idea, but with mysql running with the
>>>     force recovery option, I was able to start the BE process
>>>     successfully and begin watching a program on the FE. The DB check
>>>     on mythweb also indicated all the mythconverg tables were ok.
>>>
>>>     So based on what I have been able to find, the next step seems to
>>>     be to dump all the tables and then restore a copy of them, however
>>>     based on what I have so far, a corrupt table doesn't seem to be
>>>     the problem(?), so I'm not sure dumping/restoring is the best way
>>>     to go. Would this be the logical next step, or should I try
>>>     something else?
>>>
>>>     Thanks again for all your help.
>>>
>>>
>>> The reason myisamcheck didn't work is because it's for fixing ISAM
>>> tables, not InnoDB. It looks like you've got it working, I would make a
>>> backup, just so you have one, but it's probably not necessary. I'd also
>>> remote the force recovery flag, otherwise it's likely going to do it every
>>> time you start mysql.
>>>
>> Thanks, that is what I was wondering re: myisam check.
>>
>> Just to make sure I'm understanding - the only way the (mysql/mythtv
>> portion of the) system works presently is with the "innodb_force_recovery =
>> 2" flag in the my.cnf file. Is this ok to just leave it in there and tell
>> mysql to basically ignore whatever the heck is bothering it? If I remove
>> the flag, mysql will not start.
>> It seems like running the system in what I assume mounts to "safe mode"
>> may cause further problems at a future date. What's further confusing me is
>> everything I've read tells me running mysql in force recovery mode prevents
>> one from updating the tables, however I am able to delete recordings and/or
>> watch live tv (i.e. create a recording) in this state.
>>
>
> To be honest, I don't know. I've not had to deal with this specific
> situation before.
>
> Tom
>

Probably because mythtv uses myisam (with the exception of some mythweather
tables) so it's not hitting the innodb engine which has the errors. You
could probably leave the force_recovery in place but to me it signifies a
serious problem with your install and should be corrected (somehow!).

Karl
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.mythtv.org/pipermail/mythtv-users/attachments/20140930/21362347/attachment.html>


More information about the mythtv-users mailing list