<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On 29 July 2015 at 13:28, Hika van den Hoven <span dir="ltr"><<a href="mailto:hikavdh@gmail.com" target="_blank">hikavdh@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hoi Bill,<br>
<br>
Wednesday, July 29, 2015, 4:55:17 AM, you wrote:<br>
<br>
> On 07/28/2015 09:21 PM, Hika van den Hoven wrote:<br>
>> Hoi Hika,<br>
<span class="">>><br>
>> Wednesday, July 29, 2015, 3:50:46 AM, you wrote:<br>
>><br>
>>> Hoi All,<br>
>><br>
>>> It seems my recordedseek table is crashed. What do I do now?<br>
>>> Backups return empty and <a href="http://optimize_mythdb.pl" rel="noreferrer" target="_blank">optimize_mythdb.pl</a> fails.<br>
>>> It seems to have happened a few days ago since the last backup with<br>
>>> content was from almost a week ago.<br>
>>> For the rest everything works. I can record, watch, schedule. That's<br>
>>> why I didn't notice at first.<br>
>><br>
>>> I guess I somehow have to dump the table and recreate it. Which will<br>
>>> take a long time. (some 3.4 Tb in recordings )<br>
>><br>
</span>>> OK, now it gets really weird. It seems that <a href="http://optimize_mythdb.pl" rel="noreferrer" target="_blank">optimize_mythdb.pl</a> crashes<br>
>> the table.<br>
>> I emptied the table.<br>
>> Restarted mysql end mythbackend<br>
>> I could see the table again.<br>
>> Rebuilding a recording works.<br>
>> I could do a backup again.<br>
>> And then just to be sure I ran <a href="http://optimize_mythdb.pl" rel="noreferrer" target="_blank">optimize_mythdb.pl</a> and I'm back where I<br>
>> started. "last repair failed at <a href="http://optimize_mythdb.pl" rel="noreferrer" target="_blank">optimize_mythdb.pl</a> line 38"<br>
>><br>
>> So I'm doing it again and for now remove <a href="http://optimize_mythdb.pl" rel="noreferrer" target="_blank">optimize_mythdb.pl</a> from cron.<br>
>><br>
<br>
> Isn't line 38 the 'new' "ALTER TABLE recordedseek ORDER BY chanid, starttime, type"<br>
> code? You could temporarily comment out that part just to prove it is/isn't causing<br>
> the problem.<br>
<br>
This is line 37 - 40:<br>
# Defragement seek table<br>
    if ($dbh->do("ALTER TABLE `recordedseek` ORDER BY chanid, starttime, type")) {<br>
        print "Defragmented: recordedseek\n";<br>
    }<br>
<br>
If I remark it out. the table still gets crashed by <a href="http://optimize_mythdb.pl" rel="noreferrer" target="_blank">optimize_mythdb.pl</a><br>
<br>
I tried dropping and reloading. But the reload query is from the<br>
earlier emptied table, so I'm not sure if it is OK.<br>
<br>
- phpMyAdmin SQL Dump<br>
-- version 4.1.14.3<br>
-- <a href="http://www.phpmyadmin.net" rel="noreferrer" target="_blank">http://www.phpmyadmin.net</a><br>
--<br>
-- Machine: localhost<br>
-- Gegenereerd op: 29 jul 2015 om 02:11<br>
-- Serverversie: 5.6.24-log<br>
-- PHP-versie: 5.5.23-pl0-gentoo<br>
<br>
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";<br>
SET time_zone = "+00:00";<br>
<br>
<br>
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;<br>
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;<br>
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;<br>
/*!40101 SET NAMES utf8 */;<br>
<br>
--<br>
-- Databank: `mythconverg`<br>
--<br>
<br>
-- --------------------------------------------------------<br>
<br>
--<br>
-- Tabelstructuur voor tabel `recordedseek`<br>
--<br>
<br>
DROP TABLE IF EXISTS `recordedseek`;<br>
CREATE TABLE IF NOT EXISTS `recordedseek` (<br>
  `chanid` int(10) unsigned NOT NULL DEFAULT '0',<br>
  `starttime` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',<br>
  `mark` mediumint(8) unsigned NOT NULL DEFAULT '0',<br>
  `offset` bigint(20) unsigned NOT NULL,<br>
  `type` tinyint(4) NOT NULL DEFAULT '0',<br>
  PRIMARY KEY (`chanid`,`starttime`,`type`,`mark`)<br>
) ENGINE=MyISAM DEFAULT CHARSET=utf8;<br>
<br>
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;<br>
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;<br>
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;<br>
<br></blockquote><div> </div></div></div><div class="gmail_extra">Check the mysql log file. There may be further information in there?<br></div><div class="gmail_extra"><br></div><div class="gmail_extra">Could be hardware issues, full disk etc.</div></div>