build zfs on gnu/linux

requirements

debian/ubuntu

apt install build-essential automake libtool
apt install pkg-config zlib1g-dev uuid-dev libblkid-dev libudev-dev libssl-dev

slackware

first, make sure you’ve got git, nmap and curl up and running, as well as all the built-time deps, and finally the kernel source and headers

slackpkg install kernel-headers kernel-source

check youi’re good with ssl and shit

nmap -p 443 github.com
curl -I https://github.com/

shared

check kernel headers and source are in da place

uname -r
ls -lhF /boot/vmlinuz-*
ls -lF /lib/modules/`uname -r`/build

build from source

grab and build the latest release

tag=zfs-2.4.0-rc4

#wget https://github.com/openzfs/zfs/archive/refs/tags/$tag.tar.gz
wget https://github.com/openzfs/zfs/releases/download/$tag/$tag.tar.gz
tar xzf $tag.tar.gz 
cd $tag/

    ./autogen.sh
./configure --help | less
    ./configure --disable-systemd --enable-sysvinit --disable-nls \
    --sysconfdir=/etc --localstatedir=/var \
    --enable-linux-experimental

grep ^proc /proc/cpuinfo
export MAKEFLAGS=-j4

#make clean
    time make >/dev/null && echo BUILT

# pro5s 6m44.185s / 6m46.636s / 6m42.308s
# single core kvm guest 11m41.277s
# asusboard 4m0.210s

    make install >/dev/null && echo INSTALLED

ldconfig

find /lib/modules/ | grep zfs
depmod -a

modprobe zfs
dmesg | grep ZFS

debian/ubuntu

echo zfs >> /etc/modules

slackware

echo /sbin/modprobe zfs >> /etc/rc.d/rc.modules.local

HOME | GUIDES | LECTURES | LAB | SMTP HEALTH | HTML5 | CONTACT
Licensed under MIT