ZFS Permission denied
I managed to install ZFS on linux on fedora.
It's working fine but I'm having trouble with automatic startup script.
Nov 23 21:49:58 localhost.home zfs[3336]: Importing ZFS pools not yet imported: no pools available to import
Nov 23 21:49:58 localhost.home zfs[3336]: [95B blob data]
Nov 23 21:49:58 localhost.home zfs[3336]: Unable to open /dev/zfs: Permission denied.
Nov 23 21:49:58 localhost.home zfs[3336]: cannot mount 'storage': Resource temporarily unavailable
Nov 23 21:49:58 localhost.home systemd[1]: zfs.service: control process exited, code=exited status=152
Nov 23 21:49:58 localhost.home systemd[1]: Failed to start LSB: Mount/umount the zfs filesystems.
Nov 23 21:49:58 localhost.home systemd[1]: Unit zfs.service entered failed state.
I have no idea why it's complaining about permission denied.
If i do it manually by doing zfs import then it's working fine.
Could be SELinux related.
Are there any AVC denials in your audit.log or dmesg when you boot up the system in permissive mode?
You can boot up in permissive mode by going into the grub menu, press e to edit the current kernel boot line, append "enforcing=0" then press F10 to boot
After you booted check dmesg for AVC denials: dmesg | grep -i denied, and check audit.log: "ausearch -m avc -ts today" zfs is not that well supported by SELinux, and/or zfs does not support SELinux that well, yet