ZFS-import.service dead

bobos

New Member
Jun 8, 2023
2
0
1
I have a failed to import zfs pool on bootup that I can't seem to resolve. Anyone know how to resolve?

oot@vmm:~# systemctl status zfs-import.service zfs-import-cache.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; vendor preset: enabled)
Active: active (exited) since Thu 2023-06-08 09:07:07 ADT; 2h 32min ago
Docs: man:zpool(8)
Process: 588 ExecStart=/sbin/zpool import -c /etc/zfs/zpool.cache -aN $ZPOOL_IMPORT_OPTS (code>
Main PID: 588 (code=exited, status=0/SUCCESS)
CPU: 47ms

Jun 08 09:07:06 vmm systemd[1]: Starting Import ZFS pools by cache file...
Jun 08 09:07:07 vmm systemd[1]: Finished Import ZFS pools by cache file.


root@vmm:~# zpool status
pool: data
state: ONLINE
scan: scrub repaired 0B in 00:03:13 with 0 errors on Sun May 14 00:27:14 2023
config:

NAME STATE READ WRITE CKSUM
data ONLINE 0 0 0
ata-WDC_WDS200T2B0B-00YS70_204967800102 ONLINE 0 0 0

errors: No known data errors


cat /etc/pve/storage.cfg
zfspool: data
pool data
content images,rootdir
mountpoint /data
nodes vmm


root@vmm:~# ls -l /etc/systemd/system/zfs-import.target.wants/
total 0
lrwxrwxrwx 1 root root 44 Nov 22 2022 zfs-import-cache.service -> /lib/systemd/system/zfs-import-cache.service
lrwxrwxrwx 1 root root 39 Dec 26 22:36 zfs-import@data.service -> /lib/systemd/system/zfs-import@.service
lrwxrwxrwx 1 root root 43 Nov 22 2022 zfs-import-scan.service -> /lib/systemd/system/zfs-import-scan.service
root@vmm:~#
 
Last edited:
Hi,
what is the actual problem? The zpool seems to be imported just fine. zfs-import.service is masked, so not started by systemd, but the import by cache file is working as expected it seems.
 
When I boot the server I get something along the lines: failed to import zfs pool

it dosnt stay very long on th screen, then it get to the login
 
When I boot the server I get something along the lines: failed to import zfs pool

it dosnt stay very long on th screen, then it get to the login

That is normal. I see the same thing whenever I reboot my PBS server. Figured it's a boot script to import any unknown ZFS pools into ZFS automatically.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!