Software RAID - Migration 3

Posted by JD 02/12/2010 at 19:34

Today I migrated a RAID5 external array from 1 server to my newly built Core i5 server. I specifically chose to use software RAID when I installed it in 2007 just so this migration would be possible and easy.

Basically, everything went as planned with only one small issue.

Mostly Dead Dell 1535 Laptop 5

Posted by JD 02/09/2010 at 10:59

Last evening, I noticed that my Dell 1535 Laptop wasn’t responsive. It was recording a TV show with the Hauppauge 950Q USB QAM tuner at the time, among other things that it always does.

Below I’ll discuss symptoms, trouble shooting methods and my resolution

New Server Build - Conclusion

Posted by JD 02/08/2010 at 07:44

This is a series of articles around building a new Intel Core i5 server for use in a small business. Please start with New Server Build Part 1

In Part 3, I ran a few tests. They all completed cleanly.

Lilo / XFS

Nice CPU Comparison Website

Posted by JD 02/07/2010 at 08:16

About once a year I need to compare laptop and desktop CPU performance. I find myself searching the normal PC hardware websites like

New Server Build - Part 2

Posted by JD 02/04/2010 at 17:03

So with all the equipment here, I began the server build. Refresh your memory for components by reading New Server Build – Part 1.

The Old Machine

Before beginning this build I booted the old machine; it was running FreeBSD previously. It had an Athlon 1800+XP CPU, 2GB DDR RAM and AGP graphics. It also had an S3-Virge PCI video card AND an SMC 1000base-tx GigE NIC. Both the NIC and video card were reused in the new server build.

The old machine also had (3) IDE devices – (1) DVD-RW and (2) WD 250GB disks. The motherboard only supports 1 IDE cable, so I’ve connected it to the DVD and 1 of the disks. At some point, I need to boot off USB or get/scrounge a SATA boot disk. I do have a spare 3.5" 1GB SATA, but that is used for weekly off site backups currently. I’ll probably try using a 2GB SDHC flash drive for boot since the host OS only runs the hypervisor.

Bad Parts

New Server Build - Part 1

Posted by JD 02/03/2010 at 09:23

I’ve needed to build a new server for about 6 months, but delayed spending the money as long as possible. I’ll be reusing many old components and have purchased the main new items listed below.

Server Purpose

Pages Without Dates

Posted by JD 02/02/2010 at 10:49

A Newspaper with no Date

Crazy, right?

We’ve all come across web article pages that don’t have date on them. In the web-time, days or years can matter, yet when a website doesn’t tag every article with a date, you have no idea how current there information is. This is fine for a very small subset of articles, but when reading an article on Windows7 or Xen virtualization, certainly you can understand that the date of the article provides context for what the writer knew. If the Windows7 article was written in August 2009 or earlier, they were looking at an RC, Release Candidate, not the final publicly released version.

Reading a blog or article that isn’t a date tagged is like getting a newspaper without a date.

This applies to any document. Think of how much adding just a date to a page and document tell each reader. What happens when there are 2 or more versions of a document? Well, if every page has a date on it, there is not issue. The reader KNOWS which is the latest information.

Time matters, so please put a date on your articles, blogs, websites, AND paper documents.

Cleanup After Linux Kernel Updates 1

Posted by JD 01/30/2010 at 08:49

Update May 2021

dpkg -l 'linux*' | awk '/^rc/{print $2}' | xargs sudo apt purge -y

Original Article

If you run Ubuntu Server LTS releases like I do, you are probably wasting disk space and, because of that, backup storage because old files tied to old kernels aren’t cleaned up automatically.

After locating and cleaning up the old kernel files, I regained over 1GB of space. I was getting low on storage on / otherwise I wouldn’t have bothered.

First Method – Package Manager

When you use a package manager for installations, you want to use it for removals too.
First, I want a list of installed kernel specific packages

sudo dpkg-query -l | egrep -i ‘2.6.17|2.6.2[0-3]’

Ouch. That’s a big list with many old, unused packages still installed. If you have Synaptic installed, using the search in that tool will let you easily multi-select packages for removal. Without X/Windows, you’ll be at the command line with me. Time to start removing them with cmds like this.

sudo apt-get remove linux-source-2.6.17 vmware-player-kernel-modules-2.6.17-10 xen-image-xen0-2.6.17-6-generic-xen0 linux-image-2.6.20-17-generic linux-restricted-modules-2.6.20-17-generic

Package managers remove libraries and programs, but avoid removing configuration files, since the next version of a tool probably needs them. If you are truly removing an application, you’ll probably want to purge the install to remove the conf files too.

Second Method – Find and Locate

I use locate and updatedb. I can’t imagine running servers without these tools. To start, I wanted a list of locations to look through and determine how much waste I had. On the server, we are using kernel 2.6.24-26-generic today. To find almost all the files, use

locate  2.6.24 | egrep -vi /backup > /tmp/old-kernel-files

These commands return a list of files, remove backups from that list and put the list into a /tmp file for reference.

On my Ubuntu system, files were located in:

/boot
/lib/modules
/lib/firmware
/linux-restricted-modules/
/usr/src

I had about 10 old kernels lying around beginning with 2.6.17. Because I wanted to be very careful with removing these files, I manually typed the cleanup commands in each directory. A few examples:

sudo rm -rf 2.6.17-*
sudo rm -rf 2.6.24-2[3-4]*
sudo rm -rf linux-headers-2.6.17-1*
sudo rm linux
sudo rm -rf linux-source-2.6.17 orig-linux-headers-2.6.17-10*

Definitely be careful. It is easy to remove the wrong files by accident with a bad pattern.

Good luck getting that space back!

Does Windows7 Run .... X

Posted by JD 01/29/2010 at 07:38

I follow a few email lists. Whenever they list is not related to Linux, there are always MS-Windows questions. With the release of Windows7, more and more of those questions are about specific software working under Windows7, especially when there were issues under Vista. Most of this article was taken from an email concerning Investors Toolkit, TK6, and whether it will run on Win7 on a Netbook.

The Questions

Can Window7 run … whatever-program

Top Old School UNIX Tools I Can't Live Without

Posted by JD 01/27/2010 at 09:58

  1. tcsh – the one true shell (bash is workable)
  2. ssh
  3. perl
  4. locate
  5. vim
  6. cron / at
  7. aliases – mainly to correct common misspellings
  8. egrep
  9. pushd/popd
  10. find
  11. man