So I frequently find myself in a situation where I need to modify files on a fairly programmatic basis, so sed has become a friend of mine for a lot of these situations. So lets start with some basic sed… If I have a file.. And I want to replace…
Bash: Duplicate Logical Volume Configuration for a Volume Group
I recently ran into a situation where I needed to create a large number of Logical Volumes for a server replacement situation. I could have done some manual data input, but why not take the opportunity to quickly write a script to do the hard work for me? For my…
Preparing Minimal Images with Debootstrap
Debootstrap gives us a simple and consistent way to cleanly setup machines by installing packages directly into a file system directly from the repos. These have the flexibility of being used across many different kind of machines. Create Directory Structure Here we are just creating the directories into which we…
Linux-KVM: Ubuntu 12.04 with Openvswitch
UPDATE: October 29, 2012 This article doesn’t work on Ubuntu 12.10, to use Ubuntu 12.10 please refer to my new article here. Openvswitch is a better way of managing your virtual networking stacks for KVM and Xen. This can be used instead of the bridge-utils package, and has the ability…
Adventures in ZFS: NexentaStor with Dell Poweredge R515 Onboard Broadcom NIC
So recently I dealt with a rather aggravating problem. Basically I had a couple of Poweredge R515’s to be built with NexentaStor Enterprise, which would not get a valid network configuration. The Problem During the initial setup via the console… I selected bnx0 as the primary and set it to…