Install ZFS in Ubuntu

Source: Internet
Author: User
Tags spl
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

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
Sudo cd/usr/src

Download the latest version:
Sudo wget
Sudo wget

Build SPL (used to compile ZFS)
Sudo tar-xvzf spl-0.5.2.tar.gz

Sudo cd spl-0.5.2/


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 ~~

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.