![]() |
[How-To] Add ZFS to the Linux kernel
ZFS-On-Linux is a port of the highly advanced ZFS File System that originated from the Solaris UNIX operating system. Unfortunately due to license issues that have YET to be resolved by the GPL side of things, and trust me this is petty squabbling at it's best and worst, you can't unfortunately get a Linux distribution with ZFS...
...but nobody said anything about building it from scratch yourself, and LFS is a peanut butter sandwich just waiting for some ZFS jelly. Sound tasty? So do you want the most advanced file system for your own private build? Was that a yes? Is BtrFS still useless to you? Thought so, then, get ready to unpack some sources, and let's proceed. First off you'll need a working kernel config. I HIGHLY recommend you use a feature complete kernel for this... such as Slackware's. Let's unpack the sources and copy the config in. Code:
cd /sources Now, grab a copy of SPL (the Solaris Porting Layer) from the zfs-on-linux website located at the link below, along with the zfs sources: http://zfsonlinux.org/ Versions 0.6.3 should be current. Now let's first get the kernel prepped: Code:
cd /sources/linux-* For the next two steps, make sure you replace <version here> with the kernel version number: Code:
cd .. Code:
cd .. Code:
cd /sources/linux-* You should also add in a dummy fsck.zfs utility as well since ZFS doesn't use this. Code:
cat > /sbin/fsck.zfs << "EOF" Congratulations! You've now got a Linux kernel with support for the most advanced filesystem, ZFS. Final word of advice: If you want to create a zpool that mounts using good ol' mount and fstab style options, use something like this command when you configure the zpool: Code:
zfs set mountpoint=legacy zfs-root |
All times are GMT -5. The time now is 04:27 AM. |