Category Archives: linux

Using Greyhole on Gentoo Linux just got easier

For a while, I was running Ubuntu Server instead of Gentoo on my home file server because I had some trouble figuring out how to get Greyhole running on it.

(Background: Greyhole is a redundant-storage subsystem that sits on top of Samba.  Basically, it allows you to combine multiple disks (not necessarily all the same size) into one pool of storage space.  If you have files you really don’t want to lose (like your wedding photos…but you should have backups!), you can tell it to maintain copies of those files on more than one drive…think of it as selective redundancy.  It’s been compared to the Drive Extender feature that used to be in Windows Home Server, but I don’t think Drive Extender provided redundant storage.)

Anyway, a desire to get my home server running Gentoo again prodded another attempt at getting Greyhole working on it.  A couple of weeks or so ago, I figured it out…but it was a manual process, and since it requires a loadable module to be built within the Samba source tree, it wasn’t going to be easily maintainable.

The solution to this?  Write an ebuild.  The peculiarities of getting Greyhole up and running made this a bit more tricky than usual, but I’ve done it:

https://github.com/salfter/portage/tree/master/net-fs/greyhole

This is part of my Portage overlay, which has a bunch of other ebuilds I’ve found useful over the years.  Installing Greyhole on Gentoo is now as simple as this:

  • add http://salfter.github.com/layman.xml to your overlays in /etc/layman/layman.cfg
  • layman -S && layman -a salfter to pull in the overlay
  • emerge greyhole to install
  • configure & enjoy!

One caveat: the Greyhole ebuild will currently only with with Samba 3.x.  The build process for Samba 4.x is a little bit different, and since I don’t have a Gentoo box running Samba 4 (it’s keyworded ~arch at this time), I don’t have a way to verify that it’ll work.  There are three FIXMEs that would need to be replaced to use Greyhole with Samba 4.x.)

Don’t cross the streams!

Surely a sign of TEOTWAWKI:

Bill Gates Inadvertently Shows Off Ubuntu on His Facebook Page

Screencapped, in case it goes down the memory hole:

bgates_ubuntu_fb_screencap

(Yes, the likely explanation is that he pulled a stock photo from somewhere, but you’d think he, of all people, would’ve spent a few minutes extra to find a stock photo with a Windows desktop.  Hell, he could’ve called someone in Microsoft’s PR department to either find an image or have one made on short order.)

Linux 3.17 is out, and some of my code is in it

It’s not the first time that happened…submitted a couple of drivers for a video-capture card we built at my previous job back around ’05 or ’06.

https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/drivers/w1/slaves/w1_ds2406.c?id=refs/tags/v3.17

I submitted this a few months ago for my Raspberry Pi beer-fridge controller. I picked the parts and put it together without checking to see first if the necessary driver support was already in place…derp! Fortunately, it’s relatively easy to correct such deficiencies when you have source-code access to the whole system.