View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 23 posts ] 
Go to page Previous  1, 2

Print view Previous topic   Next topic  
Author Message
Search for:
 Post subject:
PostPosted: Sat Aug 05, 2006 11:08 pm 
Offline
Joined: Tue Jan 18, 2005 2:07 am
Posts: 1532
Location: California
Note: I've updated the script as follows:

Script updated on August 2 to also restart gdm anytime backend is restarted.
Script updated on August 5 to make timestamp on captured mythbackend log file match timestamp in mbemon.log.

I made these changes in the second post on this thread where I posted the original script.

Note: This script has executed 2 automated restarts for me spread over a period of 3 days. Based on reviewing the captured logs I believe I hit the problem where the backend will sometimes go sideways when it tries to generate a preview from a bad ".nuv" file. I have since identified and removed that bad file.

Marc


Top
 Profile  
 
 Post subject:
PostPosted: Wed Aug 23, 2006 1:20 pm 
Offline
Joined: Tue Jan 18, 2005 2:07 am
Posts: 1532
Location: California
After several weeks of stability in my backend I have suddenly encountered a new problem -- one that the monitoring script was not able to detect. I've modified the script to detect this new condition and effect a restart. I made this change in the second post on this thread where I posted the original script.

In the meantime, I continue to try to figure out why I am having a new back-end problem, as discussed at http://mysettopbox.tv/phpBB2/viewtopic.php?t=11243

Marc


Top
 Profile  
 
 Post subject:
PostPosted: Wed Aug 23, 2006 6:26 pm 
Offline
Joined: Fri Sep 19, 2003 7:05 pm
Posts: 5088
Location: Fontana, Ca
The scripts will be included in the next release. However, they won't be started by default. I've simply included them for those that want to use it. When the next release is ready, perhaps you can write a page on the wiki.

_________________
cesman

When the source is open, the possibilities are endless!


Top
 Profile  
 
 Post subject:
PostPosted: Wed Aug 23, 2006 9:56 pm 
Offline
Joined: Tue Jan 18, 2005 2:07 am
Posts: 1532
Location: California
That's great -- it's nice to feel that I've been able o contribute something back to the communiity! I'll write something up this weekend in the Wiki and then post a link to that writeup on this thread.

Marc


Top
 Profile  
 
 Post subject:
PostPosted: Sat Aug 26, 2006 8:00 pm 
Offline
Joined: Tue Jan 18, 2005 2:07 am
Posts: 1532
Location: California
I've documented mbemon in the wiki at http://www.knoppmythwiki.org/index.php? ... nitorHowTo

marc


Top
 Profile  
 
 Post subject:
PostPosted: Mon Sep 11, 2006 8:08 pm 
Offline
Joined: Thu Jan 13, 2005 9:55 am
Posts: 135
Location: Decatur, Ga., USA
marc, cesman, tjc, et al,
I did this to /usr/local/bin/mythbackup:

Code:
# Start with the database backup, first we make sure it's healthy, and
# then we can dump it.
# Doing this while the backend is active would be BAD.
/etc/init.d/mbemon stop
/etc/init.d/mythtv-backend stop

# Stop, check, and fix $DATABASE db to ensure clean copy, then restart it.
/etc/init.d/mysql stop
cd $DATABASE_DIR
myisamchk -f *.MYI
/etc/init.d/mysql start

# Dumps the $DATABASE database
mysqldump -c -u root $DATABASE > $BACKUP_SQL

# Now we can restart the backend.
/etc/init.d/mythtv-backend start
/etc/init.d/mbemon start


I figured that since I use mythbackup often (from the command-line), I might forget to stop mbemon.
Anyone see any problem with this?

-sTv

_________________
R7.3 Backend
CPU: 1.8 GHz
RAM: 2Gb
Drives: 500Gb IDE; IDE DVD-RW
Mobo: eMachines
Tuners (Analog): PVR-250
Tuners (Digital): DCT-6200 Motorola Cable Box, HDHomeRun (OTA + cable)


Top
 Profile  
 
 Post subject:
PostPosted: Mon Sep 11, 2006 8:48 pm 
Offline
Joined: Fri Sep 19, 2003 7:05 pm
Posts: 5088
Location: Fontana, Ca
Good idea! No, no issues.

_________________
cesman

When the source is open, the possibilities are endless!


Top
 Profile  
 
 Post subject:
PostPosted: Mon Sep 11, 2006 8:52 pm 
Offline
Joined: Tue Jan 18, 2005 2:07 am
Posts: 1532
Location: California
Looks good to me!

Marc


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 23 posts ] 
Go to page Previous  1, 2



All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 16 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu