Closed wallzero closed 2 years ago
I have three pools on my test system with no issues. What is the output of: sudo zfs list
There are a lot of file systems in the output list including docker images. I'd rather not show the whole thing. But the root file system is there:
rpool/debian/root 2.00G 20.0G 2.00G /
Is one of your three pools acting as a root file system?
Nope. That probably is the issue. Never even tested the plugin against zfs on root. You will probably have to disable monitoring (not part of the zfs plugin) to have root zfs.
As for output, I don't need it this time (didn't notice that you were trying to use zfs on root in the original post) but try being an admin on a system where commands only give you 10% of the output.
Disabling monitoring had no effect. But changing monitoring did throw the same error whether I had a second pool mounted or not. So I suspect an additional imported pool isn't the issue.
In the meantime I did something hacky to allow the config generation to complete:
### /var/cache/salt/minion/extmods/modules/omv_utils.py:235
def get_root_filesystem():
"""
Get the device file of the root filesystem, e.g. '/dev/sda1'.
:return: The device file of the root filesystem.
:rtype: str
"""
fs = openmediavault.fs.Filesystem.from_mount_point('/')
# return fs.predictable_device_file
return "rpool/debian/root"
I think the issue is OMV is trying to find a device file while ZFS filesystems don't really have one. I'll see if the above change has any negative impact on my setup.
That will cause other issues. The real solution is to not use zfs for root. I see little reason to. You can use btrfs or lvm if you want snapshots.
The collectd is error is monitoring though. It may not be able to disable monitoring with zfs root. Either way, this is not something the zfs plugin can fix. So, I will close the ticket. This can be discussed further in the forum where more people will see it.
I've installed OMV6 on a root ZFS filesystem. Everything works fine with just the root pool. When mounting a second pool, I get the following error and can't commit the configuration change:
It complains
No such file or directory: 'rpool/debian/root'
which is the root pool. But the configuration and root pool work fine until I try to import a second pool.