web-dev-qa-db-fra.com

Les modules ZFS ne sont pas chargés

S'il vous plaît quelqu'un expliquer comment je peux résoudre ce problème, cela me rend fou. J'aimerais vraiment que ZFS fonctionne. J'utilise un système d'exploitation 64 bits, il est bien armé

root@amlogic:~# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 16.04.2 LTS
Release:        16.04
Codename:       xenial

root@amlogic:~# zfs list
The ZFS modules are not loaded.
Try running '/sbin/modprobe zfs' as root to load them.

root@amlogic:~# uname -a
Linux amlogic 3.14.29 #11 SMP PREEMPT Sat Jul 1 21:28:33 MSK 2017 aarch64 aarch64 aarch64 GNU/Linux

root@amlogic:~# /sbin/modprobe zfs
modprobe: FATAL: Module zfs not found in directory /lib/modules/3.14.29

root@amlogic:~# Sudo apt install zfs
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'zfsutils-linux' instead of 'zfs'
zfsutils-linux is already the newest version (0.6.5.6-0ubuntu17).

après avoir supprimé zfs et zfsutils-linux puis réinstallé

root@amlogic:~# apt install zfsutils-linux
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
  libzfs2linux
Suggested packages:
  samba-common-bin nfs-kernel-server zfs-initramfs
Recommended packages:
  zfs-dkms zfs-zed
The following NEW packages will be installed:
  libzfs2linux zfsutils-linux
0 upgraded, 2 newly installed, 0 to remove and 13 not upgraded.
Need to get 344 kB of archives.
After this operation, 1,027 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://ports.ubuntu.com xenial-updates/main arm64 libzfs2linux arm64 0.6.5.6-0ubuntu17 [86.7 kB]
Get:2 http://ports.ubuntu.com xenial-updates/main arm64 zfsutils-linux arm64 0.6.5.6-0ubuntu17 [257 kB]
Fetched 344 kB in 2s (123 kB/s)
Selecting previously unselected package libzfs2linux.
(Reading database ... 163857 files and directories currently installed.)
Preparing to unpack .../libzfs2linux_0.6.5.6-0ubuntu17_arm64.deb ...
Unpacking libzfs2linux (0.6.5.6-0ubuntu17) ...
Selecting previously unselected package zfsutils-linux.
Preparing to unpack .../zfsutils-linux_0.6.5.6-0ubuntu17_arm64.deb ...
Unpacking zfsutils-linux (0.6.5.6-0ubuntu17) ...
Processing triggers for libc-bin (2.23-0ubuntu9) ...
Processing triggers for initramfs-tools (0.122ubuntu8.8) ...
ln: failed to create hard link '/boot/initrd.img-3.14.29.dpkg-bak' => '/boot/initrd.img-3.14.29': Operation not permitted
update-initramfs: Generating /boot/initrd.img-3.14.29
update-initramfs: Converting to u-boot format
Processing triggers for systemd (229-4ubuntu17) ...
Processing triggers for ureadahead (0.100.0-19) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up libzfs2linux (0.6.5.6-0ubuntu17) ...
Setting up zfsutils-linux (0.6.5.6-0ubuntu17) ...
zfs-import-cache.service is a disabled or a static unit, not starting it.
zfs-import-scan.service is a disabled or a static unit, not starting it.
zfs-mount.service is a disabled or a static unit, not starting it.
Processing triggers for libc-bin (2.23-0ubuntu9) ...
Processing triggers for initramfs-tools (0.122ubuntu8.8) ...
ln: failed to create hard link '/boot/initrd.img-3.14.29.dpkg-bak' => '/boot/initrd.img-3.14.29': Operation not permitted
update-initramfs: Generating /boot/initrd.img-3.14.29
update-initramfs: Converting to u-boot format

... toujours le même problème quand je lance zfs list

2
ycomp

Parfois, cela m'a aidé à construire les modules:

Sudo apt install zfs-dkms
Sudo modprobe zfs

Sudo zfs list

Cela nécessite les bases de la construction et les en-têtes pour que le noyau actuel soit disponible. Soyez conscient de certains problèmes liés aux noyaux de construction personnalisés.

Cela a fonctionné plusieurs fois sur mes ordinateurs portables x64 et parfois aussi sur un Raspberry Pi qui est une plate-forme à bras.

De plus, vous devrez peut-être initialiser le module avec initramfs, mais ceci est un autre sujet.

1
user733979