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.

Identifying Available IPs on the Network

December 2, 2014 – 2:31 pm
ping_pong-wallpaper-960x600

At some point available IPs on your network may become few and hard to come by. Documentation becomes outdated and does not accurately reflect which IPs are still in use. A good starting point would …

Multithreaded Encryption and Compression

November 24, 2014 – 9:13 am
storage barrels cluster hpc

One problem with encryption is it’s a slow and resource-intensive process. While most encryption software lacks multithreading support, it is possible to use the GNU Parallel to take full advantage of modern multi-core CPUs to …

Using truss and nawk to Trace Solaris Processes

November 18, 2014 – 1:54 pm
HP-Greets-IBM-2

Here’s the problem I ran into today on a Solaris 11 SPARC server: an application UI would occasionally freeze for a few second when executing a particular function. Nobody could quite figure out where the …

Filesystem Syncronization with Lsyncd

November 15, 2014 – 3:05 pm
poi002

Lsyncd monitors a local filesystem for changes and mirrors those changes to a filesystem on a remote server. The advantage of lsyncd over rsync is the former’s ability to detect filesystem changes without having to re-scan …

Toilet Fun

October 24, 2014 – 1:49 pm
murage-toilet2

It’s been a slow Friday afternoon at the office, so I decided to pimp my VM. The tool of choice is “toilet“. Depending on your flavor, this may or may not be easy to install. …

Resizing Hitachi VSP LDEVs (LUNs)

October 23, 2014 – 2:06 pm
technology-hard_00400654

Resizing Hitachi VSP LUNs (aka LDEVs) is a quick and simple task. Unfortunately, due to Hitachi Storage Navigator’s archaic design, the LDEV resize function, while easy to use, is not easy to find. So, here’s …

Adding Swap with Solaris 11 ZFS

October 22, 2014 – 4:24 pm
HP-Greets-IBM-2

With the swap partition residing on a ZFS filesystem, you have an easy way of adding swap on the fly. Reducing swap is not quite so simple, but we’l talk about that later. To check …

Rescanning New LUNs on VNX

October 16, 2014 – 10:49 am
hard-disk_00416535

Just a quick background of the little problem I ran into with our VNX: after creating a couple of LUNs for the mapped file pool using Unisphere, I clicked “Rescan Storage Systems” and got “This …

Enable NTP Client on Solaris 11

October 7, 2014 – 8:27 pm
solaris-logo

Just some quick instructions for configuring and enabling NTP client on Solaris 11.

Remove Duplicate IPTables Rules

September 24, 2014 – 6:26 pm

Duplicate entries may appear in your iptables configuration due to parallel efforts of various network security-related applications that may be running on your server. In most cases, having duplicate iptables rules is no big deal, …

Block WordPress Attackers With IPTables

September 23, 2014 – 3:56 pm
apache_logo

After installing LogStash, I noticed server load went from around 1.2 to 50+. This was cause by a brute-force attack against WordPress wp-login.php from some IP in France (of all places). While LogStash should not …

Patching Binary Files in Bash

September 18, 2014 – 12:17 pm
968780_94091618

Just the other day I ran into a particularly annoying issue: after an application upgrade, all printed documents had “<<bbj>>~D” on the first line. The application sends EPS files to the CUPS print server. For whatever reason, …

CUPS Printing to a File

September 17, 2014 – 7:17 pm
shell

Using CUPS to print to a file instead of an actual printer is a great idea for troubleshooting and archiving purposes. This saves trees but, most importantly, saves you the walk to the printer. So, how …

PHP Unable to allocate memory for pool

September 9, 2014 – 10:57 pm
apache

The following error may be found in /var/log/httpd/${domain}/error_log when APC memory is set too low: “PHP Warning: require_once(): Unable to allocate memory for pool”. APC is Alternative PHP Cache. You can check the version of …

Getting Epoch Time on Solaris 10 and Older

September 8, 2014 – 3:57 pm
solaris-logo

You can get the epoch time on Solaris 11 and Linux simply by running the date command:

Quick Setup of Salt on CentOS/RHEL

August 21, 2014 – 2:58 pm
salt

Just some quick notes on installing and configuring Salt master server and minions to run remote commands for various sysamdin needs.

Searching Files for Text Strings

July 28, 2014 – 4:22 pm
binoculars watch security rifle gun

In the past, I’ve posted a couple of versions of this script in Bash and Korn shell. Here’s a much-expanded and improved Bash version. The script will take your input and look for files containing …

Recovering Deleted /bin on CentOS

June 25, 2014 – 1:54 pm
fail

So, as the saying goes, shit happens and the other day I accidentally deleted /boot on a CentOS 6 box. I have NetBackup running on the system, so this would not have been a problem …

Disable Formatting When Pasting into Outlook

June 24, 2014 – 9:25 pm
outlook_001

By default, Outlook will preserve source text formatting during copy/paste operations. At times this can be very annoying, especially when composing emails of technical nature. There’s a good chance your email will end up looking …

Installing GoAccess on CentOS/RHEL

June 24, 2014 – 11:02 am
goaccess_01

GoAccess is a simple but useful “top”-like CLI utility giving you a quick overview of the Apache access_log entries.

What To Do When Windows Ignores SD Card

June 22, 2014 – 11:17 pm
sd_card_001

Here’s a common scenario: you insert or swap and SD card in your laptop and… nothing happens. Sometimes Windows decides to ignore the SD card for reasons unknown (well, the true reason is it’s Windows). …

Permanently Ban IP with Fail2Ban

June 9, 2014 – 12:12 am
video security camera

If you’re not familiar with Fail2Ban: it’s a log analysis tool that detects failed login attempts for your SSH, FTP, etc services and uses IPTools firewall to temporarily drop connection requests from the offending IP addresses. …