zfs icon indicating copy to clipboard operation
zfs copied to clipboard

problem loading zfs module

Open clhedrick opened this issue 4 months ago • 0 comments

System information

Type | Version/Name Redhat | 9.4 Distribution Name | Redhat Distribution Version |9.4 Kernel Version |5.14.0-427.37.1 Architecture | x86_64 OpenZFS Version | 2.2.6

Describe the problem you're observing

After reboot, zed didn't start.

Describe how to reproduce the problem

reboot

Include any warning/errors/backtraces from the system logs

Creating /etc/modules-load.d/zfs.conf fixed it

I notice that /usr/lib/modules-load.d/zfs.conf exists, but the zfs in it is commented out. The comment says that will result in loading zfs on demand.

The unit file for for zed causes it not to start if /sys/module/zfs doesn't exist. I assume that is created when zfs loads. There's no timing constraint on zed other than wanted by zfs.target.

I suspect that the demand load may happen after zed's test, and thus zed doesn't start. Systemd starts things in parallel, so in principle zed could be the first service started.

clhedrick avatar Oct 14 '24 19:10 clhedrick