Paul's Blog Entries for November 2006

Thursday 2nd November 2006

Local Packages

bittorrent 5.0.0 is out at last. As is often the case, there's little evidence that anyone has done any testing on the command-line clients, since many of them produce tracebacks as soon as they're started, as in other recent versions:

The seed client, launchmany-ccnsole:

Traceback (most recent call last): 
  File "/usr/bin/btseed", line 82, in ?
    config['torrent_dir'] = \
AttributeError: 'module' object has no attribute 'decode_from_filesystem'

The curses client, bittorrent-curses:

>>> unable to setrlimit  not allowed to raise maximum limit 
Traceback (most recent call last):
  File "/usr/bin/bittorrent-curses", line 45, in ?
    from BitTorrent.RawServer_twisted import RawServer, task
ImportError: cannot import name task

Contrary to the install documentation, python 2.3 is no longer supported since the code uses collections.deque, which was introduced in python 2.4. There appears to be an effort to work around this problem in one of the places that it's used, but the same technique isn't universally used and hence it doesn't work.

Normally I'd just declare this all as a bad job and forget about it but today I had a bit of a look into it in more detail and managed to fix the tracebacks despite knowing hardly any python at all. I've stripped out all support for distributions with python older than 2.4 in my bittorrent-5.0.0 package though.

Friday 3rd November 2006

Local Packages

Monday 6th November 2006

Fedora Extras

Local Packages

Tuesday 7th November 2006

Local Packages

Fedora Extras

Wednesday 8th November 2006

Fedora Extras

Thursday 9th November 2006

Fedora Extras

Tuesday 14th November 2006

Local Packages

Fedora Extras

Thursday 16th November 2006

Local Packages

Fedora

Friday 17th November 2006

Local Packages

Tuesday 21st November 2006

Fedora Extras

With the Fedora CVS server now fixed, I was finally able to import and build libpng10 1.0.21, which addresses a DoS issue (Bug #216263, CVE-2006-5793) that I was notified about on Saturday,

Wednesday 22nd November 2006

Fedora Extras

Local Packages

Monday 27th November 2006

Local Packages

Tuesday 28th November 2006

Fedora Extras

Local Packages

Wednesday 29th November 2006

Fedora Core

Local Packages

Backup Server

More preparatory work done towards getting my bacula system up and running again. With the server consolidation effort of moving the file and print server on to my desktop box, and getting lots of new disk space, I'm also going to consolidate the storage dæmon on to this box instead of lumbering the Internet-facing box with that task.

Anyway, today's steps included making a new RAID1 device (/dev/md4), creating an LVM physical volume on it, creating a new volume group (VgBackup) using that, and three new logical volumes (/var/bacula - 3GiB, /var/lib/mysql - 5GiB, /var/spool/bacula - 50GiB).

First step was to create the new 80GiB Linux RAID autodetect partitions /dev/sdc2 and /dev/sdd2 using fdisk, and then reboot so that the kernel would use the new partition table.

Then:

# mdadm --create --level=1 --raid-devices=2 --auto=md /dev/md4 /dev/sd[cd]2
# mdadm --examine --scan --config=mdadm.conf
# vi /etc/mdadm.conf
(mdadm output pasted into /etc/mdadm.conf)
# pvcreate /dev/md4
# vgcreate VgBackup /dev/md4
# lvcreate --size=50G --name=BaculaSpool VgBackup
# mke2fs -j -L BaculaSpool /dev/VgBackup/BaculaSpool 
# lvcreate --size=3G --name=BaculaVar VgBackup
# mke2fs -j -L BaculaVar /dev/VgBackup/BaculaVar 
# lvcreate --size=5G --name=BaculaMySQL VgBackup
# mke2fs -j -L BaculaMySQL /dev/VgBackup/BaculaMySQL
# vi /etc/fstab
(add new mountpoints /var/bacula /var/lib/mysql /var/spool/bacula)

# cd /var/spool
# mkdir bacula
# chcon -t mnt_t bacula

# cd /var
# service bacula-fd stop
# service bacula-dir stop
# mv bacula bacula.orig
# mkdir bacula
# chcon -t mnt_t bacula

# cd /var/lib
# service mysqld stop
# mv  mysql  mysql.orig
# mkdir mysql
# chcon -t mnt_t mysql

# service netfs start
(mount new filesystems)
# chown mysql:mysql mysql
# mv mysql.orig/* mysql
# restorecon -rv mysql
# chcon -t lost_found_t /var/lib/mysql/lost+found
# rmdir mysql.orig
# service mysqld start
# cd /var
# chgrp bacula bacula
# chmod 770 bacula
# mv bacula.orig/* bacula
# mv bacula.orig/.bash_history bacula
# rmdir bacula.orig
# restorecon -rv bacula
# chcon -t lost_found_t /var/bacula/lost+found
# cd /var/spool
# restorecon -rv bacula
# chcon -t lost_found_t /var/spool/bacula/lost+found
# chown bacula:disk /var/spool/bacula
# service bacula-fd start

Previous Month: October 2006
Next Month: December 2006