home server

Introducing Sparse Encrypted ZFS Pools

Sparse ZFS Pools

Ever since I've been using a Mac, I enjoy using Sparse Encrypted Disk Images for a variety of tasks, for instance securely storing data that can be backed up somewhere else, say on a hosting server.

In fact, most of my project/personal data on my Mac sits on sparse encrypted disk images that are regularly rsynced to an external storage service, Strato's in particular.

The beauty of this solution lies in it simplicity:

Sparse encrypted disk images show up just like any other hard drive. But on the back end, they translate into a bunch of flat files that store all the data in an encrypted manner. By rsyncing the backing store, sparse encrypted disk images can be easily backed up across the net, while ensuring privacy and convenience.

Here's how to do similar things with Solaris and ZFS, including some extra data integrity magic:

Home Server Scripting 4: Wrapping DTrace (and other scripts) Into SMF Services

NewMusicSMF.jpg

In the last couple of posts, we used DTrace to notify our media servers and perfected our script a bit.

But the script is still not ready to be used on our home servers yet: It requires manual start and stop, not quite the service oriented automatism we're used to in the Oracle Solaris world.

The next step is to wrap our DTrace script inside a Service Management Facility (SMF) service, then wrap everything into a shell script that will easily install or remove the service whenever we need it.

OpenSolaris DTrace for Home Media Servers, Revisited

NewMusicUpdate

A few weeks ago, we discussed using DTrace for automatically updating media servers when you upload new content.

Yesterday though, I discovered that my D script didn't work any more. I uploaded new songs to my home server, and expected the music daemon to re-scan the music directory, but nothing happened.

That teached me an important lesson about DTrace, and here's what I learned:

OpenSolaris ZFS Home Server Reference Design

Blueprint

When I blogged about my OpenSolaris Home Server a while ago, little did I know that this would become my most popular entry in my old blog!

In fact, R.G. was so kind to call my setup "perilously close to being an AMD reference design". Thanks, R.G.! Read about his final setup here. And BTW, if you're into e-guitars, check out his GEOFEX page, a great resource for guitar effects.

So let's review our reference design and discuss some modifications to better suit your needs: