<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div>On 15/09/2010, at 4:05 AM, Michael T. Dean wrote:</div><blockquote type="cite"><div> On 09/14/2010 01:41 PM, John Haywood wrote:<br><blockquote type="cite">On 15/09/2010, at 3:18 AM, Michael T. Dean wrote:<br></blockquote><blockquote type="cite"><blockquote type="cite">On 09/14/2010 09:04 AM, John Haywood wrote:<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">After much instability going from Mythbuntu 9.10 to 10.04, even trying a database backup, clean install and restore the inevitable finally happened:<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">0.23.1 fixes, PPA repo<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">I was experiencing several freezes and lockups, usually one or two per day.<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">Finally the whole box just started up to a setup screen - and refused to update the schema from&lt;blank&gt; &nbsp;to 1025 (i.e. no value to current)<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">I ran the db optimise script to check, then the mysqlcheck, as per the wiki<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">mysqlcheck found problems which it repaired<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">I then thought I'd check the xfs filesystem on which the recordings are stored and found quite a few orphaned files, which it placed in Lost + Found<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">I'm now faced with reinstalling the OS, and restoring the db from a backup. I'd like to keep my database of recordings, videos and schedules if possible, but if I have to lose the rest, I can live with setting the combined fe/be up again<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">Should I try a full restore from a couple of days before the final crash first - or am I just prolonging the agony given the previous issues?<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">Or should I just do a partial restore from the last backup<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">There's really no benefit to doing a partial restore if you have a good backup of a non-corrupt schema.<br></blockquote></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">This I understand, and thanks for the advice. What i'm concerned about is the quality of the backup, &nbsp;and hence the restore I guess ....<br></blockquote><br>Yeah, that question is a bit more difficult to answer.<br><br>Based on the symptoms you've described, the most-likely problem you were encountering was that your settings table (where the current DB schema version is stored) was corrupt. &nbsp;In this case, optimize_mythdb.pl will be unable to run, and mythtv-setup and mythbackend would both start up and think that no database exists and try to update from &lt;blank&gt; to current DB schema version.<br><br>If that's the case, the most-likely worst-case result is that you lost a single setting value from the DB when settings was repaired. &nbsp;That setting value will be replaced with its default value the next time you run the program that uses the setting. &nbsp;Therefore, if the above is true (and is the /only/ problem), a backup from the repaired DB is usable (and, IMHO, you should use the full restore).<br><br>However, it's also possible that you had other crashed tables, too. &nbsp;If that's the case, you may have lost more data. &nbsp;Even so, the worst-case scenario is likely that you lost a row from each of those tables. &nbsp;And, if any of those tables is in the list of tables restored with a partial restore, you lost the row whether you do a full or partial restore. &nbsp;And, if the tables aren't in the list of tables restored by a partial restore, then you still have to re-create the lost data--as well as all the data you're throwing away with a partial restore--so, the partial restore really doesn't do anything other than force you to re-create data now (rather than when you find it's missing--i.e. doing <a href="http://www.gossamer-threads.com/lists/mythtv/users/264034#264034">http://www.gossamer-threads.com/lists/mythtv/users/264034#264034</a> when you find out one or more capture card isn't working; or going into mythtv-setup and fixing Storage Groups when you find out one or more directories is missing; or running mythcommflag --rebuild on a recording when you find it isn't seeking properly; or ...).<br><br>Note, also, that you can do a full restore, now, run for a couple weeks, and then change your mind (and do a partial restore from the new system's backup). &nbsp;If you do a partial restore, now, you can't change your mind--you'll lose all the recording information from the point of the backup until you change your mind.<br><br>It's completely up to you, but if it were me, I'd do a full restore, and if things don't work, then I'd likely fix the issue(s), as above. &nbsp;If a bunch of things don't work--and I fix a few of them over a period of a few weeks--and I stop trusting my data, then I'd consider a partial restore. &nbsp;That said, I doubt that you'll have any problems with a full restore (it will likely "just work").<br><br>FWIW, I used to do partial restores all the time to "clean up" my DB. &nbsp;Then I started doing a lot of work with the DB-related code in MythTV and with the database itself, and I found that partial restores are almost always a lot of work with no benefit.<br><br>Mike<br>_______________________________________________<br>mythtv-users mailing list<br><a href="mailto:mythtv-users@mythtv.org">mythtv-users@mythtv.org</a><br><a href="http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users">http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users</a><br></div></blockquote></div><div><br></div><div>Mike</div>This is exactly the direction towards which I was leaning, now its just up to me whether I put my trust in the distro which gave me grief...<div>...And you have laid it out extremely logically</div><div><br></div><div>thanks as aways for your patience and advice</div><div><br><div>
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0; "><div>John Haywood</div></span>
</div>
<br></div></body></html>