[mythtv-users] The purpose of a Secondary Backend is... (is this really OT? I'm not sure)

Sam Hooker mythtv at noiseplant.com
Fri Jun 20 13:01:12 UTC 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

| OFF TOPIC
| If so, that is a shame because I was hoping I could create a portable
| PC that I could lug around to other peoples places or functions to
| watch recorded TV (sporting events, movies, etc). If it was easier to
| export recorded TV to AVI then I'd probably just do that but HDTV is
| just so pretty  ;-)

Well, assuming your master backend and network can handle the extra
load, you could use Heartbeat (Linux-HA) with DRBD[1] to have a passive
replicant of your master backend. Maybe on a beater (but still capable
of playing your HDTV-grade recordings) laptop, so it would  be truly
portable: as soon as you yanked the network cable to take the portable
to another location, Heartbeat would notice the loss of its peer (your
master backend) and activate the necessary resources (replicated disk,
mysqld) locally. You could even have it run a custom script that not
only starts mysql and mounts the replicated disk, but also starts
mythbackend and -frontend.

One caveat: although Heartbeat/DRBD works remarkably well for Apache and
BIND, I can't say I've implemented it for MySQL yet, and off the bat,
can imagine that simply replicating its underlying storage might not cut
the mustard. In that case, you could use Heartbeat to manage DRBD and
myth*end, and configure MySQL replication[2] with your portable as a slave.

DRBD's User Guide[3] is great, especially the "nuts-and-bolts"
section[4]. If you have questions and you think it really is OT, though,
feel free to email me off-list. And if you do go this route and pull it
off, let me know!


Cheers,

- -sth

[1] http://www.linux-ha.org/DRBD/GettingStarted
[2] http://dev.mysql.com/doc/refman/5.0/en/replication-howto.html
[3] http://www.drbd.org/users-guide
[4] http://www.drbd.org/users-guide/ch-configure.html

sam hooker|mythtv at noiseplant.com|http://www.noiseplant.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkhbqhgACgkQX8KByLv3aQ3rdgCg4Bpk4fSxZBKj8nE9jucCVNdQ
1ToAoKPL7Bakp7GS618ltnL/BbfLjUIb
=o8N/
-----END PGP SIGNATURE-----


More information about the mythtv-users mailing list