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 →
Archive | Linux
This is an useful summary:
It's written for illumos/solaris/smartos users but most of the tools are also available on linux.
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.
The post Restoring Deleted Files in Linux from the ext3 Journal appeared first on Atomic Spin.
- Hosting Provider ‘Upgrade’ Changes Stolen CPU
- Wireless Communication Between Raspberry Pi and Your Computer
- An Introduction to Scripting Tmux Key Bindings
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 →
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 [...]
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(…
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 [...]
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 [...]
(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 [...]
I was pleased to read this link on the excellent MySQL Performance Blog.