Once again I’m writing about ZFS, this time I’m trying the native ZFS port for Linux from http://zfsonlinux.org/.
First thing needed is to install some packages.
sudo apt-get install build-essential gawk zlib1g-dev uuid-dev
The next step is to download and compile the ZFS source code, I got it from http://zfsonlinux.org/example-zpl.html.
Then unpack the tgz’s and use configure, make and make install like with any other source code distributed program.
Now it’s time to see weather the new ZFS kernel modules can be loaded. Use the following commands.
sudo modprobe splat
sudo splat -a
sudo modprobe zfs
lsmod |grep zfs
Hopefully the zfs module will be loaded and you’re ready to go.
You might have problems with a shared library not being found, then run this command to include /usr/local/lib in the LD_LIBRARY_PATH.
I created a zpool called testpool using raidz with four disks.
Another pool with two mirrored sets worked aswell.
Just for the fun of it I even made a quick test with bonnie++. Since I’m running this in a virtual machine it’s pretty much pointless, since the numbers doesn’t say anything about the performance… Ehm… When I wrote this bonnie++ seg faulted. Aw well, guess I didn’t run bonnie++ after all then.
So, is ZFS on Linux ready for production use? Probably not, I’d still stick to Solaris or possibly FreeBSD. The development seems to be progressing though, and hopefully we’ll see a stable version in the not-too-distant future.
This work, unless otherwise expressly stated, is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License.