By the power of soy!
dale's picture

Zabbix Upgrade 2.0 to 2.2 on RHEL 6 PostgreSQL with Paritioning

This post is not yet complete!

Upgrade Zabbix from 2.0.x to 2.2.x on RHEL.

My install is based on PostgreSQL 9.2.4 and partitioned to avoid the performance hit of the housekeeper process.

Stats as of Jan 2014:

  • Server: 64G RAM, Dual Intel(R) Xeon(R) CPU E5-2670 0 @ 2.60GHz
  • Database Size: 340G (RAID10 15k SAS)
  • Hosts: 931
  • Items: 54,023
  • Triggers: 13,387
  • Values Per Second: 1,154
  • Proxies: 6
dale's picture

Wrapper script to convert CVS project to Git

I have an old CVSROOT of several projects on an archive host, and I want to create a git version of the relevant projects without bothering to copy more than I need to. Here is a script to do that. It uses rsync to copy just the relevant project and then converts it with cvs2git AKA cvs2svn.

dale's picture

Tmux Startup and Attach Wrapper Script

A nice feature of tmux is the support it has for scripting. It's possible to open a manipulate windows in a session you not attached to. The same script can be used from within a tmux session as well. See my blog post for an example of such a script.

The script below is what I use to start working everyday. I just sit down and type 'tmuxgo', and whether I simply detached the night before or had a power outage I will have just the window layout I want.

dale's picture

My tmux.conf

Have you switched from screen to tmux yet? Why not? You don't use either? How the hell do you do your job?

Here's my .tmux.conf. Big woop.


bind | split-window -h
dale's picture

Use tmux to simultaneously control multiple servers

Sometimes you need to make a change on several identical machines all at once. Sure you could use a tool like func or dsh or whatever, but sometimes it may be easier to use an interactive session. Maybe you are talking to numerous switches or routers and just want to issue some status queries simultaneously.

This script uses tmux to login to as many servers as you want and tile them all in the same window.


dale's picture

Upgrade TiVo Premiere XL to 2TB and 317 hours of HD

Upgrading a TiVo Premiere or Premiere XL to 2TB and 317 hours of space is quite easy thanks to the jmfs tool by Comer of the TiVo Community. So I upgraded last week. It took 7 hours just to copy the data, but it was worth it. My TiVo went from always on the edge of full to 48%!

Here is how to do it without a CDROM drive or Windows machine.

dale's picture

Mojito by the Pitcher Recipe ala Bewley

On a hot summer day there not much better than an ice cold mojito, except maybe a whole pitcher. Here's my recipe for a tasty party.


There is a new chinese restaurant (at least new to me) here in DC that has TVP. They have TVP beef and chicken, and these dishes get 4 stars from me. They also have many tasty tofu dishes (hunan tofu being my favorite) and if you order spring rolls, they usually give you a couple free (well they have given me a couple free every time I order. Not sure if it is the norm, but that has been my experience). Sushi is also available and they have my favorite, inari.

There is a $10 minimum delivery fee for free delivery, but it's well worth it.

dale's picture

Expanding a guest disk image using libvirt and libguestfs

I have a guest which has a 10G root disk as /dev/vda, and I would like to expand the root disk from 10G to 15G to offer more room to the /var filesystem.

The typical method would be the following:

  1. shutdown the guest
  2. find the backing store on the host (in this case it's a LVM logical volume)
  3. copy the LV for backup (lvcreate --name LVNew --size=10G; dd if=LVOld of=LVNew;)
  4. expand the LV (lvresize --size=+5G LVOld;)
  5. use kpartx on the host (or start the guest) and use parted to expand the guest disk parition
  6. expand the guest physical volumes (pvresize /dev/vda2), logical volumes (lvresize), and filesystems (resize2fs)

But this can be both automated and generalized with libvirt and libguestfs-tools. These tools provide a common vocabulary across many different storage back-ends such as LVM, iSCSI, file, NFS, etc. Let's see how that works.

The state of virtualization on Fedora moves fast. The following is based on a Fedora 13 host running libvirt-0.8.2-1.fc13.x86_64 and libguestfs-tools-1.6.2-1.fc13.4.x86_64.

dale's picture

Vegan Unturkey Thanksgiving 2010

After discovering the unturkey recipe a few years ago, we created one for our vegan friends thanksgiving dinner and took notes in 2007 and 2008.

Here is how the 2010 bake went.

Thanks to for the recipes!


  • Gather the Ingredients
  • Gind Up Spice Mix
  • Mix the Gluten
  • Pre-Bake the Gluten
  • Make the Stuffing
  • Boil the Gluten
  • Stuff and Wrap
  • Bake
Syndicate content