FreeBSD in the background

From MythTV Official Wiki
Revision as of 17:59, 3 February 2006 by 212.111.35.130

Jump to: navigation, search

What's this about?

My mini-itx machine, built into an old CD player

My primary Myth box is a home-built mini-itx machine running KnoppMyth. My original plan (which I will complete one day!) was to have it tftp-booting from my FreeBSD server under the stairs, so it can run completely silent. For now, however, it has a 10-gig harddrive hanging off the back of it to run the system. Playing back the streams is hard work however (the 1GHz Via chip can just about handle it), so most of the grunt work is delegated to the server...

NFS storage

There's a dedicated 200 gig drive in the server, for program storage, which is NFS exported and mounted on the Myth box; this works very well indeed. I have this mounted at /myth on the server, and then mounted at /myth on the client (having matching mountpoints makes everything much simpler when moving functions between the different machines). The line in /etc/exports on the server looks like this:

/myth           -maproot=0 -alldirs -network 192.168.127

and the line in /etc/fstab on the client is:

<server>:/myth/       /myth    nfs     rw,nolock,rsize=8192,wsize=8192     0       0

MySQL

This wasn't really neccessary, but I did it because it could: I already had MySQL running on the server, so this is serving up the mythconverg database.

Moving the database is dead easy; take a backup, stop mythbackend, restore the backup to the new server, tweak mysql.txt on the Myth box, and restart mythbackend. Thus:

Take a backup

You're doing this every night anyway, right? ;) It's:

/usr/bin/mysqldump --user=<user> --password=<passwd> mythconverg


Apache

MythWeb seems to put some considerable strain on apache sometimes, so this is also running on the server.

MORE SOON