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.

Home » Archive by Category

Articles in SysAdmin

Random Filename Chooser

June 17, 2008 – 9:02 pm
lock code

This is a rather peculiar little script with a purpose that may not be immediately apparent. The script will look for files in the specified folder; it will then pick one at random from the …

WordPress Quick Upgrade for Linux

June 13, 2008 – 6:22 pm
wordpress_0003

Never ever upgrade WordPress to the latest version as soon as it comes out, unless you want to be the guinea pig dealing with the new bugs and incompatible plugins. Even if the new version …

Linksys WAP54G Secure Configuration

June 11, 2008 – 1:09 pm
wireless access point ap

Below are some basic steps to secure a wireless access point (WAP). The screenshots are for Linksys WAP54G v. 3.04, however, the same steps will apply to wireless access points from other manufacturers. Understand this: …

Apache and Multiple Domains – from Home

June 10, 2008 – 5:15 pm
apache

Apparently there are folks out there who are still interested in running their own Web server from home. More than that – they want to have multiple domains. Guys, Web hosting these days is so …

Scali Manage (Platform Manager) CLI Guide

June 5, 2008 – 10:24 pm
trash

Scali Manage – the bloated and unpredictable HPC cluster management tool – has recently been acquired by Platform Computing Corp. It is to be integrated into Platform LSF and Platform OCS products. I can’t say …

Dealing With Disk Hogs

June 1, 2008 – 5:49 pm
hard_disk_drive_hdd_0005

Some users and application developers believe that any free disk space on the server belongs to them. Suddenly you get an email alert saying that a server “xyz” ran out of disk space in /home. …

Useful SysAdmin Scripts: Search-and-Replace

June 1, 2008 – 3:03 pm
binoculars watch security rifle gun

Let’s say you moved your server to a new network and now it has a different IP address. You know your users have a habit of hard-coding the server’s IP into their scripts. So you …

Tips on dealing with the Bagle rootkit

May 26, 2008 – 5:51 pm
Computer Password Security

Normally I don’t concern myself with Windows- related matters. However, the infamous Bagle rootkit and its numerous variations deserve some attention even from Unix sysadmins. Bagle annoyed me and my customers long enough. Essentially, Bagle …

Creating print.css for WordPress

May 24, 2008 – 6:35 pm
wordpress

Many WordPress theme designers choose to cut some corners with their creations. One of the more important things they skip over is print.css – the stylesheet that controls your blog’s appearance when you print it. …

Migrating email between hosted providers

May 23, 2008 – 9:38 pm
Postfix_logo

Recently I ran into a small problem. A customer of mine was moving her site to a new hosting provider. Her old provider was Windows-based and her new provider was Linux-based. The old provider did …

VxVM Recovery Cheatsheet for Solaris

May 15, 2008 – 6:22 pm
sun_solaris_0002

This is a quick-and-dirty guide to recovering VxVM volumes and filesystems on a Solaris server. These instructions are not intended to be an in-depth troubleshooting guide for the Veritas Volume Manager. This is just something …

Highly redundant array configuration

May 8, 2008 – 3:58 pm
hard_disk_drive_hdd_0005

The cost of storage arrays is falling along with the quality of their manufacture. To quote Lev Andropov from the “Armageddon”: “Components. American components, Russian Components, ALL MADE IN TAIWAN!” What in the nineties used …

Improving WordPress Performance

May 4, 2008 – 12:39 pm
wordpress_0001

WordPress is a great blogging engine and decent CMS. Unfortunately, most available WordPress themes- even those claiming to be “minimalist” – are bloated and slow to load. Heavy CSS stylesheets, multiple Java scripts, numerous graphics …

Use Perl inside Shell scripts

May 1, 2008 – 11:44 am
shell_002

Perl is a far more powerful programming tool than any shell script. Sometimes you want to borrow some of that power without having to rewrite your entire shell script. There is an easy way to integrate Perl snippets inside your shell script.

Convert MySQL table to CSV file

March 27, 2008 – 4:41 pm
mysql_0002

CSV is a field-separated format that can be easily imported into a spreadsheet application. Usually the separator field is a comma. However, sometimes it is easier to select a more unusual character (like “@” for …

Installing and Configuring Ganglia

March 25, 2008 – 4:19 pm
storage barrels cluster hpc

Ganglia is a distributed performance monitoring application used primarily for tracking status of high-performance compute (HPC) clusters. Ganglia is a royal pain in the ass to install and configure even for a seasoned Unix sysadmin. …

Dealing with ReiserFS bad blocks

March 24, 2008 – 6:42 pm
linux_penguin_0001

The following is a procedure for recovering a ReiserFS filesystem with bad blocks. If this is a system FS and cannot be unmounted, the box needs to be booted from the latest version of Knoppix …

ReiserFS Filesystem Recovery

March 21, 2008 – 3:55 pm
968780_94091618

The this is a description of a method for recovering ReiserFS filesystems from failed disks with bad blocks, when other recovery methods (reiserfsck) will not work. For this example, the failed server is called node1 …

Log Monitoring with Swatch

March 11, 2008 – 1:43 pm
binoculars watch security rifle gun

Swatch is a Perl-based log monitoring tool that can match regular expressions and perform automated actions. The tool is useful for monitoring system log files in real time with an option to run external commands …

Linux User Activity Management

March 9, 2008 – 2:59 pm
sniper soldier

The following is a detailed look into managing Linux users and the system resources they utilize. Disabling user access; halting, killing, and re-nicing user processes; controlling disk space allocation are all points covered by this …

Veritas Cluster Troubleshooting

February 27, 2008 – 1:26 am
hard_disk_drive_hdd_0003

Veritas cluster server is a high availability server. This means that processes switch between servers when a server fails. All database processes are run through this server – and as such, this needs to run smoothly. Note that the oracle process should only actually be running on the server which is active.

Veritas HSM Maintenance

February 12, 2008 – 11:22 am
sun_solaris_0001

When resizing a VXFS filesystem on a server that has HSM running, it is necessary to place HSM in maintenance mode for that particular filesystem. Failing to do so may cause the VFS resize operation …