我已经在 Centos 7 中安装了 ZFS(0.6.5) 并且我还创建了一个 zpool,除了我的数据集在重新启动时消失之外,一切正常。
我一直在尝试借助各种在线资源和博客来调试此问题,但无法获得理想的结果。
重新启动后,当我发出zfs list
命令时,我得到"no datasets available",并zpool list
给出了"no pools available"
经过大量在线研究,我可以通过使用zpool import -c cachefile手动导入缓存文件来使其工作,但是我仍然必须在重新启动之前运行zpool set cachefile=/etc/zfs/zpool.cache Pool以便在重新启动后稍后导入它。
这是什么systemctl status zfs-import-cache
好像,
zfs-import-cache.service - Import ZFS pools by cache file
Loaded: loaded (/usr/lib/systemd/system/zfs-import-cache.service; static)
Active: inactive (dead)
cat /etc/sysconfig/zfs
# ZoL userland configuration.
# Run `zfs mount -a` during system start?
ZFS_MOUNT='yes'
# Run `zfs unmount -a` during system stop?
ZFS_UNMOUNT='yes'
# Run `zfs …
Run Code Online (Sandbox Code Playgroud)