[Package Installer] 安装ZFS出现如下错误,我是小白,实在判断不出来。。。
Tofloor
poster avatar
Mr.YJ
deepin
2022-02-21 21:37
Author

在Vmware虚拟了一个deepinlinux,想试试用8盘的zfs,结果安装zfsuilt-linux时候,出现了以下的错误。。。。

正在读取软件包列表... 完成
正在分析软件包的依赖关系树       
正在读取状态信息... 完成       
正在计算更新... 完成
升级了 0 个软件包,新安装了 0 个软件包,要卸载 0 个软件包,有 0 个软件包未被升级。
有 2 个软件包没有被完全安装或卸载。
解压缩后会消耗 0 B 的额外空间。
正在设置 zfsutils-linux (0.8.4-2~bpo10+1) ...
modprobe: FATAL: Module zfs not found in directory /lib/modules/5.10.83-amd64-desktop
zfs-import-scan.service is a disabled or a static unit, not starting it.
A dependency job for zfs-import-cache.service failed. See 'journalctl -xe' for details.
Job for zfs-load-module.service failed because the control process exited with error code.
See "systemctl status zfs-load-module.service" and "journalctl -xe" for details.
zfs-import-scan.service is a disabled or a static unit, not starting it.
Job for zfs-load-module.service failed.
See "systemctl status zfs-load-module.service" and "journalctl -xe" for details.
A dependency job for zfs-import-cache.service failed. See 'journalctl -xe' for details.
insserv: FATAL: service mtab has to be enabled to use service zfs-import
Job for zfs-mount.service failed because the control process exited with error code.
See "systemctl status zfs-mount.service" and "journalctl -xe" for details.
invoke-rc.d: initscript zfs-mount, action "start" failed.
● zfs-mount.service - Mount ZFS filesystems
   Loaded: loaded (/lib/systemd/system/zfs-mount.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Mon 2022-02-21 13:27:57 CST; 7ms ago
     Docs: man:zfs(8)
  Process: 14725 ExecStart=/sbin/zfs mount -a (code=exited, status=1/FAILURE)
 Main PID: 14725 (code=exited, status=1/FAILURE)

2月 21 13:27:57 yjdp systemd[1]: Starting Mount ZFS filesystems...
2月 21 13:27:57 yjdp zfs[14725]: The ZFS modules are not loaded.
2月 21 13:27:57 yjdp zfs[14725]: Try running '/sbin/modprobe zfs' as root to load them.
2月 21 13:27:57 yjdp systemd[1]: zfs-mount.service: Main process exited, code=exited, status=1/FAILURE
2月 21 13:27:57 yjdp systemd[1]: zfs-mount.service: Failed with result 'exit-code'.
2月 21 13:27:57 yjdp systemd[1]: Failed to start Mount ZFS filesystems.
dpkg: 处理软件包 zfsutils-linux (--configure)时出错:
 已安装 zfsutils-linux 软件包 post-installation 脚本 子进程返回错误状态 1
正在设置 zfs-dkms (0.8.4-2~bpo10+1) ...
Removing old zfs-0.8.4 DKMS files...

------------------------------
Deleting module version: 0.8.4
completely from the DKMS tree.
------------------------------
Done.
Loading new zfs-0.8.4 DKMS files...
Building for 5.10.83-amd64-desktop
Building initial module for 5.10.83-amd64-desktop
configure: error:
        *** None of the expected "global page state" interfaces were detected.
        *** This may be because your kernel version is newer than what is
        *** supported, or you are using a patched custom kernel with
        *** incompatible modifications.
        ***
        *** ZFS Version: zfs-0.8.4-2~bpo10+1
        *** Compatible Kernels: 2.6.32 - 5.6

Error! Bad return status for module build on kernel: 5.10.83-amd64-desktop (x86_64)
Consult /var/lib/dkms/zfs/0.8.4/build/make.log for more information.
dpkg: 处理软件包 zfs-dkms (--configure)时出错:
 已安装 zfs-dkms 软件包 post-installation 脚本 子进程返回错误状态 10
正在处理用于 initramfs-tools (0.137.35-1+dde) 的触发器 ...
update-initramfs: Generating /boot/initrd.img-5.10.83-amd64-desktop
cryptsetup: WARNING: The initramfs image may not contain cryptsetup binaries
    nor crypto modules. If that's on purpose, you may want to uninstall the
    'cryptsetup-initramfs' package in order to disable the cryptsetup initramfs
    integration and avoid this warning.
setupcon is missing. Please install the 'console-setup' package.
W: plymouth: The plugin label.so is missing, the selected theme might not work as expected.
W: plymouth: You might want to install the plymouth-themes package to fix this.
I: The initramfs will attempt to resume from /dev/sda4
I: (UUID=3aac16e9-4a82-40f2-a308-c75f87f82bed)
I: Set the RESUME variable to override this.
live-boot: core filesystems devices utils udev blockdev dns.
在处理时有错误发生:
 zfsutils-linux
 zfs-dkms
E: Sub-process /usr/bin/dpkg returned an error code (1)

然后去找了一下log

yjs@yjdp:~$ cat /var/lib/dkms/zfs/0.8.4/build/make.log
DKMS make.log for zfs-0.8.4 for kernel 5.10.83-amd64-desktop (x86_64)
2022年 02月 21日 星期一 13:28:51 CST
make: *** 没有指明目标并且找不到 makefile。 停止。

 

我只有很基础的linux水平,我不负责任的猜测一下哈哈。。。

1,zfs-dkms是0.8.4,不是0.4.8.2~bpo10+1.。。。

2,内核不支持ZFS

 

。。。。。。关键是各位大神,谁给指条明路。。。。。。这个。。。。咋整???

Reply Favorite View the author
All Replies
lcw0268
deepin
2022-02-21 21:43
#1
It has been deleted!
kenneth104
deepin
2022-02-21 21:59
#2

内核版本过高(zfs版本过低)

1,降低内核,不太现实,问题更多

2,从buster-backports安装“更”新版本的zfs,debian上游推荐做法

https://wiki.debian.org/ZFS

Reply View the author
新手小白
deepin
2022-02-21 22:32
#3
It has been deleted!
新手小白
deepin
2022-02-21 22:38
#4
It has been deleted!
Mr.YJ
deepin
2022-02-22 03:17
#5

哦我大概明白了,源里面的ZFS版本过低,新的内核不支持,需要下载新安装包dpkg -i,或者使用旧的源安装旧版本和一系列依赖~我去试试~~~

Reply View the author
redbrother
deepin
2022-02-27 09:49
#6

据说Debian的内核zfs缺少支持,就算依赖满足了还是出错,需要安装proxmox的内核(司波图折腾omv得出的经验)

Reply View the author
贪狼
deepin
2022-03-08 03:12
#7

有哪位大佬折腾成功的。。。我还是先回到我的 omv 吧

Reply View the author
andot
deepin
2023-03-18 17:50
#8

我参考这个官方文档:https://openzfs.github.io/openzfs-docs/Developer%20Resources/Custom%20Packages.html#debian-and-ubuntu

从源码编译 deb 包安装成功了。用的是 DKMS 方式安装的。

另外参考了一些官方论坛的内容,在 MacOS 里面也安装好了,两个系统现在通过 zfs 文件系统共享文件,不用 NTFS 了。

因为 MacOS 现在的最新版本是 2.1.6,linux 系统我用的是 UOS,虽然最新 linux 版本的 openzfs 是 2.1.9,但为了保持跟 MacOS 版本一致,所以我在 UOS 里面下载的也是 2.1.6 的源码编译安装的。

Reply View the author