I was just reading this guy's page on building zfs on linux using the source code from the
http://zfsonlinux.org/ web page. He did it on Centos 6.2
http://prefetch.net/blog/index.php/2...-linux-server/
I have Fedora 16 x64 and so tried to emulate his steps. But on Fedora 16, the kernel is much newer (I have the 3.2.6 kernel) so the pre-rolled 0.6.0-rc6 spl and zfs tar files he used are too old for Fedora 16.
When I tried I got an error:
too few arguments to function 'filp->f_op->fsync'
the mailing lists showed that was due to the kernel 3.2.6 having changes not in the tar files yet. So I then got the git repos for spl and zfs via git clone. That worked fine and both sets of rpms built and I installed them. This is what I had to do:
Quote:
su -c 'yum install kernel-devel zlib-devel libuuid-devel libblkid-devel libselinux-devel parted lsscsi'
(I built them both in my home folder in ~/local )
cd ~/local
git clone https://github.com/zfsonlinux/spl.git
git clone https://github.com/zfsonlinux/zfs.git
cd spl
./configure
make rpm
(this yum install seems necessary to be done here before the zfs 'make rpm' later so it can find
some dependencies)
su -c 'yum install *.x86_64.rpm'
cd ../zfs
./configure
make rpm
su -c 'yum install *.x86_64.rpm'
cd /lib/modules
su -c 'depmod -a'
su -c 'modprobe zfs'
|
At this point, the loading of the 'zfs' module should pull in all these modules so lsmod | grep zfs shows:
Quote:
lsmod | grep zfs
zfs 1018354 0
zcommon 43419 1 zfs
znvpair 47131 2 zfs,zcommon
zavl 14376 1 zfs
zunicode 330756 1 zfs
spl 161284 5 zfs,zcommon,znvpair,zavl,zunicode
|
That's it, at that point I had 'zfs' module installed in the kernel, but since my entire laptop drive is formatted and under use, I can't use it. My main intent was just to try it and get to the point
of having working modules that install.
But for you with space, you'd do the usual ZFS 'zpool create' and so on to make your pools and put them on the device you want.