Comments on Native ZFS On Ubuntu
Native ZFS On Ubuntu This guide explains how to set up native ZFS on Ubuntu / Linux. It was tested with Linux 2.6.35-24-generic #42-Ubuntu SMP x86_64 GNU/Linux on Ubuntu 10.10 but should also work on Ubuntu 10.04.
8 Comment(s)
Comments
sudo this was hilarious.
sudo i hope no one actually does what you suggest.
sudo end comment.
Tutorial for native ZFS including the POSIX layer (mounting datasets and working with them) for Ubuntu and Fedora is available here.
Hi brande,
At the "Download the latsest release, e.g.;" step I get the following error:
This information is just to let you know so you can finetune your tutorial.
chris@SmackBook:~$ sudo wget http://github.com/downloads/behlendorf/spl/spl-0.5.2.tar.gz
--2011-01-24 13:56:19-- http://github.com/downloads/behlendorf/spl/spl-0.5.2.tar.gz
Resolving github.com... 207.97.227.239
Connecting to github.com|207.97.227.239|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: https://github.com/downloads/behlendorf/spl/spl-0.5.2.tar.gz [following]
--2011-01-24 13:56:21-- https://github.com/downloads/behlendorf/spl/spl-0.5.2.tar.gz
Connecting to github.com|207.97.227.239|:443... connected.
ERROR: certificate common name `*.github.com' doesn't match requested host name `github.com'.
To connect to github.com insecurely, use `--no-check-certificate'.
sudo wget http://github.com/zfsonlinux/spl/downloads/spl-0.6.0-rc9.tar.gz
sudo wget http://github.com/zfsonlinux/zfs/downloads/zfs-0.6.0-rc9.tar.gz
Putting the libraries in the LD_LIBRARY_PATH, is fine for running commands once in a while, but you should probably just configure the loader to do the right thing. Add the path to ld.so.conf and then run ldconfig.
You really doesn't need to do "sudo cd". Just plain "cd" is enough.
You should prob. not do "tar -zxf" or "make" as root either, as it is a possible security problem.
Just do:
"sudo mkdir -p /usr/src/zfs
sudo chown youruser:src /usr/src/zfs
cd /usr/src/zfs"
etc
untill it is time to install, then do
"sudo make install"
Why even build in /usr/src? Just build the modules locally somewhere in your own home directory without all the sudo prefixes, then do the final install with
sudo make install
this is the way that 99.9999% of all kernel drivers build and install (except for some crazies at Realtek)
If you want to do everything as root anyways... sudo -i is much easier :P