ZFS Failed to Initialize libzfs lilbrary

mahesar

New Member
Mar 24, 2024
2
0
1
Hello, i was just found error when i try to install ZFS, i already tried ZFS before, but after i reboot it shows error like this
root@projecthome:~# uname -r
6.8.12-6-pve
root@projecthome:~# modprobe zfs
modprobe: ERROR: could not insert 'zfs': Invalid argument
root@projecthome:~# zfs version
zpool version
Failed to initialize the libzfs library.
Failed to initialize the libzfs library.
root@projecthome:~# sudo apt install alien autoconf automake build-essential debhelper-compat dh-autoreconf dh-dkms dh-python dkms fakeroot gawk git libaio-dev libattr1-dev libblkid-dev libcurl4-openssl-dev libelf-dev libffi-dev libpam0g-dev libssl-dev libtirpc-dev libtool libudev-dev linux-headers-generic parallel po-debconf python3 python3-all-dev python3-cffi python3-dev python3-packaging python3-setuptools python3-sphinx uuid-dev zlib1g-dev
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Note, selecting 'debhelper' instead of 'debhelper-compat'
Package linux-headers-generic is a virtual package provided by:
pve-headers-6.1 7.3-4
proxmox-headers-6.8 6.8.12-6
proxmox-headers-6.5 6.5.13-6
proxmox-headers-6.2 6.2.16-20
proxmox-headers-6.11 6.11.0-2
linux-headers-amd64 6.1.124-1
You should explicitly select one to install.

E: Package 'linux-headers-generic' has no installation candidate
root@projecthome:~# systemctl status zfs-import-cache
systemctl status zfs-import-scan
○ zfs-import-cache.service - Import ZFS pools by cache file
Loaded: loaded (/lib/systemd/system/zfs-import-cache.service; enabled; preset: enabled)
Active: inactive (dead)
Condition: start condition failed at Sun 2025-01-19 23:20:41 WITA; 3min 48s ago
└─ ConditionPathIsDirectory=/sys/module/zfs was not met
Docs: man:zpool(8)

Jan 19 23:20:41 projecthome systemd[1]: zfs-import-cache.service - Import ZFS pools by cache file was skipped because of an unmet condition check (Condi>
○ zfs-import-scan.service - Import ZFS pools by device scanning
Loaded: loaded (/lib/systemd/system/zfs-import-scan.service; disabled; preset: disabled)
Active: inactive (dead)
Docs: man:zpool(8)
root@projecthome:~# systemctl status zfs-import-cache
systemctl status zfs-import-scan
○ zfs-import-cache.service - Import ZFS pools by cache file
Loaded: loaded (/lib/systemd/system/zfs-import-cache.service; enabled; preset: enabled)
Active: inactive (dead)
Condition: start condition failed at Sun 2025-01-19 23:20:41 WITA; 3min 56s ago
└─ ConditionPathIsDirectory=/sys/module/zfs was not met
Docs: man:zpool(8)

Jan 19 23:20:41 projecthome systemd[1]: zfs-import-cache.service - Import ZFS pools by cache file was skipped because of an unmet condition check (Condi>
○ zfs-import-scan.service - Import ZFS pools by device scanning
Loaded: loaded (/lib/systemd/system/zfs-import-scan.service; disabled; preset: disabled)
Active: inactive (dead)
Docs: man:zpool(8)
 
Also, i want to ask about what should i use the configuration. I have 3 SATA (6TB, 4TB, 2TB) what should i do with the drive, is it better to just do it standalone or other like ZFS, LVM, etc. I have another drive 1 SAS (8TB) for backup. Specification:
1. Intel Xeon E5-2650v4
2. RAM 56GB DDR4 2400MHz
3. NVMe 256GB PCIe Gen 3 (Adata XPG)
4. 1x SAS 8TB
5. 3x SATA (6TB, 4TB, 2TB)

Thank you for anyone helping me !

another try while i was creating ZFS using GUI

# /sbin/zpool create -o ashift=12 data-pool raidz /dev/disk/by-id/ata-ST6000VX0023-2EF110_ZAD24HC4 /dev/disk/by-id/ata-WDC_WD40PURZ-85AKKY0_WD-WXC2D90HPNA7 /dev/disk/by-id/ata-ST2000NM0033-9ZM175_Z1X61W0T
invalid vdev specification
use '-f' to override the following errors:
raidz contains devices of different sizes
TASK ERROR: command '/sbin/zpool create -o 'ashift=12' data-pool raidz /dev/disk/by-id/ata-ST6000VX0023-2EF110_ZAD24HC4 /dev/disk/by-id/ata-WDC_WD40PURZ-85AKKY0_WD-WXC2D90HPNA7 /dev/disk/by-id/ata-ST2000NM0033-9ZM175_Z1X61W0T' failed: exit code 1

It looks like this
 
Last edited: