Monthly Archives: August 2012

Pestogate

I hate it when the supermarket runs out of the larger 350g Pesto containers – particularly when they charge $2.57 per 100g vs $5.11 per 100g depending which size container is purchased…

PESTOGATE!

Incidentally the above pictured Genoese-brand pesto is the most delicious thing that has ever graced the shelves of the supermarket, I will literally scoop this stuff into my mouth with my hands at times.

Android alarm UI WTF

I like Android, but there are a few times the UX (User Experience) is a bit messed up compared with the way the user thinks. For example, take the newly introduced alarm clock time selection interface added in ICS:

So the alarm time selection gives me the ability to drag the time up/down, simple enough, most users understand dragging on touch screen devices. However if one decides to tap the up/down buttons instead…

I guess the developer decided that the up button should increase the time and the down should decrease which would make sense if it wasn’t for the fact that the user can see the preceding and following numbers which changes their perspective from the arrows being for numerical incrementing to the arrows being for sliding/rotating the displayed numbers on screen.

It’s even more annoying since it worked logically on pre-ICS devices only to be changed and broken in this confusing manner. :-(

Auckland Sky Tower

For my last day at work, I was lucky enough to get a task to go up the Auckland Sky Tower to perform some maintenance in the data center up there – despite living in Auckland for the past 12 months, I hadn’t yet gone up the sky tower; no thanks to the excessively high fees to visit the viewing deck.

The Auckland Sky Tower Data Center is located high up on levels 47 and 48 and is a popular location for routers and peering, thanks to the great line of sight range for any wireless telcos or microwave point-to-point links and is also the home of the Auckland Peering Exchange.

It’s one of the weirder data centers I’ve been in to thanks to the floor to ceiling windows with sun streaming in and the odd bungy jumper flying past the windows on the northern side.

I got some great pictures out over the city from up there – sorry no rack pictures however, didn’t want to upset anyone by posting pictures of their racked equipment.

They’re beaming the bits into my brain!

Looking out over the Viaduct with Takapuna in the distance.

Looking over the CBD – the line in the middle of the picture is the bungy jump wire.

Middle of the CBD and the port. Devonport in the distance, with Rangitoto behind that.

Weird looking microwave transmitters.

Auckland harbor bridge and the viaduct.

Motorway to the south of the harbor bridge.

Mmmmm non-ionising radiation :-D

When I buy a house I’m totally installing cable run trays like this for all my servers.

Dreamiest blogger ever!

Panorama!

Over all a very cool trip and considering it’s free to go up (if you have equipment racked there) and parking is free for data center customers in the sky tower, it’s the best value observation level around. ;-)

Goodbye mighty steed

Sadly with my move to AU, I now have to make the painful decision to sell my 1997 Toyota Starlet, the mighty steed that has lead to many great travels with me.

I have a listing up on Trademe with all the details, if you’re interested in a great economical vehicle take a look, or flick it through to any friends whom are. ;-)

Car is currently in Wellington, but if you live anywhere in the North Island, it’s an easy trip to get it home.

Goodbye environmentally destructive, war-causing friend.

Welly Plans

Drove down to Wellington from Auckland last night (8hr drive), unloaded all the stuff at parents place and will be here for a few weeks before flying out.

I’m in Wellington until the 15th of September, Lisa is here with me until the 31st August, we are doing a join catch up with friends at 17:00 on August 29th at Fork and Brewer, followed by food at a yet-to-be-determined location.

Would be awesome to see our Welly friends there before Lisa heads off. I’m also keen to do any 1-on-1 catch ups in the weeks before I leave, so drop me an email/IM/SMS/whatever to make some plans. :-)

Getting there!

Whilst I’ve been selling off a lot of stuff lately, I started attacking the apartment properly this weekend and the evenings since, going with a system of 3 piles –  stuff to take to Melbourne, stuff to store in Wellington and stuff to sell/donate/trash.

The Melbourne pile is actually really small, at the moment I might be taking as little as some clothes, my laptop, some books and a router. I’ve cut down the stuff to store in Wellington a lot, mostly just a few boxes of personal stuff I want to keep (mementos, books, Libretto laptop collection).

I haven’t decided whether I want to take my IBM Model M keyboards yet or not, they’re amazing keyboards, but part of me is pondering going laptop-only whilst in AU – giving my laptop only a go this week as I’ve now packed away the keyboards and LCDs.

OMG look at all the desk space now!

OCD box organization.My label maker and I are having a lot of fun together with this move.

Couches are gone, lounge looks like even more of a bombsite.

The computer desk, TV and bed have now sold, but still need to sell the dining table, otherwise it’s going to have to squeeze into the van heading to Hawkes Bay and to be sold from there. :-/

Other items that haven’t sold, I’ll re-try from Wellington, along with a lot of additional things I have down there.

Meanwhile I’m loving the new found minimalism in my flat, I kind of want to go to Melbourne and have an empty apartment with nothing but my laptop and a stereo.

I’m particularly resistant to having a TV again, I find them a real intrusion into regular life – when there isn’t one around, I’m much more productive and do useful things or read, rather than blobbing – even when it’s not set to recieve TV broadcasts, they just consume so much space and become a focal point of the lounge.

I am taking my Mac Mini to use as a media center, but may just attach a large 27″ computer panel to it when in AU to watch movies when wanted – just pondering the best way to setup my flat that it’s still easy to watch stuff when desired, but in such a way that the media center isn’t the focal point of the lounge – I really want to spend my time in AU being way more productive and creating lots more content, rather than consuming.

Of course considering that my big KVM and file server is going to stay behind in NZ, I’m going to have much less access to my content, which may force me to do useful things like blog and code more. :-)

Home is where my computer is

Jack asked me yesterday about the ISA video card in the background, by my TV.

Home sweet home! Click the image for a larger version if you want to read the PCB.

I found it when at the Broadbeach Markets, in Gold Coast, Brisbane, Australia one year at a random stall, I don’t normally collect much in the way of trinkets, but this is one of the few that I have. :-)

Slowly clearing my stuff…

Sorry for another marketing sales interruption, but I’ve listed the remaining items of furniture from my flat onto Trademe this evening.

It includes some good stuff like a great computer desk, chair, bed, dining table and other items, if you’re in Auckland or know somebody in Auckland who needs better furniture, please point them towards it. :-)

I’m trying to get rid of anything sizable before I head to Wellington, once down there I’ll be going through all my computer gear and having a final sell off of everything I no longer require.

Naturally selling the furniture is the number 1 priority. ;-)

You can view my listings here.

 

gdisk, oh glorious gdisk

My file server virtual machine passed the 2TB limit a couple months ago, which forced me to get around to upgrading it to RHEL 6 and moving from MSDOS to GPT based partitions, as the MSDOS partitioning table doesn’t support more than 2TB partitions.

I recently had to boost it up by another 1 TB to counter growing disk usage and got stuck trying to resize the physical volume – the trusty old fdisk command doesn’t support GPT partitions, with most documentation resources directing you to use parted instead.

The problem with parted, is that the developers have tried to be clever and made parted filesystem aware, so it will perform filesystem operations as well as block partition operations. Secondly, parted writes changes whilst you’re making them rather than letting you discard or write the final results of your changes to the partition table.

This breaks really badly for my LVM physical volume partitions – as you can see below, parted has a resize command, but when used against an LVM volume it is unable to recognize it as a known type and fails with the very helpful “Error: Could not detect file system“.

Naturally this didn’t put parted into my good books for the evening – doing a search of the documentation didn’t really clarify whether doing the old fdisk way or deleting and re-creating partitions at the same start and end positions was safe or not, but the documentation suggested that this is a destructive process. Seeing as I really didn’t feel like have to pull 2TB of data off backup, I chose caution and decided not to test that poorly documented behavior.

The other suggested option is to just add an additional partition and add it to LVM – whilst there’s no technical reason against this method, it really offended my OCD and the desire to keep my server’s partitioning table simple and logical – I don’t want lots of weirdly sized partitions littering the server from every time I’ve had to upsize the virtual machine!

Whilst cursing parted, I wondered whether there was a tool just like fdisk, but for GPT partition tables. Linux geeks do like to poke fun at fdisk for having a somewhat obscure user interface and basic feature set, but once you learn it, it’s a powerful tool with excellent documentation and it’s simplicity leads it to being able to perform a number of very tricky tasks, as long as the admin knows what they’re doing.

Doing some research lead me to gdisk, which as the name suggests, is a GPT capable clone of fdisk, providing a very similar user interface and functionality.

Whilst it’s not part of RHEL’s core package set, it is available in the EPEL repositories, hopefully these are acceptable to your environment:

Once installed, it was a pretty simple process of loading gdisk and deleting the partition before expanding to the new size:

Most important is to verify that the start sector hasn’t changed between deleting the old partition and adding the new one – as long as these are the same and the partition is the same size or larger than the old one, everything will be OK.

Save and apply the changes:

On my RHEL 6 KVM virtio VM, I wasn’t able to get the OS to recognize the new partition size, even after running partprobe, so I had to reboot the VM.

Once rebooted, it was  a simple case of issuing pvresize and pvdisplay to confirm the new physical volume size – from there, I can then expand LVM logical volumes as desired.

 

 

 

 

 

 

Note that pvresize is a bit annoying in that it won’t show any unallocated space – what is means by free PE, is free physical extents, disk that the LVM physical volume already occupies but which isn’t allocated to logical volumes yet. Until you run pvresize, you won’t see any change to the size of the volume.

So far gdisk looks pretty good, I suspect it will become a standard on my own Linux servers, but not being in the base RHEL repositories will limit usage a bit on commercial and client systems, which often have very locked down and limited package sets.

The fact that I need a partition table at all with my virtual machines is a bit of a pain, it would be much nicer if I could just turn the whole /dev/vda drive into a LVM physical volume and then boot the VM from an LVM partition inside the volume.

As things currently stand, it’s necessary to have a non-LVM /boot partition, so I have to create one small conventional partition for boot and a second partition consuming all remaining disk for actual data.

nagios check_disk trap

Let’s play spot the difference:

[root@localhost ~]# /usr/lib64/nagios/plugins/check_disk -w 20 -c 10 -p /home
DISK OK – free space: /home 111715 MB (4% inode=99%);| /home=2498209MB;2609905;2609915;0;2609925

[root@localhost ~]# /usr/lib64/nagios/plugins/check_disk -w 20% -c 10% -p /home
DISK CRITICAL – free space: /home 111715 MB (4% inode=99%);| /home=2498209MB;2087940;2348932;0;2609925

Make sure you that you define your units of disk or add % to your Nagios checks otherwise you might suddenly find yourself running to add more disk….