Archive | Linux

05 April 2013 ~ Comments Off

Find files matching criteria, exclude NFS mounts

We have app servers with smallish local file systems and application data mounted over NFS. Sometimes I want to find all files matching a particular set of criteria but don't want to traverse the NFS mounts. Here's how to do it: find / -group sophosav -print -o -fstype nfs -prune Ordering is important, as is… Continue reading

Continue Reading

23 August 2012 ~ Comments Off

Summary of tools for observing processes

This is an useful summary:
http://dtrace.org/blogs/dap/2012/08/04/illumos-tools-for-observing-processes/
It's written for illumos/solaris/smartos users but most of the tools are also available on linux.

Continue Reading

29 June 2012 ~ Comments Off

Restoring Deleted Files in Linux from the ext3 Journal

Deleting Computer Files
Someone just `rm -rf *`-ed from `/` on a production server.

Fortunately, you have backups. Unfortunately, the server included a database with important business data that was written just before the disaster. That most recent data is not included in the last database backup.

Read more on Restoring Deleted Files in Linux from the ext3 Journal »

The post Restoring Deleted Files in Linux from the ext3 Journal appeared first on Atomic Spin.

Continue Reading

13 June 2012 ~ Comments Off

Ganeti Tutorial PDF guide

As I mentioned in my previous blog post, trying out Ganeti can be cumbersome and I went out and created a platform for testing it out using Vagrant. Now I have a PDF guide that you can use to walk through some of the basics steps of using Ganeti along with even testing a fail-over scenario.… Continue reading

Continue Reading

26 April 2012 ~ Comments Off

Speeding up Vagrant with parallel provisioning

Vagrant is an amazing tool. It's quite substantially changed my workflows in a variety of areas. It's a particularly interesting tool for building packages or running tests across multiple OS's or distributions from a single set of scripts. A recent example of the usefulness of Vagrant is the new packaging and testing work undertaken in [...]

Continue Reading

27 February 2012 ~ Comments Off

One Liner: Ifstat

Recently I tried ifstat on a freshly updated linux box with a 3.2 kernel, it was reporting nothing (0kb) although the network was heavily used.
A quick one-liner confirmed this and I decided to keep it here for later use:
export IFACE=eth0 ; while(…

Continue Reading

02 February 2012 ~ Comments Off

Sensu and Graphite

Updated October 16, 2012: Removed “passive”:”true” from the graphite amqp handler definition in Sensu. This is too brittle. Sensu will fail to start unless graphite has started first and created the exchange on the RabbitMQ server. By matching the “durable”:”true” setting that graphite expects, then we can start either service in any order. Updated October [...]

Continue Reading

25 January 2012 ~ Comments Off

Re-use Nagios plugins in Sensu for quick profit

In my previous article I mentioned a key strength of Sensu is the ability to re-use existing Nagios plugins. This is a powerful feature of Sensu. Nagios has been around for at least 1000 years according to most recent archaeological discoveries, which means a vast amount of human effort (and capital) has gone into creating [...]

Continue Reading

20 January 2012 ~ Comments Off

Getting started with the Sensu monitoring framework

(5/15/2012) NOTE: This guide has been superseded by the official ‘Install Guide‘ doc on the Sensu wiki. The new process utilizes the simpler Omnibus-style Sensu packages and covers installation on Debian/Ubuntu platforms as well. Please use this guide instead of the instructions below. I’m excited about Sensu, a new open source monitoring framework, and I’d [...]

Continue Reading

13 December 2011 ~ Comments Off

Which Linux distribution for a MySQL server?

I was pleased to read this link on the excellent MySQL Performance Blog.

Continue Reading