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 Featured

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 …

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…

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.

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.

Healthy Lifestyle

November 24, 2012 – 3:13 pm
shell

If you Google something along the lines of “make rsync faster”, the most common thing you’ll see is people saying “hey, I have a gigabit network connection and my rsync is crawling along at a hundred kilobytes per second.” Well, the issue here is not the network. Rsync needs time to analyze source and destination, generate checksums and compare timestamps, build a list of stuff to transfer and then, finally, start the copy process, one item at a time. You see the problem, I am sure.

Searching Large Network-Mounted Filesystems

October 16, 2012 – 4:14 pm
shell

Recently I ran into a small problem: I needed to find recently-modified files in a very large NFS filesystem. One of the high-level folders contained dozens of sub-folders with thousands of files in each. There is a significant performance penalty associated with placing such directory structures on network-mounted filesystems. Running the “find” command at the top of the filesystem would have taken over an hour and the problem here was not available bandwidth, but the time it takes for the “find” to request and receive attribute information for each folder and file.

Linux LVM: Reduce Filesystem and Logical Volume

March 14, 2012 – 5:07 pm
hard_disk_drive_hdd_0002

The following example shows how to reduce the size of a filesystem mounted on an LVM logical volume. The instructions below are only for non-root filesystems. No reboot is required, but the filesystem will need to be unmounted. So, if there are any user applications using this filesystem, they will need to be stopped and the users will need to log out.

Playing With Time in Bash Shell

February 24, 2012 – 11:38 pm
time clock watch

The “date” command in Bash shell offers a remarkable array of features that can be very useful in performing many system administration tasks. As you will see below, it is easy to determine date, time, day of week for any interval of time. This can be very useful for system automation tasks with “cron” and “at”.

Quick Review: Boxee Box

December 27, 2011 – 12:22 am

Some of the technical issues with Boxee Box could have been fixed if the dev team was paying more attention to addressing the bugs rather than adding “features” of dubious value. In the final analysis, for the price and ease of use, Boxee Box is the best in its class and price range. You just need to be mindful of its limitations and buy it in hope of future improvements to its usability.

Photo Fun with iPhone 4S

December 19, 2011 – 3:16 am
apple_0003

As an avid amateur photographer I would like to have my dSLR with me at all times. And my collection of lenses. And filters. And tripods. But even if this was possible, I don’t really want to be, say, sitting at a bar, looking like I just returned from a Serengeti safari. My iPhone will have to suffice and I’ll just have to get more creative with the photos apps to fill in for the fancy equipment.

Writing a Linux Startup Script

December 16, 2011 – 2:11 am
linux_penguin_0003

As basic as the task of creating a startup script may sound, even experienced sysadmins sometimes run into problems with having services start at the right time during the boot process or stop during the shutdown. Two major reasons for this: the procedure is a bit convoluted due to linking. Also, writing startup scripts is not something you have to do very often these days.

Photo Noise Reduction Apps for iPhone

December 7, 2011 – 3:59 am
apple_0005

In digital cameras, image noise (grain) is most pronounced in photos taken in low-light conditions without a flash. For such situations, the camera sets high ISO (light sensitivity of the image sensor) and a long exposure. A number of apps are available for the iPhone to reduce the appearance of grain. None of these apps are particularly impressive, especially when compared to specialized PC software. There is a good reason for this: digital noise reduction is a very CPU-intensive process that also requires a large amount of memory.

iPhone 4S HDR Performance

November 8, 2011 – 5:31 pm
apple

HDR – High Dynamic Range – photography is a method of achieving a degree of visual detail in highlights and shadows beyond what the camera’s image sensor can record in a single exposure. The HDR processing usually involves combining two or more frames taken at different exposures. This is done on the computer or inside the camera itself. Human vision uses the HDR approach.

iPhone 4S: Photo Camera Performance

October 16, 2011 – 9:46 pm
apples

Here’s our quick-and-dirty test of the new iPhone 4S 8-megapixel camera with LED flash and autofocus. For comparison, we took some of the same photos using a Canon G10 14.7-megapixel compact camera with a 28-140mm wide zoom lens. All photos have been corrected in Photoshop by a professional photographer to produce the best possible result for each camera. iPhone 4S was used in HDR mode.

Adding LUNs to VXVM on Linux

September 6, 2011 – 2:03 pm
linux_penguin_0002

The following is a brief overview of the process for adding LUNs to VXVM under Linux. In our example we have an RHEL 5 server with existing LUNs and VXVM volume groups. Two new LUNs with multipathing were allocated from SAN and need to be added to the system to grow one of the volumes and the corresponding filesystem.

Testing RAM in Linux

September 2, 2011 – 11:42 am
ram memory dimms

A number of good and mostly free tools are available for testing RAM hardware. However, most of these applications are designed to operate in stand-alone mode that requires shutting down the OS. Still, tare a few ways to run memory integrity checks from inside the operating environment. Here we will look at using dd and memtester.

D-Link DNS-320 NAS Review

July 10, 2011 – 6:49 pm

In the past I reviewed the DNS-321 and the major complaint there was the device’s inability to utilize gigabit network capacity due to severe memory and CPU restrictions. While the DNS-321 was initially built as a 100-Mbit NAS and later converted to gigabit, the DNS-320 was built as a gigabit-capable storage device from the very beginning. It is still a very flimsy-looking plastic box filled with cheap components. If I am lucky, it may run for a year or two before the cooling fan fails or the power supply burns out.

Microsoft Launches Office 365. Fails.

June 28, 2011 – 3:47 pm
fail

To much fanfare Microsoft launched its first “cloud” version of the Office – the Office 365. Silly name, I know, but I still decided to give it a shot. Call me an optimist, but sometimes I feel there is a chance Microsoft will come out with a product more useful than Xbox 360. For the sake of brevity, let me just say that Office 365 was not that product. I can’t really tell you how good or bad it is, because I never got past the convoluted installation procedure. My many years of experience as a sysadmin did not help.

Facebook Security for the Lazy

April 28, 2011 – 2:36 am
picard-facepalm-text-569

Every time you use Facebook, you probably have a nagging feeling in the back of your head that someone other than your friends is reading your posts. You should trust that feeling. At the same time, keep in mind that Facebook is a tool designed primarily for sharing personal information with large groups of people you barely know. Facebook is not your personal diary or a substitute for SMS. You just need to assume that everything you post on Facebook inevitably will end up in the hands of someone you don’t like very much. And then you proceed based on that assumption.

Useful iPhone Apps

March 16, 2011 – 1:49 am
apple_0003

Useful iPhone apps? Really? Yeah, there are a few. These may not be the best-written apps, or the easiest to use, or the most aesthetically appealing, but they perform a function that benefits your bottom line. And what else can you want from computer software if not that? So let me get started in no particular order.

Don’t Be Afraid to Reboot Unix Servers

February 21, 2011 – 8:11 pm
hacker

Reboot your Unix servers after making any major changes to the production environment. Should an unexpected problem come up, it will be easier to deal with it when everything is still fresh in your mind and not six months down the road, when you have to do a reboot to replace a failed system board and suddenly discover that some application wouldn’t load, by which time you forgot all about this application and have to start with the first page of the admin guide.

iPhone OS 4 Upgrade: One Month Later

October 13, 2010 – 1:36 am
apple_0004

Over a month has passed since I upgraded my iPhone 3Gs to OS 4. There are a couple of significant issues that I noticed. First, the battery life – not particularly impressive to begin with – got shorter. Before I used to get through the day on one charge. I only charged my iPhone overnight. Now, in addition to the nightly charge, I find I need to use the car charger on the way from work to keep the iPhone alive. Since there have been no changes in how I use my iPhone, I have to assume OS 4 causes iPhone to consume more power.