Featured »

March 2, 2022 – 2:00 pm

Books have been written on the subject of awk and sed. Here’s a small sample of commands I put together over the years that are useful for everyday system administration tasks. Most of these tasks …

Read the full story »
Networking

Unix and Linux network configuration. Multiple network interfaces. Bridged NICs. High-availability network configurations.

Applications

Reviews of latest Unix and Linux software. Helpful tips for application support admins. Automating application support.

Data

Disk partitioning, filesystems, directories, and files. Volume management, logical volumes, HA filesystems. Backups and disaster recovery.

Monitoring

Distributed server monitoring. Server performance and capacity planning. Monitoring applications, network status and user activity.

Commands & Shells

Cool Unix shell commands and options. Command-line tools and application. Things every Unix sysadmin needs to know.

Dealing with Full Filesystems

June 25, 2013 – 11:03 am
hard drive disk

Filled up filesystems is a recurring condition eating up sysadmin time on a regular basis. Some studies show that filesystems running out of space are responsible for most day-to-day issues handled by IT departments. Disk …

Quickly Grow EMC Celerra Filesystem

June 21, 2013 – 11:22 am
grow001

As we all know, Celerra and its kin can get a bit annoying with their “filesystem over 90%” warning emails. Enabling the “autoextend” feature for the filesystems is one option, but if you are a control …

Watch the Log

June 18, 2013 – 8:06 pm
hacker computer

In the past few days my Postfix server has been having occasional problems talking to the mail gateway. They problem would come and go. The Postfix server would timeout trying to connect to the gateway and keep …

Bash scripting: lists and random things

April 16, 2013 – 12:39 pm
dice001

Imagine you have an HPC cluster with a hundred compute nodes named node001-node100. The two commands below will help you generate a list of node names – either all name on one line or one name per …

iPhone Stopped Syncing with Google Calendar

April 3, 2013 – 3:05 pm
apple

A small but potentially annoying problem: on rare occasions, your iPhone/iPad may decide your calendar looks full enough and will stop syncing with your Google calendar. This is a situation where:

Calendar sync between your iDevice and …

Install Pflogsumm PostFix Log Summarizer

March 12, 2013 – 9:58 am
postfix_logo

Pflogsumm is yet another log analyzer/summarizer for Postfix. It is written in Perl and has been around for a while. Very simple to install, so I writing this post mostly as a note to myself. I added an example cron job with some “grep” syntax to cut the Pflogsumm report down to size by dropping some things I am usually not interested in.

Installing Sendmail Analyzer on RHEL/CentOS

March 11, 2013 – 11:35 pm
redhat1

The Sendmail Analyzer can be useful for visualizing your Sendmail/Postfix log. The commands below can be copy-pasted as root on default installations of RHEL and CentOS 5/6 with default Postfix and httpd. If your configuration …

Fast IP Range Scanner in Bash

February 22, 2013 – 2:53 pm
ping_pong-wallpaper-960x600

Just a simple script to scan an IP range and do a reverse DNS lookup. This can be useful for building an inventory of systems on your LAN. Just make sure to give your network …

openlava Quick Test

February 22, 2013 – 12:46 pm
bar_001

After years working with PBS and LSF, ran into Jeff Layton’s “Share the Load” review of openlava resource manager in the Feb 2013 issue of the Admin Magazine and nostalgia took over. So I built …

Secure Data Destruction for Unix

February 21, 2013 – 11:45 pm

What is secure computer data destruction? Simply put, securely-deleted data cannot be recovered by any known technique. But when it comes to data security, things are rarely simple. New data recovery methods are developed every …

SEO for Unix Geeks

February 21, 2013 – 11:45 pm
Traffic light for bikes.

So, you are finally done with your new shiny Web site and looking for ecom site integration. Congratulations. There is one small problem: the only two visitors to the site are you and Googlebot. And …

Selecting CMS Software

February 21, 2013 – 11:45 pm
wp-newspaper

If you are looking for an open-source content management system, your choices are likely to boil down to these three: Joomla!, WordPress, and Drupal. Professional CMS developers tend to disregard WordPress as a purely blogging …

Protected: KW MSP-10X Prototype

February 21, 2013 – 11:45 pm

There is no excerpt because this is a protected post.

Jailbreaking My iPhone 4S

February 21, 2013 – 11:45 pm
apple

An iPhone 4S is a fairly sophisticated computer capable of doing many interesting things. Unfortunately, since most phone users are computer idiots, to preserve its bottom line and the sanity of its tech support staff, Apple imposes severe limitations on what you, as a user, can do with your iPhone or iPad. As a Unix sysadmin I am entirely on Apple’s side on this one. However, it would have been nice if Apple allowed an option of full access in exchange for voluntarily voiding the warranty. For those of us who know what they are doing and are not gonna run in tears to the nearest Genius Bar if something goes wrong…

SSH Login Without Password for a Linux Cluster

February 21, 2013 – 11:45 pm
Computer Password Security

Most HPC cluster management utilities will automatically take care of the password-less SSH configuration. However, if you are not so lucky, here are the simple steps to get this working. Keep in mind that, depending …

Filesystem Performance Testing Using dd

February 5, 2013 – 3:35 pm
Shell Script

Below is a simple script to test filesystem read/write performance using dd with varying blocksize parameter. This can be useful for testing local filesystems as well as network-mounted filesystems. The end result will be a …

Remounting Active NFS Filesystems

January 23, 2013 – 12:57 pm
switch_003

Here’s a scenario: you have an NFS client mounting a filesystem from server1. You need to migrate this data to NFS server2 and remount the filesystem from the client to point to the new server. The problem is that there is a user application on the client system that uses the NFS mount, preventing you from unmounting it.

Uninstall PostgreSQL from Ubuntu

January 4, 2013 – 1:22 pm
postgresql_logo01

Ok, so this is a very simple one: uninstall PostgreSQL running on Ubuntu. There are a bunch of pieces to the database server and just running “apt-get remove postgresql” will still leave you with with a bunch of leftovers

Quick BTRFS Test on OpenSuse 12.2

December 13, 2012 – 11:08 am
chameleon_01

The recent announcement from Suse Enterprise Linux that Btrfs was production-ready raised some suspicions. The last time I tested btrfs (not very long ago) the primary issues were excessive CPU utilization and filesystem space that seemed to disappear into nowhere. So, as a quick test, I put together an OpenSuse 12.2 (3.4.6-2.10-desktop, OpenSuse 12.2) 64-bit VM (ESX) with one dual-core vCPUs, 4GB RAM, the OS disk and a 6GB striped LVM filesystem consisting of 4 4-GB virtual disks.

A Faster Way to Delete Many Folders

October 24, 2012 – 11:00 pm
shell

This issue is particularly annoying when dealing with expansive directory structures mounted via NFS. Let’s say you have a directory with ten thousand folders and each of them has more subfolders and files. And you …

Fixing the mount.nfs: rpc.statd is not running Error

October 22, 2012 – 4:11 pm
linux_penguin_0002

The rpc.statd service is used by NFS client to help it recover from loss of connectivity to the NFS server. When rpc.statd is not running, NFS is not able to handle remote file locking. You …

System Recovery: Useful Tools

October 18, 2012 – 9:48 pm

The following is a brief collection of open-source and/or free tools I regularly use for various system recovery tasks. If the servers you work with have CD drives, I would recommend burning these images onto a CD or DVD. This would save you the trouble of messing with the boot options in the BIOS. More advanced versions of BIOS can mount remote ISO images and boot from those. In most cases, however, this approach requires using the dreaded Internet Explorer an requires Windows.