Ubuntu 21.10:ZFS 池自动挂载不起作用(昨晚更新至 21.10)

Ubuntu 21.10:ZFS 池自动挂载不起作用(昨晚更新至 21.10)

设置:Ubuntu 21.10(带最新更新)。这个问题在 21.10 发布之前就出现了。直到现在我才开始修复它。

zfs 版本是:

root@myserver:~# zfs --version
zfs-2.0.2-1ubuntu5.1
zfs-kmod-2.0.2-1ubuntu5.4

我在日志中发现了这一点:

root@myserver:~# journalctl -b | grep zfs
Jan 27 09:12:21 myserver udevadm[702]: systemd-udev-settle.service is deprecated. Please fix multipathd.service, zfs-import-cache.service, zfs-load-module.service not to pull it in.
Jan 27 09:12:22 myserver systemd[1]: zfs-import-cache.service: Main process exited, code=exited, status=1/FAILURE
Jan 27 09:12:22 myserver systemd[1]: zfs-import-cache.service: Failed with result 'exit-code'.

然后我尝试使用缓存安装我的池

root@myserver:~# ls -al /etc/zfs/zpool.cache
-rw-r--r-- 1 root root 4016 Jan 27 08:03 /etc/zfs/zpool.cache
root@myserver:~# zpool import -c /etc/zfs/zpool.cache -aN
cannot import 'storage-myserver': one or more devices is currently unavailable

但使用此命令导入池没有问题

root@myserver:~# zpool import storage-myserver

我尝试使用下面的命令重新创建缓存文件,但自动导入仍然不起作用(重新启动后),并且重新运行上面的 zpool import -c 命令也不起作用

# zpool set cachefile=/etc/zfs/zpool.cache storage-myserver

有什么解决方法吗?谢谢

相关内容