ZFS ZFS Issue during boot

Hi

Following message appears during boot, what does it mean? How to rectify it.

Code:
root@localhost:~ # dmesg -a | grep Error
Error: configure storage: could not open /dev/zfs: no such file or directory: prerequisites for driver not satisfied (wrong filesystem?)

I am running on UFS.

Thanks
rraj
 
Can you post your /etc/rc.conf and /boot/loader.conf please?
Hi BaronBS

Contents of /etc/rc.conf
Code:
clear_tmp_enable="YES"
syslogd_flags="-ss"
sendmail_enable="NONE"
hostname="localhost.localdomain"
local_unbound_enable="YES"
sshd_enable="YES"
moused_enable="YES"
ntpd_enable="YES"
powerd_enable="YES"
# Set dumpdev to "AUTO" to enable crash dumps, "NO" to disable
dumpdev="AUTO"
wlans_iwm0="wlan0"
ifconfig_wlan0="WPA SYNCDHCP"
create_args_wlan0="country IN regdomain FCC4"
#pf_enable="YES"
#pf_rules="/etc/pf.conf"
#pf_flags=""
#pflog_enable="YES"
#pflog_logfile="/var/log/pflog"
#pflog_flags=""
dbus_enable="YES"
hald_enable="YES"
kld_list="i915kms"
kld_list="/boot/modules/i915kms.ko"
#gdm_enable="YES"
#gnome_enable="YES"
clamav_freshclam_enable="YES"
clamav_clamd_enable="YES"
ossechids_enable="YES"
tor_enable="YES"
#polipo_enable="YES"
#slim_enable="YES"

tor_setuid="YES"

#ipfilter_enable="YES"             # Start ipf firewall
#ipfilter_rules="/etc/ipf.rules"   # loads rules definition text file
#ipv6_ipfilter_rules="/etc/ipf6.rules" # loads rules definition text file for IPv6
#ipmon_enable="YES"                # Start IP monitor log
#ipmon_flags="-Ds"                 # D = start as daemon
                                  # s = log to syslog
                                  # v = log tcp window, ack, seq
                                  # n = map IP & port to names
#gateway_enable="YES"              # Enable as LAN gateway
#ipnat_enable="YES"                # Start ipnat function
#ipnat_rules="/etc/ipnat.rules"    # rules definition file for ipnat
static_arp_pairs="gw"
static_arp_gw="192.168.1.1 00:01:02:03:04:05"
#blacklistd_enable="yes"
#sddm_enable="YES"
lpd_enable="YES"
cupsd_enable="YES"
devfs_system_ruleset="system"

linux_enable="YES"

#linux_mounts_enable="NO"

# mDNSResponder
mdnsresponderposix_enable="YES"
mdnsresponderposix_flags="-f /usr/local/etc/mdnsresponder.conf"

avahi_daemon_enable="YES"
avahi_dnsconfd_enable="YES"
 
#unbound_enable="YES"
webmin_enable="YES"
autofs_enable="YES"
usermin_enable="YES"
lookup_domain_enable="YES"
wireguard_enable="YES"
wireguard_interfaces="wg0"
gateway_enable="YES"
podman_enable="YES"
fusefs_enable="YES"
snowflake_enable="YES"
#ntpd_enable="YES"
ntpdate_enable="YES"
ntpdate_hosts="in.pool.ntp.org"
#openntpd_enable="YES"

Contents of /boot/loader.conf
Code:
if_iwm_load="YES"
iwm7265Dfw_load="YES"
kern.vty=vt
snd_driver_update="YES"
#ipl_load="YES"
#fusefs_load="YES"

Thanks
rraj
 
To me the error message is likely from GEOM, finding a ZFS entity (zpool named storage), but nothing is loading the zfs modules.
What happens if you do the following as root?
kldload zfs.ko
zpool import

Does the zpool command show a pool named storage available for import?
 
Hi BaronBS

Contents of /etc/rc.conf
Code:
clear_tmp_enable="YES"
syslogd_flags="-ss"
sendmail_enable="NONE"
hostname="localhost.localdomain"
local_unbound_enable="YES"
sshd_enable="YES"
moused_enable="YES"
ntpd_enable="YES"
powerd_enable="YES"
# Set dumpdev to "AUTO" to enable crash dumps, "NO" to disable
dumpdev="AUTO"
wlans_iwm0="wlan0"
ifconfig_wlan0="WPA SYNCDHCP"
create_args_wlan0="country IN regdomain FCC4"
#pf_enable="YES"
#pf_rules="/etc/pf.conf"
#pf_flags=""
#pflog_enable="YES"
#pflog_logfile="/var/log/pflog"
#pflog_flags=""
dbus_enable="YES"
hald_enable="YES"
kld_list="i915kms"
kld_list="/boot/modules/i915kms.ko"
#gdm_enable="YES"
#gnome_enable="YES"
clamav_freshclam_enable="YES"
clamav_clamd_enable="YES"
ossechids_enable="YES"
tor_enable="YES"
#polipo_enable="YES"
#slim_enable="YES"

tor_setuid="YES"

#ipfilter_enable="YES"             # Start ipf firewall
#ipfilter_rules="/etc/ipf.rules"   # loads rules definition text file
#ipv6_ipfilter_rules="/etc/ipf6.rules" # loads rules definition text file for IPv6
#ipmon_enable="YES"                # Start IP monitor log
#ipmon_flags="-Ds"                 # D = start as daemon
                                  # s = log to syslog
                                  # v = log tcp window, ack, seq
                                  # n = map IP & port to names
#gateway_enable="YES"              # Enable as LAN gateway
#ipnat_enable="YES"                # Start ipnat function
#ipnat_rules="/etc/ipnat.rules"    # rules definition file for ipnat
static_arp_pairs="gw"
static_arp_gw="192.168.1.1 00:01:02:03:04:05"
#blacklistd_enable="yes"
#sddm_enable="YES"
lpd_enable="YES"
cupsd_enable="YES"
devfs_system_ruleset="system"

linux_enable="YES"

#linux_mounts_enable="NO"

# mDNSResponder
mdnsresponderposix_enable="YES"
mdnsresponderposix_flags="-f /usr/local/etc/mdnsresponder.conf"

avahi_daemon_enable="YES"
avahi_dnsconfd_enable="YES"
 
#unbound_enable="YES"
webmin_enable="YES"
autofs_enable="YES"
usermin_enable="YES"
lookup_domain_enable="YES"
wireguard_enable="YES"
wireguard_interfaces="wg0"
gateway_enable="YES"
podman_enable="YES"
fusefs_enable="YES"
snowflake_enable="YES"
#ntpd_enable="YES"
ntpdate_enable="YES"
ntpdate_hosts="in.pool.ntp.org"
#openntpd_enable="YES"

Contents of /boot/loader.conf
Code:
if_iwm_load="YES"
iwm7265Dfw_load="YES"
kern.vty=vt
snd_driver_update="YES"
#ipl_load="YES"
#fusefs_load="YES"

Thanks
rraj
Since you use UFS you shouldn't need zfs stuff, unless you want to deal with zfs in another driver.
Just put those entries in it respected file and reboot:
Code:
beastie@BattleStar-Lat54 --> ~
Ψ grep zfs /boot/loader.conf                < 19:13 >  < 11,724-09-06 >  < 0 > 
zfs_load="YES"
beastie@BattleStar-Lat54 --> ~
Ψ grep zfs /etc/rc.conf                     < 19:14 >  < 11,724-09-06 >  < 0 > 
zfs_enable="YES"
 
To me the error message is likely from GEOM, finding a ZFS entity (zpool named storage), but nothing is loading the zfs modules.
What happens if you do the following as root?
kldload zfs.ko
zpool import

Does the zpool command show a pool named storage available for import?
Hi BaronBS

The commands in your post give following output:
Code:
root@localhost:~ # kldload zfs.ko
kldload: can't load zfs.ko: module already loaded or in kernel
root@localhost:~ # zpool import
no pools available to import

Trying zfs enable in rc.conf will report the outcome tomorrow.

Thanks
rraj
 
Hi BaronBS

The commands in your post give following output:
Code:
root@localhost:~ # kldload zfs.ko
kldload: can't load zfs.ko: module already loaded or in kernel
root@localhost:~ # zpool import
no pools available to import

Trying zfs enable in rc.conf will report the outcome tomorrow.

Thanks
rraj
Those commands are from mer post, mine are only related to the files modifications. ;-)
 
Hi

After zfs enable in rc.conf, different error message pops-up as shown below:
Code:
root@localhost:~ # dmesg -a | grep Error
Error: configure storage: no zfs dataset found for rootdir '/var/db/containers/storage': prerequisites for driver not satisfied (wrong filesystem?)

Thanks
rraj
 
Hi

After zfs enable in rc.conf, different error message pops-up as shown below:
Code:
root@localhost:~ # dmesg -a | grep Error
Error: configure storage: no zfs dataset found for rootdir '/var/db/containers/storage': prerequisites for driver not satisfied (wrong filesystem?)
That is logical and confirms my hypothesis. The message is caused by some script trying to access non existent zfs device. If you are not using ZFS, you can remove zfs enable and just ignore the message in the logs.
 
Error: configure storage: no zfs dataset found for rootdir '/var/db/containers/storage': prerequisites for driver not satisfied (wrong filesystem?)
The message is caused by some script trying to access non existent zfs device. If you are not using ZFS, you can remove zfs enable and just ignore the message in the logs.
Apparently the error message originates from sysutils/containers-common (Common manpages and config files for Podman and Buildah.).

pkg-message
Code:
Container images and related state is stored in /var/db/containers. It
is recommended to use ZFS for this:

# zfs create -o mountpoint=/var/db/containers zroot/containers

If your system cannot use ZFS, change storage.conf to use the vfs
storage driver:

# sed -I .bak -e 's/driver = "zfs"/driver = "vfs"/' /usr/local/etc/containers/storage.conf

If installed, re-show package message: pkg info -D containers-common

It seems sysutils/containers-common is a dependency of another installed application. Check which package(s) requires it: pkg info -r containers-common
 
Back
Top