March 13, 2016

Setup aptly on Ubuntu

aptly is a swiss army knife for Debian repository management: it allows you to mirror remote repositories, manage local package repositories, take snapshots, pull new versions of packages along with dependencies, publish as Debian repository. You can try it right now just for free. aptly is available both as CLI tool and HTTP REST service. Nuff said, we want this ☺ Installation Aptly provides a repo (with an outdated key, do not wonder) to install the single binary (written in Go). Read more
#go

March 12, 2016

Lightweight Git Service and CI

In cases, where keeping code private (as in never never let it leave your storage/network) and you don’t want to host a full-blown Gitlab instance, just have a look at Gogs and Drone. Both projects are written in Go, which runs very fast even on low performance systems (i.e. a RPi or something similar).

February 24, 2016

Quick Note: ssh+tar+lzop to quickly copy over network

You need lzop installed ;) from target host ssh $user@$source-host tar --use-compress-program=lzop -cf - /source/folder | tar --use-compress-program=lzop -xf - from source host cd /source/folder tar --use-compress-program=lzop -cf - . | ssh $user@$target-host tar -C /target/folder --use-compress-program=lzop -xf -

February 7, 2016

ZFS snapshotting using znapzend

Introduction Besides many existing tools, i’ve discovered znapzend to be a very powerful tool to manage automatic snapshots including retention and cleanup for time bases snapshot plans. I’m using it with the Proxmox builtin ZFS on Linux to create snaphots and copy them to local and remote disks. This allows me to build some pseudo HA cluster without maintaining things like Ceph as i have the VM filesystems available on other machines. Read more

February 5, 2016

ZFS on Linux and Check_MK zfs_arc_cache

To allow Check_MK to inventorize and fetch data for the zfs_arc_cache plugin, just create a file like /usr/lib/check_mk_agent/plugins/zfs_arc_cache with the content from below and make it executable. #!/bin/sh echo "<<<zfs_arc_cache>>>" cat /proc/spl/kstat/zfs/arcstats | tail -n +3 | awk '{print $1" = "$NF}' You then should get some nice graphs showing all the stats.