Web Directions South 2008

August 20th, 2008

Web Directions South 2008

Web Directions South is fast approaching. I will be chairing a panel on web application frameworks which is sure to be awesome (no really, the panelists rock!). Use the promo code “WDS08-LC” to get a discount on your ticket. Hazaah!

New Ride

April 1st, 2008

If anyone has any good ideas or inspiration for decals, get in touch. :)

New Ride

Sugino

Get a Haircut, Have a Shower, and Get a Life

March 28th, 2008

Streetwise Are a Pack of Morons

March 20th, 2008

Do not spend money with these people.

Do not leave your mac in their care. They won’t repair it, they will keep it for 6 weeks and then return it to you worse than it was before. For extra kicks they will throw away your serial number sticker - ensuring you’ll have lots of fun with Apple if your hard disk dies at any point in the future.

Ass clowns.

Faith in Science

March 5th, 2008

Hot t-shirts designed in Melbourne. Big-ups nhd.

Click to buy.

Wheel

Bars

Some Things

January 17th, 2008
  • Issue 4 of OneMag (web site out of date) is out now. It has one/some of my photos in it apparently (I haven’t seen it yet). It’s available at all good bike stores.
  • Despite my name being omitted from the advertised line-up I will be playing at Kiss My Grass 2008 at the Sidney Myer Music Bowl on Saturday Jan 26. Come along for a fun day in the sun!
  • The Australian premiere of Mash SF happens this Sunday at Rooftop Cinema, 7PM. Wicked! Check the trailer at the mashsf.com and buy tickets online from the Rooftop Cinema web site.

Friday Fixin’ Fun

October 5th, 2007

MySQL server-id woes on Redhat/CentOS

July 12th, 2007

Problem

You’re trying to set up MySQL database replication and despite having correctly set your server-id on the master and slave you keep seeing the following message in the slave server error log: Misconfigured master - server id was not set.

Solution

Bug #3829 states that you can not set the server-id using the SET GLOBAL command.

But I didn’t do that, I set it in my my.cnf and then reloaded MySQL. Whatevs, nerdz.

After much mucking around this morning I realised that reloading MySQL is roughly equivalent to using the SET GLOBAL command. If I think long and hard enough I suppose that makes sense. So…
service mysqld stop
service mysqld start

A few seconds outage on the production server, but now we’re in business.

Melburn-Roobaix 2007

June 30th, 2007

Adding a physical disk to LVM in Redhat/CentOS

June 29th, 2007

Posted here for googlers and for my own future reference. Documentation pulled together from about 4 different sites. Could possibly be sub-titled: “Holy crap, the disk in my VMware installation is too small - it’s split up into 2GB files and using vmware to resize it seems like voodoo”

Problem:

My computer only has 20GB of disk space. I just have 1 partition. I want to add another disk (40GB). I don’t want to add another partition (and I really don’t want to reinstall the whole system), I want to increase the size of the root partition to 60GB. i.e. I want the root partition to span across two physical disks.

Solution:

  1. Add new physical disk. Boot.
  2. # pvscan

    This will show you the current physical volumes.

  3. # fdisk /dev/sdb

    Add the disk to your machine as a primary partition. Partition type: “8e (LVM)”. Obviously /dev/sdb may be different on your system.

  4. # pvcreate /dev/sdb1

    This creates a new physical LVM volume on our new disk.

  5. # vgextend VolGroup00 /dev/sdb1

    Add our new physical volume to the volume group: VolGroup00. Again, this group name may by different for you, but this is what Redhat & CentOS assigns by default when you install your system.

  6. # pvscan

    You should see the new physical volume assigned to VolGroup00.

  7. # lvextend -L+40G /dev/VolGroup00/LogVol00

    This increases the size of the logical volume our root partition resides in. Change the -L flag as appropriate.

We’ve just added 40GB to the logical volume used by the root partition. Sweet as. Now we need to resize the file system to utilize the additional space.

  1. Reboot into rescue mode using your CentOS CDROM.

    From memory this involves typing linux rescue as your boot option.

  2. When prompted, skip the mounting of system partitions.
  3. # lvm vgchange -a y

    This command makes your LVM volumes accessible.

  4. # e2fsck -f /dev/VolGroup00/LogVol00

    Run a file system check, the -f flag seems necessary. No idea what we do if the returns an error?

  5. # resize2fs /dev/VolGroup00/LogVol00

    Without any parameters resize2fs will just increase the file system to the max space available.

Reboot and your root partition is now 40GB lager, spanning multiple disks. Yay.