Creating a Git repo on CentOS 5.4 and then using it.

Got some info from various sites, so thought I would consolidate it here.  I just started a new project on my Mac and I want to back it up on the net.  Here is what I did:

On CentOS 5.4 Server

yum -y install zlib-devel openssl-devel perl cpio expat-devel gettext-devel autoconf curl curl-devel gcc
ldconfig
1
wget  http://www.codemonkey.org.uk/projects/git-snapshots/git/git-latest.tar.gz
tar zxvf git-latest.tar.gz cd git-<date> make configure ./configure --prefix=/usr make make install

When done you should be able to run:

git

and see a help message.  Nice!  This means git is installed.  Now let’s set up a repo.

mkdir -p /var/git/cookingwright
cd /var/git/cookingwright.git
git  init

Cool, we now have a blank repository on our CentOS 5.4 server.

On the Mac Book Pro

So I’ve been developing this base project on the MBP so now I want to make sure I start using SCM/git.  So I go to my app:

cd ~/Sites/cookingwright
git init
git add .
git commit -am 'initial release'
git remote add origin ssh://benincosa.com/var/git/cookingwright
git push origin master

Now I’m git-afied.  Hurray!

RMagick/ImageMagick

I got a good tutorial here:

http://www.gra2.com/article.php/using-rmagick-imagemagick-rails

for installing this. I’m installing it because I need it for, (what else?) manipulating images:

Well when I first tried to run:

sudo port install imagemagick

I got the nice errors telling me that make couldn’t be found… Shesh… so I had to reinstall Xcode and then I had to reinstall zlib:

sudo port upgrade –force zlib

Then it finally built!

Anyway, then it was just:

gem install rmagic.
For Linux I thought it would be easier, but it wasn’t because my RPMS were older.  6.2 instead of 6.3 or greater.  (I’m using
CentOS 5.4 but apparently this isn’t new enough)

I thought the answer was:

yum -y install imagemagick ImageMagick-devel

With tons of  dependencies!! But when running:

gem install rmagic

I got the error:

Can’t install RMagick 2.12.2. You must have ImageMagick 6.3.5 or later.

So after trying a few things, I found this blog entry to be the most helpful:

http://andrewduck.name/2009/01/imagemagick-64x-on-centos-5/

(Look at the notes below, that’s what I used) and was able to get it installed:

- yum remove ImageMagick

- use the configure options and make, make install

- Then tried to build again:

gem install rmagick

Windows Server 2008 iSCSI on xCAT

I wrote a little last year on installing Windows iSCSI with xCAT. Its a great trick and there’s more that Windows has come out with since then to make their HPC product do similar things.
The only problem with doing this on xCAT is that its a huge landmind of problems. Coupled with the fact that doing this on VMware makes it a slow process I thought I’d list all the things that can go wrong.

Here are the issues I ran into that took me quite a while to go through and debug:

1.  Corrupt ISO image.  A corrupt ISO image will actually copy with xCAT’s copycds and then you’ll actually see it expand just fine.  It isn’t until you get to the setup.exe when you start seeing messages like:

“this application has failed to start because SPWIZENG.DLL
was not found. Re-installing the application may fix this problem.”

“the file ‘autorun.dll’ could not be loaded or is corrupt. setup
cannot continue. error code is [0x7E]”

These errors were both due to a bad ISO.  I found the windows ISO on their website, downloaded it and problem solved.

2.  VMware DHCP server

You have to disable this!  Then you can let xCAT do all the DHCP work.  Even if xCAT serves the first DHCP and you get the iSCSI, there’s still some DHCP requests that happen after the install.  If you don’t get it then you have problems.

3.  Wrong or bad WinPE file

I was using a WinPE file that I had made from a Windows 7 install to do Windows 2008.  They are supposed to be backwards compatible, but this one didn’t work for me.  It could be that I forgot to include the right drivers.  But it worked just fine until all the sudden it dropped the iSCSI connection.  (I saw this in my syslog as it tgtd would get an unexpected disconnect)

4.  / file system full!

I didn’t realize that I had filled it up!  But apparently I did.  Total bummer.  So I had to clear out some data.  I found out this was so because the samba server wasn’t making any connections.  When I trolled through my logs I saw that it was because there was no space left!  Yikes.  I should have done something better to take care of that.

5.  xCAT tables…

This is where you can really be thrown off.  Especially if your noderes.netboot is set to pxe.  It should be set to xnba for it to work properly!

6.  gPXE or xNBA?

I couldn’t tell if gPXE was the problem so I tried to upgrade to 1.0.  This only made matters worse because of certain things xCAT does with DHCP.  (xNBA by the way means xCAT NetBoot Agent, which is gPXE with some patches)

So after a day or so of hacking around, we’re back to having xCAT deploy Windows Server 2008 over iSCSI without any special hardware.  Still a pretty decent solution for anyone looking for Windows Stateless.  Its as close as it gets right now.

How a real man downlaods Windows 2008 Server

wget http://download.microsoft.com/download/B/4/D/B4DC75A1-D7D2-4F31-87F9-E02C950E8D31/6001.18000.080118-1840_amd64fre_Server_en-us-KRMSXFRE_EN_DVD.iso

New pastures

Today is my last day as an employee at IBM. Its been fantastic. I’ve had a great experience to learn about this business of scale-out computing. I’ve met with some bright minds and gained experiences I could have no where else.

I’ve been able to visit data centers of nearly every big company in the industry and see how they opperate: Boeing, Toyota, Honda, JP Morgan Chase, Visa, Bank of America, NYU, Ohio State, USC, Google, NERSC, Berkeley, UCLA, Blizzard, Acxiom, Shell, BEA, IPICyT, iStockPhoto, Latisys, Lego, Lockheed Martin, NASA Goddard, NAVO, UNF, NetApp, Omniture, Adaptive Computing, PayPal, eBay, PNNL, SafeCo, SciNet (University of Toronto), Sony, Warner Brothers, Threshold, Synopsys, TV Guide, HBO, University of Chicago, University of Pittsburgh, ARL, Voonami… and I’ve configured machines for dozens of places I never visited.

So I’ve gained a very good perspective as to what people are doing and how the manage things. This perspective has given me more confidence than ever as to what kind of solutions people are looking for and what solutions I can deliver.

So I’m striking out on my own to deliver these solutions. Fortunately, I’m not entirely alone. I’ve got a good group of people at ThinkAtomic that will be teaming up with me to make this happen. I look forward to sharing more as things develop!