The following describes how to install a native ZFS File System on Ubuntu/Linux. Test environment: Linux2.6.35-24-generic #42-20.tusmpx86_64gnu/linuxubunubuntu10.10. It is also applicable to Ubuntu10.04. Make sure that the following package build-essentialgawkzlib1g-devuuid-dev is installed without installation, use the command to install: sudoap
The following describes how to install a native ZFS File System on Ubuntu/Linux.
Test environment: Linux 2.6.35-24-generic # 42-Ubuntu SMP x86_64 GNU/Linux Ubuntu 10.10, which is also applicable to Ubuntu 10.04.
Make sure the following software packages are installed
Build-essential
Gawk
Zlib1g-dev
Uuid-dev
If no installation is available, run the following command to install:
Sudo apt-get install build-essential gawk zlib1g-dev uuid-dev
Now we are preparing to install spland ZFS from http://zfsonlinux.org/
Sudo cd/usr/src
Download the latest version:
Sudo wget http://github.com/downloads/behlendorf/spl/spl-0.5.2.tar.gz
Sudo wget http://github.com/downloads/behlendorf/zfs/zfs-0.5.2.tar.gz
Build SPL (used to compile ZFS)
Sudo tar-xvzf spl-0.5.2.tar.gz
Sudo cd spl-0.5.2/
Sudo./configure
Sudo make
Sudo make install
Build ZFS
Cd ..
Sudo tar-xvzf zfs-0.5.2.tar.gz
Sudo cd zfs-0.5.2/sudo./configure
Sudo make
Sudo make install
Check whether splat works. The ZFS module has been loaded:
Sudo modprobe splat
Sudo splat-
Sudo modprobe zfs
Lsmod | grep zfs
OK ~~
If the path LD_LIBRARY_PATH is lost, the following error will occur for all ZFS commands:
Zfs: error while loading shared libraries: libspl. so.0: cannot open shared object file: No such file or directory
You can add an environment and modify it:
Export LD_LIBRARY_PATH = $ LD_LIBRARY_PATH:/usr/local/lib
Okay ~~