ZFS failed to start

最大的社区版本,Ubuntu的发源地
回复
寺島聰子
帖子: 688
注册时间: 2016-06-03 14:39
系统: debian11 mate

ZFS failed to start

#1

帖子 寺島聰子 » 2020-05-23 14:05

$ sudo apt install zfs-initramfs

途中からエラー出ました。
有人能帮我解决这个问题吗 :What

zfs-mount.service - Mount ZFS filesystems
Loaded: loaded (/lib/systemd/system/zfs-mount.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Sat 2020-05-23 00:02:16 JST; 11ms ago
Docs: man:zfs(8)
Process: 1829 ExecStart=/sbin/zfs mount -a (code=exited, status=1/FAILURE)
Main PID: 1829 (code=exited, status=1/FAILURE)

5月 23 00:02:16 kyo systemd[1]: Starting Mount ZFS filesystems...
5月 23 00:02:16 kyo zfs[1829]: The ZFS modules are not loaded.
5月 23 00:02:16 kyo zfs[1829]: Try running '/sbin/modprobe zfs' as root to load them.
5月 23 00:02:16 kyo systemd[1]: zfs-mount.service: Main process exited, code=exited, status=1/FAILURE
5月 23 00:02:16 kyo systemd[1]: zfs-mount.service: Failed with result 'exit-code'.
5月 23 00:02:16 kyo systemd[1]: Failed to start Mount ZFS filesystems.
dpkg: パッケージ zfsutils-linux の処理中にエラーが発生しました (--configure):
installed zfsutils-linux package post-installation script subprocess returned error exit status 1
dpkg: 依存関係の問題により zfs-initramfs の設定ができません:
zfs-initramfs は以下に依存 (depends) します: zfsutils-linux (>= 0.7.12-2+deb10u2) ...しかし:
パッケージ zfsutils-linux はまだ設定されていません。

dpkg: パッケージ zfs-initramfs の処理中にエラーが発生しました (--configure):
依存関係の問題 - 設定を見送ります
dpkg: 依存関係の問題により zfs-zed の設定ができません:
zfs-zed は以下に依存 (depends) します: zfsutils-linux (>= 0.7.12-2+deb10u2) ...しかし:
パッケージ zfsutils-linux はまだ設定されていません。

dpkg: パッケージ zfs-zed の処理中にエラーが発生しました (--configure):
依存関係の問題 - 設定を見送ります
libc-bin (2.28-10) のトリガを処理しています ...
systemd (241-7~deb10u3) のトリガを処理しています ...
man-db (2.8.5-2) のトリガを処理しています ...
initramfs-tools (0.133+deb10u1) のトリガを処理しています ...
update-initramfs: Generating /boot/initrd.img-4.19.0-9-amd64
処理中にエラーが発生しました:
zfsutils-linux
zfs-initramfs
zfs-zed
E: Sub-process /usr/bin/dpkg returned an error code (1)
jin@kyo:~$
头像
帅de没人要
帖子: 170
注册时间: 2007-05-13 14:54
系统: Ubuntu22.04Windows10
来自: 山东倔县耿庄
联系:

Re: ZFS failed to start

#2

帖子 帅de没人要 » 2020-05-23 16:18

瓦大喜哇 中国人寺内
不懂日语滴。。。
做人要厚道
--------
MechRevo X3 + Ubuntu 22.04+Windows10
头像
astolia
论坛版主
帖子: 6445
注册时间: 2008-09-18 13:11

Re: ZFS failed to start

#3

帖子 astolia » 2020-05-25 10:42

代码: 全选

sudo apt install zfsutils-linux
このコマンドの出力は何ですか
寺島聰子
帖子: 688
注册时间: 2016-06-03 14:39
系统: debian11 mate

Re: ZFS failed to start

#4

帖子 寺島聰子 » 2020-05-25 17:30

你好。帅de没人要,astolia。
匆匆汇报。
Installation做好了。现在是zfs的表演?按
我有点烦恼。
1,
知道了如果使用背端口(现在用重建了下一个版本的包装的东西)就没问题了。
参考
https://openzfs.github.io/openzfs-docs/ ... t=backport

回程端口是仓库,通常提供ZFS的新版本。可以如下使用。
1,添加后端仓库。
2,更新宏包列表。
3,安装内核页眉和其他依赖关系。

$ sudo pluma /etc/apt/sources.list &
删除最下面两行的注释并保存
接着,

$ sudo apt update

1−2
>删除最下面两行的注释并保存
接着,

#deb http://deb.debian.org/debian/ buster-backports main contrib non-free
#deb-src http://deb.debian.org/debian/ buster-backports main contrib non-free

ですね。
# This system was installed using small removable media
# (e.g. netinst, live or single CD). The matching "deb cdrom"
# entries were disabled at the end of the installation process.
# For information about how to configure apt package sources,
# see the sources.list(5) manual.
deb http://deb.debian.org/debian/ buster-backports main contrib non-free
deb-src http://deb.debian.org/debian/ buster-backports main contrib non-free



Update the list of packages:

# apt update

Install the kernel headers and other dependencies:

# apt install --yes dpkg-dev linux-headers-$(uname -r) linux-image-amd64

Install the zfs packages:

# apt-get install zfs-dkms zfsutils-linux

2−3
什么是DKMS?
DKMS是戴尔的Linux工程团队在2003年写的。
动态内核模块支持(DKMS)是用于生成Linux的内核模块的框架,源代码一般不在Linux内核源代码树中。安装新内核后,DKMS支持的内核设备驱动程序将自动重建。

2−4
内核模块总之就像设备驱动程序一样。
内核报头是编译内核模块所需的文件组。
总之,Debian的方针是,如果使用ZFS的话,就要自己将必要的部分整理好。
是因为不想因为和许可证有关而产生多余的障碍吗?

以降を略す。 :Haha
头像
帅de没人要
帖子: 170
注册时间: 2007-05-13 14:54
系统: Ubuntu22.04Windows10
来自: 山东倔县耿庄
联系:

Re: ZFS failed to start

#5

帖子 帅de没人要 » 2020-05-25 20:17

作为一名老菜鸟,还是没有看明白。。。
目前我用到ZFS的地方只限于Ubuntu20.04的ZFS默认安装
使用期间 好处就是每次sudo apt upgrade前可以做一次快照备份
缺点也很明显 每次更新都会形成快照 快照的文件有些大 5G左右
目前还没有找到图形化的ZFS快照的管理工具,造成ZFS占用空间持续增长 直到硬盘空间被挤满。。
做人要厚道
--------
MechRevo X3 + Ubuntu 22.04+Windows10
回复