MetaMorph

August 19th, 2008

I’ve whined multiple times about configuration management software and ideas.  I’ve posted some musings on what I’d like to see and grumbled that none of the existing solutions can scale out to what I see as my end goal.  Right now, myself and others at work use their SCM of choice, and bad script, a shared filesystem or HTTPS source, and a cron job to manage a specific service.  That sounds like something reasonable.  Lets have just one bad script.  Let’s aim it at supporting 1 to a handful of servers that provide a specific service.

Today’s coding gives us a horridly incomplete version of “MetaMorph.”  Some code, some layout and design docs.   See the GitWeb or clone via:

git clone git://git.linux.ncsu.edu/metamorph.git

More Tools

August 14th, 2008

One post about tools and it seems I can’t help but look at screwdriver sets.  Good ones are really hard to find it seems.  The Black and Decker set I mentioned in the last post seems hard to come by now.  Looks like they have replaced it with this. Which less less bits and includes a 3-position screw driver which I, personally, have never cared for. I don’t care for the pistol style screwdrivers either as they tend to change position on you while you are applying pressure in the middle of a rack. What cord was that you just accidentally caught and yanked out? I did see a Husky ratcheting screwdriver set in Home Depot a few days ago that might be a good set. It had lots of bits and a Husky driver. However, I haven’t found it online.

What did I find online? I’ve never personally used these but I sure wouldn’t mind the chance:

GearWrench seems to have several sets.  This being the one I liked the most at a reasonable price tag of $35.  Although, I’d much rather trade out the T driver for a stubby.

Everybody seems to be selling this SK stubby set. About $21. The SK stuff is usually really great, I’d like to try these. (Although the Sears price is a little high.)

Finally, of course, if your overly serious about your ratcheting set and work pays you way too much (or they buy them for you) might as well go with this Snap-On set. This is really the set I like the best and the Snap-On brand means that it should be some of the best tools you can get your hands on. Now, I’ll just go out back and pick $317 off the money tree…

Systems Administration

August 7th, 2008

A friend of mine mentioned a book that’s been making the rounds a LISA and other groups of skilled sysadmins.  The Practice of System and Network Administration.  So I looked it up on Amazon and ended up ordering myself a copy.  I must admit, I’m very impressed with what I’ve found so far.  The book is full of those rare gems of wisdom that sysadmins collect over the years.  In what I’ve read it really seems to do justice to passing on knowledge of the soft side of being a systems administrator.

The first chapter has several lists of things every sysadmin should have or know, or points to follow to assess and survive specific situations.  One of the points that I found quite useful was in dealing with getting your tools back after you’ve loaned them out.  The most common thing, of course, is loaning out a screw driver.  The suggestion of this book was to keep several screw driver sets handy and just give that person their own set rather than loan out your own tools to be lost.  Don’t accept the set back either.

This really struck home because I spent all of what I think of as my junior sysadmin years with a $10 Black and Decker screw driver kit.  Its a great kit with 80% of what you need to have for cheap.  I normally see them on display in Home Depot quite a bit.  I’ve never seen a ratcheting screw driver kit that would do better for the cash.

So, that begs the question: What do I use for a screw driver today?  My choice is the Husky Pro ratcheting screw driver.  It comes with very few (although good quality) bits, but I’ve collected my own set of bits.  (By some extra philup #2 bits while your at Home Depot.)  The screw driver itself feels really comfortable and easy to use.  The ratchet controls wont accidentally flip to another setting.  It has a long shaft not often found on a ratcheting driver that makes it easy to work with screws inside a dense rack of equipment and wires.  It is magnetic which is handy, and contrary to common belief will not harm computer componets unless you are working with a floppy disk or tape cartridge.  When I just need a normal phillups #2 I also have a few drivers from Klein Tools.

Red Hat Summit Pub Crawl Continues!

June 21st, 2008

Friday night I had the privilege to meet Maddog thanks to my good friend Drew.  Yet another night on the streets of Boston. And quite the learning experience.

Dahyabhai Twins Together Again

June 20th, 2008

Here are Nalin and Nitin!

Nalin and Nitin

RPM Package Build System

June 9th, 2008

Build systems suck.  Mostly because they are a lot harder that you would think to put together.  Its just been recently that we have the Koji system from Fedora and the Open SuSE build system.  Implementing those on site for your customized or possibly closed environments can be very non-trivial.  In my case, I found that RHN, being my gateway to RHEL packages, made using Koji very difficult.  Especially as I wanted to be able to trigger a rebuild of kernel modules every time a new kernel was available.

So, I made a poor man’s build system for my own stuff at work.  I took a lot of ideas from Fedora’s CVS based package system of a year or two ago and created something similar based on Subversion.  Toss in Mock and you have the bare essentials of a build system.  Those being 1) Backups of all your package work, 2) Versioning of your package work and each EVR released 2) Clean, repeatable builds in a controlled build root.

I’ve posted some documentation on the CLS Wiki at work which should be enough for anyone to look at my SVN repo for an example and to clone the magic for your site.  Note that, you’ll need to change the Yum configurations stored in common/mock for the Mock configs as outside folks wont have access to my yum repositories of RHEL.

FedoraKmod and Yum Updates

June 3rd, 2008

Today I was able to track down some weird dependency circles that where happening on a very few number of my machines.  Turns out my fedorakmod plugin was trying to install kmods for kernels that the installonlyn magic had on the erase list.  So I’ve added code to check for kernels being removed to fedorakmod.  Speaking of, the new upstream for fedorakmod is here:

That’s also now in git head for yum-utils.

Continuing to poke around I discovered that the postresolve hook in yum that the fedorakmod plugin uses comes before the installonlyn magic.  I also patched that so the postresolve hook comes directly after.

Almost a successful day.

RHEL INs

May 30th, 2008

Well, I’ve touched up and included my article on RHEL Installation Numbers while working through the new website.  You should see it on the right.  I’ve added a small bit about the mysterious Red Hat Global Desktop product as its now included in the installation number code.

I do admit that I was quite livid when writing that stuff up originally.  I edited out quite a bit as my personal feelings on the matter aren’t really appropriate.  Professionally, I found them to be a giant pain to integrate into a deployment of over 1,000 linux workstations and servers.  One of the many joys of Open Source is the ease that different products can integrate and the INs made things much more complex.

Lessons in RPM Packaging

May 29th, 2008

I do nasty things to RPM packages, but I feel as if I should point out some great examples of things YOU SHOULD NEVER DO.  Such as:

Version: %(echo `awk '{ print $1 }' %{SOURCE1}`)
#Release: %(echo `awk '{ print $2 }' %{SOURCE1}`)%{?dist}
Release: %{expand: %(awk '{ print $2 }' %{SOURCE1})

Wordpress?

May 27th, 2008

Working on updating LinuxCzar.net.  Never fear, old content will return just in a new format.