An on-again off-again GIS project prompted me to look for a new computer. For a long time my primary computer has been a laptop, with a small menagerie of leftovers filling other roles — the previous laptop now lives in the shop where it can drive the CNC, in turn its predecessor is in my office as a Linux box, and its predecessor is a netbook which isn’t really good for much at this point. Additionally there’s an odd collection of Raspberry Pi’s for various projects, etc.
Anyway, back to the story. I’ve played with computing and mapping isochrones as a way to visualize travel time envelopes, e.g. “what is the geographic area within 1 hour of my house.” I looked at a couple commercial sources for this data, the first was TravelTime, and then more recently I experimented with ISO4APP. Both of them worked pretty well, but both also wanted me to pay for their service, so that got me looking further afield. Most recently I found OSRM, the Open Source Routing Machine, which is a pretty neat setup.
OSRM is a fast (very fast it seems) routing engine that imports OpenStreetMap data. Using it I can, for example, compute isochrones by querying for point-to-point to travel times (i.e. find the best route from point A to point B) and iterating over some area of interest at whatever desired resolution. Happily they’ve gone out of their way to make it easy to run OSRM locally: they have docker images that run their latest and greatest, so all you have to do is download whatever OpenStreetMap data you’re interested in, fire up docker on your local server, and you’re off to the races! I found that I could run pretty good size datasets on my laptop, e.g. all of New England, but if I wanted to run bigger data, e.g. all of North America, I’d need to stand up a bigger machine, in particular more memory.
Big iron
I looked at doing a hosted instance on AWS, where you can easily get 512GB of memory or more for only a few dollars an hour. I thought about going down that path — certainly all the cool kids rent license all their software and rent all their hardware. However, figuring out the vagaries of how to run something on EC2 just didn’t sound that appealing, at least not if I had any hope of keeping momentum on my project. So I started looking around to see what I could find in terms of used junked refurbished hardware.

I poked around on Amazon and Newegg, both of which have tons of third-party resellers on them trying to unload used hardware. It looks like the resellers are in a battle to eliminate any possible profit, for example, I settled on a 16 core server with 192 GB of memory for just under $500, including tax and shipping. What did I get for my trouble? A 6 year old (built in December 2015) 1U rackmount server, with the aforementioned 16 cores (dual 8-core Xeon processors), a big pile of memory, and a tiny 300GB hard disk. My assumption is that the resellers are all scraping components from the machines in order to build more desirable configurations, so this one was memory heavy with virtually no disk. I figured I’d add another disk to it on the cheap, rather than investing in an outdated 8x300GB spinning platter array. Was it a good investment? I don’t know, it seemed like it would be more fun than giving even more money to Bezos.
Darkness was over the surface of the deep
What’s the first thing to do with a new computer? Plug it in and turn it on! What does that require? Well, probably a power cord or two, maybe a network cable, a keyboard, mouse, the usual. Also a monitor is useful, in particular a monitor that’s compatible with the computer. A million years ago there was a video standard called VGA, and it used a standard 15-pin connector. Since then there’s been a cavalcade of different (and almost universally better) video standards and connectors: DVI, HDMI, DisplayPort, the list goes on. Needless to say, this server only has a VGA video connector, and while I do have a single monitor with a VGA input (only because I had been putting off making a trip to the electronics recycler) I have zero VGA cables. Thus the next project was to order a VGA cable.

1280×1024 I guess? 1024×768? 
That’s right, almost 20 years old, even then VGA was a fallback choice
It turns out you can get a little dongle type thing that turns VGA into HDMI. The little dongle needs power to operate (VGA doesn’t provide any) so it does what all cheap little dongles do — it has a micro-USB port to steal power from any free USB port. The dongle seemed like a better long term solution (HDMI isn’t going anywhere, I have lots of monitors that offer it as an input) so I skipped the VGA cable. In hindsight it was dumb not to pick one up to have it just in case, but it didn’t turn out to bite me later, so all’s well that ends well.
Little iron
VGA-to-HDMI dongle in hand, I was back in business. Once I got Linux installed on it, which was painless, it was time to get OSRM running, in particular the data that was too big for my laptop to crunch! It handled it happily enough, although the cooling system did get crank up to what I assume must be full bore — imagine you’re waiting on the runway to takeoff, the pilot has got the power all the way up on the engines, but you haven’t started rolling yet. Like that, only louder.

Sadly my victory was short lived, as the data once crunched — or perhaps while crunching — had managed to completely fill the single disk in the machine. Nothing to be done but throw some money at the problem. I bought a new 2TB 2.5″ HDD and a handful of aftermarket HDD sleds, both from the aforementioned spaceman, and I was soon to be back in business.
The new hard drive is comically tiny. It appears to be about 1/3 the height of its sibling, the 300GB system disk, while it’s spinning at about half the speed it does have about 6x the capacity. I installed it in a sled and slid it into one of the available drive bays (4 on this particular server, although I think DELL configured these with up to 10 bays back in the day) and booted the machine. So far, so … nothing? Hmm. The new drive isn’t visible to the OS at all. Let’s reboot and take a pit stop in the BIOS and see what’s going on. Well, I can see the drive there, after a fashion. I have to spelunk down in the setup for the RAID controller, but it acknowledges that there are two physical disks attached to it. Hmmmm, what am I missing?
A little bit of digging around and I’ve got the manual for this machine which mentions in passing that multiple disks in the same volume must all be of the same “type”, e.g. SAS (serial attached SCSI) or SATA (serial something or other — what you’d think of as a regular hard drive). Of course my system disk is SAS and the cheapo drive I bought to add on is SATA. Interestingly the connectors are identical, but there are good technical reasons to prefer SAS in some cases I’m told, beyond it being more expensive. Anyway, maybe I have angered the RAID controller by allowing SAS and SATA to lie together in sin. Okay, let’s shut it down and move the new drive into a different bay.
Crap, the new drive still isn’t visible. It’s about now that I come to remember that I have never had a positive experience with RAID. Granted, to my knowledge I’ve never been in a situation where I needed RAID for any reason, so every encounter with it has either been neutral (it was present, and I didn’t care) or negative (it was present, and it was screwing me). Well, um, crap. The RAID controller is on a little daughterboard, which suggests maybe it’s optional? Okay, let’s disable the RAID controller in the BIOS, reboot, and see what happens. What happens is predictable — the machine now cannot see any hard drives at all. Crap crap crap.

Maybe I can just pull out the RAID controller completely and start over from scratch? Sure, I’m probably setting myself up to have to reinstall everything from scratch, but whatever, I’d really like to get this working. Of course pulling the RAID controller didn’t fix anything. The machine couldn’t see the hard drives with the RAID controller missing. Crap crap crap crap crap.
Around here I lost the thread, I feel like I tried another several hundred things, none of which worked. It couldn’t have been that many, because I sussed it all out over the course of an afternoon, and each reboot of the server was a several minutes long exercise, so I simply couldn’t have tried that many permutations.
The final “answer” (thing I tried that worked and I was willing to accept) was I had to create a “virtual disk” on the pre-existing system disk (the 300GB disk the machine shipped with) in order for the RAID controller to recognize it at all. Mysteriously the system disk did not have a virtual disk defined for it in the RAID controller originally, which makes me think I probably screwed up at some point in all of this. I additionally had to tell the RAID controller to boot from the system drive (you know, the drive with a bootable OS on it) instead of the data drive, because when I added my new data drive to the RAID controller it was the default drive, aka “drive 0” despite the fact that the system disk already existed and was in use at the time.
Moral of the story
The grass is always greener on the other of the fence? I don’t know. For a little bit money and a moderate amount of irritation with a RAID controller I got a 45 pound rackmount server that can live in a closet down in the workshop and crunch away on various things or nothing at all. At current EC2 prices I could have bought well over a hundred hours of server time on a suitable large instance, so from a simple economics analysis it seems like an obvious loser, although it did spare me from having to wade into the vagaries of EC2, and for that I am grateful.





