zfs-import errors, delayed boot

muzicman0

Member
Oct 16, 2024
32
7
8
I had the errors in the screen shot attached to this post. I disabled the 2 services listed, which got rid of the errors, but I still have a long boot. It stops for quite a while at the same place as that error. Not the end of the world, but would like to solve if I can. I am no longer using ZFS on this node. Thanks for any help!
IMG20241117151031.jpg
 
Hi,

Could you please provide us with the output of the following commands:
Bash:
zpool get cachefile
stat /etc/zfs/zpool.cache
systemctl status zfs-import.service zfs-import-cache.service zfs-import-scan.service
 
As requested:

zpool get cachefile ->no output

Code:
root@hw-vhost03-srv:~# stat /etc/zfs/zpool.cache
  File: /etc/zfs/zpool.cache
  Size: 0               Blocks: 0          IO Block: 4096   regular empty file
Device: 252,2   Inode: 1574318     Links: 1
Access: (0644/-rw-r--r--)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2024-11-02 12:03:55.508601849 -0700
Modify: 2024-10-28 22:09:00.627494577 -0700
Change: 2024-10-28 22:09:00.627494577 -0700
 Birth: 2024-10-25 15:51:28.229190830 -0700

Code:
root@hw-vhost03-srv:~# systemctl status zfs-import.service zfs-import-cache.service zfs-import-scan.service
○ zfs-import.service
     Loaded: masked (Reason: Unit zfs-import.service is masked.)
     Active: inactive (dead)


○ zfs-import-cache.service - Import ZFS pools by cache file
     Loaded: loaded (/lib/systemd/system/zfs-import-cache.service; enabled; preset: enabled)
     Active: inactive (dead)
  Condition: start condition failed at Sun 2024-11-17 15:24:41 PST; 19h ago
             └─ ConditionFileNotEmpty=/etc/zfs/zpool.cache was not met
       Docs: man:zpool(8)


Nov 17 15:24:41 hw-vhost03-srv systemd[1]: zfs-import-cache.service - Import ZFS pools by cache file was skipped because of an unmet condition check (ConditionFileNotE>


● zfs-import-scan.service - Import ZFS pools by device scanning
     Loaded: loaded (/lib/systemd/system/zfs-import-scan.service; enabled; preset: disabled)
     Active: active (exited) since Sun 2024-11-17 15:24:41 PST; 19h ago
       Docs: man:zpool(8)
    Process: 857 ExecStart=/sbin/zpool import -aN -d /dev/disk/by-id -o cachefile=none $ZPOOL_IMPORT_OPTS (code=exited, status=0/SUCCESS)
   Main PID: 857 (code=exited, status=0/SUCCESS)
        CPU: 21ms


Nov 17 15:24:41 hw-vhost03-srv systemd[1]: Starting zfs-import-scan.service - Import ZFS pools by device scanning...
Nov 17 15:24:41 hw-vhost03-srv zpool[857]: no pools available to import
Nov 17 15:24:41 hw-vhost03-srv systemd[1]: Finished zfs-import-scan.service - Import ZFS pools by device scanning.