We ran into an interesting situation where we needed to know two things: whether or not a particular server was down, and when, exactly, it went down. We had requested some service be done on the server, and had a shell open via ssh. A simple solution that did the trick, and illustrates some stupid […]
Stupid Bash Tricks: Simple Loop With Timestamp
Red Hat Errata
If you are running Red Hat, you need to keep your RPMs up to date. Red Hat has a service you can subscribe to, but if you wish to do this manually, browse to the house of mirrors, and pick a site that has updates for your architecture. We put all of the updates in […]
Optimizations for Pentium4 and gcc 3.2.2
We run Gentoo, and in our make.conf file we had CFLAGS=”-march=pentium4 -O3 -pipe -fomit-frame-pointer”. Well, it turns out there is a bug. If you run this script: python -c ‘int(10.1); int(10000.3); int(1.2)’ You will get an overflow error. The fix is to use CFLAGS=”-march=pentium3 -mcpu=pentium4 -O3 -pipe -fomit-frame-pointer”. We just ran emerge glibc, and the […]
Compiling Kernel, modules for Red Hat
One problem with Red Hat systems is that the kernel config is not as simple as, say, Slackware. You can’t simply just select the modules you think you need, add in devices, etc. and have the system boot correctly. The Red Hat config is quite customized. This is particularly true for workstation configs that use […]
Linux From Scratch Book With CD
Linux From Scratch is a GNU/Linux distribution that you compile and piece together yourself. Gerard Beekmans and the LFS team have published LFS 4.1 as a book with a companion CD. We think that this is a fabulous way to document the heart of GNU/Linux. Own your own distribution. Don’t be buffeted about by corporate […]
Upgrading LVM To Version 2 and Patching The Linux Kernel
So far, we have been using a generic 2.4.24 Linux kernel with LVM enabled. We had to compile this ourselves because the stock Red Hat / Fedora kernels don’t support our hard disks. See this article for more details. [Note: Before you do anything involving your partitions or volumes, make a complete backup. Make sure […]
Setting System and Hardware Time On GNU/Linux
It is daylight savings time again. For those systems that don’t automatically sync their time, you may have to set this manually. If you are in the U.S, you can find the correct time here. Let’s set the system time: root@srv-1 u-1 # date Mon Apr 5 03:45:59 PDT 2004 root@srv-1 u-1 # date 040504142004 […]
Setting Up Logical Volume Manager
Logical Volume Manager (LVM) allows you to combine disks and create a single volume that can be mounted like a regular partition. It also allows you to add and remove storage. Make sure that you have the support for LVM compiled into your kernel. We set CONFIG_BLK_DEV_LVM=y on ours, and that worked well. [Note: Before […]
Extending a Logical Volume
In this article, we set up Logical Volume Manager for GNU/Linux. We created a 12 GB device from 3 4 Gig drives, but only assigned 5 GB for our logical volume. Now, we are going to extend that volume. [Note: Before you do anything involving your partitions or volumes, make a complete backup. Make sure […]
Shrinking a Logical Volume With LVM
In this article, and in this article, we showed how to install and extend logical volumes with LVM. Now, we want to shrink the filesystem we created and the logical volume, so we can remove the drive. [Note: Before you do anything involving your partitions or volumes, make a complete backup. Make sure to set […]
Adding a RAID1 Device to a Volume With LVM
In this article, we freed up a disk from our volume so that we could reconfigure our system. In this article we will create and add a RAID1 device to our volume group. We removed /dev/sdg from our volume group, and /dev/sdh was unused, so let’s create a RAID1 device to add to our volume […]
Finish Conversion And Expansion to Two RAID1 Devices With LVM
In this article, we recompiled our software and kernel so we could remove our /dev/sde drive. [Note: Before you do anything involving your partitions or volumes, make a complete backup. Make sure to set up a test system with the same kernel and distribution to see how this stuff works. This article was written using […]
Compiling the Linux Kernel for More than 1GB of RAM
Agatha recently purchased another stick of 512MB RAM. It turns out that by default you need to change the kernel for it to use more than 1GB of RAM. Actually, the cutoff is technically at 960MB. Here is the memory info with 1.5GB of RAM installed, but with high memory support disabled: usr-1@srv-1 proc $ […]
Installing Gentoo GNU/Linux 2004.3 on SPARC – Part 1 – Booting the Install CD
There are 7 parts to this article: Part 1 – Gentoo on SPARC – Booting the Install CD Part 2 – Gentoo on SPARC – Creating the Filesystems Part 3 – Gentoo on SPARC – Copying Initial System, Portage, and Distfiles Part 4 – Gentoo on SPARC – Creating the Kernel Part 5 – Gentoo […]
Installing Gentoo GNU/Linux 2004.3 on SPARC – Part 2 – Creating the Filesystems
There are 7 parts to this article: Part 1 – Gentoo on SPARC – Booting the Install CD Part 2 – Gentoo on SPARC – Creating the Filesystems Part 3 – Gentoo on SPARC – Copying Initial System, Portage, and Distfiles Part 4 – Gentoo on SPARC – Creating the Kernel Part 5 – Gentoo […]
Installing Gentoo GNU/Linux 2004.3 on SPARC – Part 3 – Copying Initial System, Portage, and Distfiles
There are 7 parts to this article: Part 1 – Gentoo on SPARC – Booting the Install CD Part 2 – Gentoo on SPARC – Creating the Filesystems Part 3 – Gentoo on SPARC – Copying Initial System, Portage, and Distfiles Part 4 – Gentoo on SPARC – Creating the Kernel Part 5 – Gentoo […]
Installing Gentoo GNU/Linux 2004.3 on SPARC – Part 4 – Creating the Kernel
There are 7 parts to this article: Part 1 – Gentoo on SPARC – Booting the Install CD Part 2 – Gentoo on SPARC – Creating the Filesystems Part 3 – Gentoo on SPARC – Copying Initial System, Portage, and Distfiles Part 4 – Gentoo on SPARC – Creating the Kernel Part 5 – Gentoo […]
Installing Gentoo GNU/Linux 2004.3 on SPARC – Part 5 – Getting Silo Installed
There are 7 parts to this article: Part 1 – Gentoo on SPARC – Booting the Install CD Part 2 – Gentoo on SPARC – Creating the Filesystems Part 3 – Gentoo on SPARC – Copying Initial System, Portage, and Distfiles Part 4 – Gentoo on SPARC – Creating the Kernel Part 5 – Gentoo […]
Installing Gentoo GNU/Linux 2004.3 on SPARC – Part 6 – Initial Logon
There are 7 parts to this article: Part 1 – Gentoo on SPARC – Booting the Install CD Part 2 – Gentoo on SPARC – Creating the Filesystems Part 3 – Gentoo on SPARC – Copying Initial System, Portage, and Distfiles Part 4 – Gentoo on SPARC – Creating the Kernel Part 5 – Gentoo […]
Installing Gentoo GNU/Linux 2004.3 on SPARC – Part 7 – Final Configuration
There are 7 parts to this article: Part 1 – Gentoo on SPARC – Booting the Install CD Part 2 – Gentoo on SPARC – Creating the Filesystems Part 3 – Gentoo on SPARC – Copying Initial System, Portage, and Distfiles Part 4 – Gentoo on SPARC – Creating the Kernel Part 5 – Gentoo […]

