Ask Your Question
0

ZFS Permission denied

asked 2013-11-23 15:13:32 -0600

wzup gravatar image

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.

edit retag flag offensive close merge delete

Comments

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

domg472 gravatar imagedomg472 ( 2013-11-25 11:27:44 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2013-11-28 13:40:18 -0600

wzup gravatar image

Yes it's indeed SELinux related.

I've tried checking AVC denials but get no message at all about ZFS.

I guess I've to disable SELinux for now to make it work...

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2013-11-23 15:13:32 -0600

Seen: 632 times

Last updated: Nov 28 '13