Legacy Archive (2014): Originally written in Chinese on doubixie.com and translated into English for this edition. All archive posts · Home

Ubuntu Server 12.04.01 Installation Notes

Original Chinese title: ubuntu server 12.04.01 installed note

Problems Encountered

  • I had a 1:5 Hadoop 1.9 cluster on hand, made up of retired non-production machines from a much earlier upgrade. They originally ran CentOS 5.4, and before being folded into the cluster, different groups had used them for coding—so every machine had different software versions, and some even had a GUI installed.
  • Setting up the cluster back then was pure torture. Fortunately, this batch of machines was just retired as a whole, so I reconfigured the hardware. Unfortunately, the 1U chassis only has a single drive bay, so I could only upgrade the RAM. In the end, I put together four machines with 2 GB RAM and 160 GB hard drives to build a fresh cluster for coding and testing.

    Funny enough, nobody else in our department works on this stuff—even though big data is getting hotter in the GIS community, still…

  • The machines are really old (i686). My first mistake was overlooking that and grabbing an x64 CentOS image. And given my painful past experience trying to install CentOS from a USB stick, USB installation was the first thing I ruled out.
  • The machines support PXE, but we didn’t have a PXE server ready. I happened to have an Ubuntu Server ISO lying around, and since the old machines only have a CD-ROM drive, I figured I’d give Ubuntu a try.

Installation

  • Booting from CD was super easy—knowing just a bit of English is enough to get through the whole install, or you can just pick Chinese if you don’t. Leaving partitioning and everything else at the defaults works fine.

  • The whole process was fast; it took me about 20 minutes to redo one machine. One slightly odd thing was that it didn’t ask to set a root password, only to create a new user.

  • A quick Baidu search revealed that Ubuntu Server assigns a random password to root, so you have to enable root manually:

    $ sudo passwd root
    enter your current passwd
    enter root passwd
    comfirm

LVM

  • You can enable LVM during installation. I hadn’t run into it before, so I checked the wiki and learned it adds an extra layer between the filesystem and the partitions, allowing virtually unlimited expansion.
  • For example, if your /var directory runs out of space, you just hook up another hard drive.
  • Though with only one drive bay, what’s the point for me?
  • Still, looking through some of the commands was pretty interesting. When I have time, I should read up on how LVM works under the hood and write up a doc.
  • Just installing four machines already took quite a while, so I haven’t started setting up the environment yet—plus the lab’s internet went down.
  • One thing to note: when installing an OS, try to plug into the motherboard ports directly. I’ve run into BIOS POST hanging because it couldn’t detect the keyboard when plugged into the case’s front-panel ports multiple times.

That’s about it.