my first steps with zfs send and zfs recv

Well, playing around with zfs send and zfs recv for the first time turned out to be a little nightmare. Most of that nightmare has nothing to do with ZFS itself. Probably 50% pebkac and 50% buggy implementation in ZFS on Linux. Actually more funny is the fact that I had first used ZFS back in 2008 and never played with zfs send and recv before.
Continue Reading

Selecting a compression method for zfs send

Recently I was wondering why I do only get 1-2 mbit/s on a gbit/s link while using zfs send. As it turned out xz caused that. xz with default settings is just too slow for this sort of data. Due to that I compared the available compression methods in linux. Well, at least some of them.
Continue Reading

inotifywait based virus scanning

few months ago I’ve built my NAS and configured it so that my wife can store her files on it, too. Due to the fact that she uses Windows I thought it might be reasonable to scan files on the NAS for viruses. My first approach which I called „hashclamscan“ just searched all files, created checksums and scanned modified files. Here’s an inotifywait based solution, which uses clamscan (and if available sophos savscan) and makes use of CDB for the hashes…
Continue Reading

adding another ssd for log and cache

Just added another 60GB SSD to my ZFS pool. Has been a little nightmare – Not because of ZFS. I messed up sgdisk which does not follow the usual $source $target ordering… (so yeah, I removed my partition table.. recreating, grub-install, update-grub and everything was fine).
Continue Reading

Replacing a broken disc in ZFS (on linux)

I knew that this would happen. One of the discs in my NAS died. Sadly it was one of those discs I just bought as in lets-give-it-a-try. A Toshiba DT01ACA200. This disc died just after 10 months (and I did not use my NAS 24/7 nor do I have high iops or many writes).

Continue Reading

First steps with phar archives

While phar archives in PHP are nothing new I never had time nor interest in taking a look at them. Actually I think it is pretty nice to just deploy a single file if you are using PHP to do cli-based stuff. Not saying thats the only useful case for it. Let us take a look…
Continue Reading