January 2010
3 posts
2 tags
Distributing Compilation with distcc
Distcc has a client and a server. To build the client, you need python-devel package.
On server nodes:
distccd —daemon —allow 192.168.246.102
On client:
create ~/.distcc/hosts file with IP addresses of all server nodes
run distcc —show-hosts to verify it has a list
use make -j8 CC=distcc to build something
I had to build the distcc client/server code from source on a...
2 tags
Recovering Crashed Mysql tables
If you see error messages in /var/log/mysql.log about a table being crashed, log into the mysql console and run: recover table;
Pretty easy!
For tpcw, you can use this script to recover everything:
repair table item; repair table country; repair table author; repair table customer; repair table orders; repair table order_line; repair table cc_xacts; repair table address; repair...
5 tags
Resizing Ext3 Partitions
These were the basic steps I had to go through to resize a partition inside of a DRBD disk device. I think a similar procedure would be needed to resize the disk inside a file based disk image.
Check the partition info using parted’s “print” command
Number Start End Size Type File system Flags 1 32.3kB 107MB 107MB primary ext3 2 ...