Install ZFS on Debian Testing (Jessie)

ZFS on Linux

ZFS on Linux

I’ve been using ZFS on Linux  to provide ZFS functionality on Linux for sometime now.  I first became attached to the feature set of ZFS while maintaining Sun Solaris systems a few years ago.  I mostly manage a variety of Linux systems now and have found ZFS on Linux to be stable enough for my development work.  Though, many folks are using it in production very successfully!

As a matter of fact, Jim Salter wrote the following on Ars Technica recently referencing ZFS on Linux:

I’ve been using ZFS professionally and in production for over five years, and I can honestly say that it’s both changed the course of my career and my business. I wouldn’t dream of going back to the way I did things before ZFS.

That’s quite a ringing endorsement but Jim has many more things to say about ZFS and its strong and weak points.  I found myself nodding my head throughout most of it.  The article is well worth a read.

As an aside, you can watch the maintainer of ZFS on Linux, Brian Belendorf of LLNL, give a talk at Joyent’s ZFS Day on his motivations to write ZFS on Linux.  His talk begins at 31:40 here.

Since my Linux distro of choice for development boxes is Debian testing (Jessie), I hoped the installation for Debian stable (Wheezy) described on this page would work.  Unfortunately, there is an issue with ZFS on Linux version 0.6.2 running kernels greater than 3.12.  Basically, a new API was introduced to the Linux kernel that is incompatible with ZFS on Linux.  The incompatibility has been fixed, but the official ZFS on Linux release hasn’t been updated.

Unfortunately, this bug prevents ZFS on Linux from compiling and installing the kernel module on Debian testing.  I have tested the  instructions on Debian stable and found it works perfectly.  The following steps are only necessary for folks who want to run Debian testing (or above).

I decided to take the leap and run bleeding edge ZFS on Linux on my Debian testing systems.  Note that this is not for the feint of heart since this code has not be throughly tested and there are likely bugs.  I would not run it in production.  So, caveat emptor and all that.

First, there are several dependencies to get out of the way.  ZFS on Linux requires libz, uuid, and the Linux kernel headers.  These dependencies can be taken care of with a simple aptitude installation.  The following command will do the trick.

sudo aptitude install git autoconf libtool zlib1g-dev uuid-dev linux-headers-$(uname -r)

Now create a directory to download and compile ZFS on Linux.

mkdir ${HOME}/zfs
cd ${HOME}/zfs

Time to download the code!  You’ll need the Solaris Porting Layer (SPL) and ZFS git repositories.  You can use ‘git clone’ to download both repos.

git clone https://github.com/zfsonlinux/spl.git
git clone https://github.com/zfsonlinux/zfs.git

Downloading the two repositories should create two directories names ${HOME}/zfs/spl and ${HOME}/zfs/zfs.    First, you’ll need to compile and install the SPL module.

cd ${HOME}/spl
./autogen.sh
./configure --prefix=/usr
make
sudo make install

Now compile and install the ZFS module.

cd ${HOME}/zfs
./autogen.sh
./configure --with-spl=${HOME}/zfs/spl --prefix=/usr
make
sudo make install

Next you should be able to start your newly compiled ZFS kernel module.

sudo modprobe zfs

If the module has loaded properly, you should be able to run ZFS management utilities such as zfs and spool.  On Linux, you must run zfs and zpool as root.  You’ll get this error if you don’t.

jgrafton@debian-testing:~$ /usr/sbin/zfs list
Unable to open /dev/zfs: Permission denied.

Once zpool and zfs are working properly, you’ll be able to create ZFS datasets.

jgrafton@debian-testing:~$ sudo zpool create -f testing /dev/sdb
jgrafton@debian-testing:~$ sudo zpool status
  pool: testing
 state: ONLINE
  scan: none requested
config:

	NAME        STATE     READ WRITE CKSUM
	testing     ONLINE       0     0     0
	  sdb       ONLINE       0     0     0

errors: No known data errors

This procedure has worked for me for awhile now and I haven’t suffered any data loss events.  Again, it’s always a possibility due to the bleeding edge nature of this code.

 

This entry was posted in computers, zfs. Bookmark the permalink.

9 Responses to Install ZFS on Debian Testing (Jessie)

  1. Maria says:

    You need targeted traffic to your website so why not get some for free? There is a VERY POWERFUL and POPULAR company out there who now lets you try their traffic service for 7 days free of charge. I am so glad they opened their traffic system back up to the public! Sign up before it is too late: http://pay4by.cc/rnwh

  2. Goldenneni says:

    Golden Birds – интеллектуально-ролевый симулятор в реальном времени с выводом средств. Зарабатывай на своих яйцах каждые 10 минут!
    Регистрация: http://golden-birds.biz/

    1. Купите птиц, они будут нести вам яйца.
    2. Яйца будут накапливаться на складе, собирайте их.
    3. Продавайте яйца и получайте за них серебро.
    4. Обменивайте серебро на реальные деньги, либо покупайте больше птиц, чтобы они приносили вам еще больше прибыли!

    Примущества игры:
    1. Резервный фонд
    2. Окупаемость
    3. Выгодные условия
    4. Стабильность
    5. Круглосуточная поддержка
    6. Прозрачность системы

    Текущие акции:
    До 12.03.2014 бонус при любом пополнении +200%
    2 синих птицы, при пополнении свыше 500 руб.
    1 красная птица, при пополнении свыше 1500 руб.

    Ежедневный бонус:
    Сумма бонуса генерируется случайно от 10 до 100 серебра.

    Партнерская программа:
    Приглашайте в игру своих друзей и знакомых, Вы будете получать 30% от каждого пополнения баланса приглашенным Вами
    человеком. Доход ни чем не ограничен. Даже несколько приглашенных могут принести вам более 100 000 серебра.

    Конкурсы рефералов:
    Конкурс рефералов № 8 с общим призовым фондом 45000 руб.

    Старт конкурса: 10.02.2014 в 18:58:07
    Завершение: 11.03.2014 в 18:58:02

    Призовые места:
    1 – 30000 RUB
    2 – 10000 RUB
    3 – 5000 RUB

    Цены на птиц и их окупаемость:
    Птица—————-Стоимость————Доход———Окупаемость
    Зелёная—————-1 руб———-0,01 руб\день——–59 дней
    Жёлтая—————-10 руб———-0,16 руб\день——–59 дней
    Коричневая————50 руб———-0,88 руб\день——–56 дней
    Синяя—————-250 руб———-4,60 руб\день——–54 дней
    Красная————-1000 руб———23,16 руб\день——–43 дней

    Статистика проекта:
    Всего участников: 100081
    Новых за 24 часа: 2021
    Выплачено всего: 5041902.34 руб.
    Резерв проекта: 10990404.23 руб.
    Проекту пошел: 143 – й день

    город игра с выводом денег отзывы
    rpg игры с выводом денег отзывы
    online игры с выводом денег отзывы
    игры с выводом денег форумы отзывы
    космическая игра с выводом денег отзывы

  3. Patricia says:

    You need targeted visitors for your website so why not try some for free? There is a VERY POWERFUL and POPULAR company out there who now lets you try their traffic service for 7 days free of charge. I am so glad they opened their traffic system back up to the public! Check it out here: http://monurl.ca/85kk

  4. Es kann nur einen geben – Ermen!!

  5. Jovita says:

    I could not refrain fгom commenting. Very well written!

  6. socialeum says:

    Appreciate you sharing, great post.Thanks Again. Really Cool.

  7. Lisa says:

    I came to your page and noticed you could have a lot more hits. I have found that the key to running a popular website is making sure the visitors you are getting are interested in your niche. There is a company that you can get visitors from and they let you try the service for free. I managed to get over 300 targeted visitors to day to my website. Check it out here: http://jtayl.org/qfm9

  8. Pingback: pre order jordan 10 venom green

  9. isabel marnt says:

    Aw, this was a really nice post. In concept I would like to put in writing like this additionally – taking time and actual effort to create a highly wonderful article?- but what can I say?- I procrastinate alot and by no indicates seem to obtain some thing done.
    isabel marnt http://www.isabelmarantworld.com/

Comments are closed.