Saturday, 28 November 2009

Uptime

Last night:
[dante@roxy dante]$ uptime
01:52:10 up 371 days, 4:31

This morning:
[dante@roxy dante]$ uptime
13:56:54 up 16 min

Not that, you know, we use uptime as any sort of currency or anything... Anyhow, the long and short of it is that BC Hydro did some work in the area this morning, and they cut the power for 5 hours. So I had to shut down roxy for the first time in over a year. Pretty good for a 9+ year-old box. The drives aren't 9 years old (well, one of them might be), but everything else is for sure.

What's my secret? Frequent vacuuming ;)

Friday, 20 November 2009

Pay attention

I remember chatting with one of the engineers some years ago when I worked at the ferries. He was telling me a story about somebody who'd bumped into something and knocked off a bolt or some such, and caused a few thousand dollars worth of damage. The moral of the story was, "If you touch anything accidentally, look around and make sure you didn't fuck something up." Sage advice.

Fast forward to late 2008. I was editing my Samba configs, and was trying to figure something out, so I cranked up the logging to full debug (see where this is going yet?). Once I was satisfied, I closed smb.conf and walked away, leaving the log level at 9. Tsk.

This evening I was doing some PHP on the old box via Samba (why use vim when you have EditPlus). For some reason it was taking a long time - 2 or 3 seconds on occasion - to open the files. WTF. Top didn't show anything too untoward, except... hold on, the swapping daemon seemed to be working a lot harder than it should have been. What the hell is swapping? I restarted a few services, but nothing really made a difference.

I started poking through logs, and eventually found out the Samba logs were approaching 500MB in size. So of course Samba itself is the culprit, because not only is it logging like mad, it's appending that text onto the end of a HUGE file. So I cranked the logging level back down to 2, rotated the logs, and whaddaya know - files are opening quickly again.

Seriously - if you touch anything accidentally, look around and make sure you didn't fuck something up.

Tuesday, 17 November 2009

iPhone Blogging

For reasons not interesting to anybody, I was looking at our blogs with an iPod and noticed how nicely Todd's was formatted. Apparently he mentioned this a while ago.

So I enabled the plugin on my own blog, simple as that. Thanks Todd, it looks fabulous.

Monday, 9 November 2009

Cosmos

My last post was about James Burke and the genius that is Connections. Next on my to do list is Carl Sagan's Cosmos. Sagan's style is certainly different than Burke's, but no less visionary, and certainly no less interesting.

Strangely enough, I never watched this series when I was a kid, I'm not sure how it slipped past me. I haven't finished watching them all yet, but really enjoying it so far. One of his favourite phrases is, "I wonder...", and you can tell that he really did wonder.

We miss you, Carl.