web-dev-qa-db-pt.com

Os módulos ZFS não estão carregados

Por favor, alguém explique como eu posso consertar isso, está me deixando louca. Eu realmente gostaria de ter o ZFS funcionando. Eu estou executando um sistema operacional de 64 bits, é braço embora

[email protected]:~# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 16.04.2 LTS
Release:        16.04
Codename:       xenial

[email protected]:~# zfs list
The ZFS modules are not loaded.
Try running '/sbin/modprobe zfs' as root to load them.

[email protected]:~# uname -a
Linux amlogic 3.14.29 #11 SMP PREEMPT Sat Jul 1 21:28:33 MSK 2017 aarch64 aarch64 aarch64 GNU/Linux

[email protected]:~# /sbin/modprobe zfs
modprobe: FATAL: Module zfs not found in directory /lib/modules/3.14.29

[email protected]:~# 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).

depois de remover zfs e zfsutils-linux e, em seguida, reinstalar

[email protected]:~# 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

... ainda mesmo problema quando eu corro zfs list

2
ycomp

Às vezes isso me ajudou a obter os módulos:

Sudo apt install zfs-dkms
Sudo modprobe zfs

Sudo zfs list

Isso requer que os fundamentos e cabeçalhos de construção do kernel atual estejam disponíveis. Esteja ciente de alguns problemas com os kernels de compilação personalizados.

Ele funcionou várias vezes em meus laptops x64 e, às vezes, também em um Raspberry Pi, que é uma plataforma de braço.

Além disso, você pode precisar obter o módulo para initramfs, mas isso é outro tópico.

1
user733979