zfs-zed.service errors in logs

Hi,
I'm running a PBS LXC privileged container and I've noticed the attached errors in the logs.

Bash:
root@ProxmoxBackupServer:~# proxmox-backup-manager versions                                                                                                                                                 
proxmox-backup-server 2.3.2-1 running version: 2.3.2

The service is running now but it seems to be continuously shutdown/restarted and sometimes gives errors,
since I'm not using ZFS can I simply disable the service via sysctl or is it triggered by something else?

Code:
-- Defined-By: systemd                                                                                                                                                                                     
-- Support: https://www.debian.org/support                                                                                                                                                                 
--                                                                                                                                                                                                         
-- A start job for unit zfs-zed.service has finished successfully.                                                                                                                                         
--                                                                                                                                                                                                         
-- The job identifier is 2615489.                                                                                                                                                                           
Feb 07 11:12:35 ProxmoxBackupServer zed[55575]: ZFS Event Daemon 2.1.9-pve1 (PID 55575)                                                                                                                     
Feb 07 11:12:45 ProxmoxBackupServer zed[55575]: Failed to initialize libzfs                                                                                                                                 
Feb 07 11:12:45 ProxmoxBackupServer systemd[1]: zfs-zed.service: Main process exited, code=exited, status=1/FAILURE                                                                                         
-- Subject: Unit process exited                                                                                                                                                                             
-- Defined-By: systemd                                                                                                                                                                                     
-- Support: https://www.debian.org/support                                                                                                                                                                 
--                                                                                                                                                                                                         
-- An ExecStart= process belonging to unit zfs-zed.service has exited.                                                                                                                                     
--                                                                                                                                                                                                         
-- The process' exit code is 'exited' and its exit status is 1.                                                                                                                                             
Feb 07 11:12:45 ProxmoxBackupServer systemd[1]: zfs-zed.service: Failed with result 'exit-code'.                                                                                                           
-- Subject: Unit failed                                                                                                                                                                                     
-- Defined-By: systemd                                                                                                                                                                                     
-- Support: https://www.debian.org/support                                                                                                                                                                 
--                                                                                                                                                                                                         
-- The unit zfs-zed.service has entered the 'failed' state with result 'exit-code'.                                                                                                                         
Feb 07 11:12:45 ProxmoxBackupServer systemd[1]: zfs-zed.service: Scheduled restart job, restart counter is at 48389.                                                                                       
-- Subject: Automatic restarting of a unit has been scheduled                                                                                                                                               
-- Defined-By: systemd                                                                                                                                                                                     
-- Support: https://www.debian.org/support                                                                                                                                                                 
--                                                                                                                                                                                                         
-- Automatic restarting of the unit zfs-zed.service has been scheduled, as the result for                                                                                                                   
-- the configured Restart= setting for the unit.                                                                                                                                                           
Feb 07 11:12:45 ProxmoxBackupServer systemd[1]: Stopped ZFS Event Daemon (zed).                                                                                                                             
-- Subject: A stop job for unit zfs-zed.service has finished                                                                                                                                               
-- Defined-By: systemd                                                                                                                                                                                     
-- Support: https://www.debian.org/support                                                                                                                                                                 
--                                                                                                                                                                                                         
-- A stop job for unit zfs-zed.service has finished.                                                                                                                                                       
--                                                                                                                                                                                                         
-- The job identifier is 2615543 and the job result is done.                                                                                                                                               
Feb 07 11:12:45 ProxmoxBackupServer systemd[1]: Started ZFS Event Daemon (zed).                                                                                                                             
-- Subject: A start job for unit zfs-zed.service has finished successfully                                                                                                                                 
-- Defined-By: systemd                                                                                                                                                                                     
-- Support: https://www.debian.org/support                                                                                                                                                                 
--                                                                                                                                                                                                         
-- A start job for unit zfs-zed.service has finished successfully.

1675768024039.png
 
If you are not using ZFS in the PBS LXC, you can safely disable the service via systemd.

hmm, i'm using it. && have the error in the syslog. :confused:

PBS on PVE/LXC, root-fs on zfs and a PVE ZFS storage mounted to the LXC

1677621645553.png

1677614119482.png
Feb 28 20:49:23 pbs1 zed[8674]: Failed to initialize libzfs
Feb 28 20:49:23 pbs1 systemd[1]: zfs-zed.service: Main process exited, code=exited, status=1/FAILURE
Feb 28 20:49:23 pbs1 systemd[1]: zfs-zed.service: Failed with result 'exit-code'.
Feb 28 20:49:23 pbs1 systemd[1]: zfs-zed.service: Scheduled restart job, restart counter is at 7333.
Feb 28 20:49:23 pbs1 systemd[1]: Stopped ZFS Event Daemon (zed).
Feb 28 20:49:23 pbs1 systemd[1]: Started ZFS Event Daemon (zed).
Feb 28 20:49:24 pbs1 zed[8680]: ZFS Event Daemon 2.1.9-pve1 (PID 8680)
Feb 28 20:49:34 pbs1 zed[8680]: Failed to initialize libzfs
Feb 28 20:49:34 pbs1 systemd[1]: zfs-zed.service: Main process exited, code=exited, status=1/FAILURE
Feb 28 20:49:34 pbs1 systemd[1]: zfs-zed.service: Failed with result 'exit-code'.
Feb 28 20:49:34 pbs1 systemd[1]: zfs-zed.service: Scheduled restart job, restart counter is at 7334.
Feb 28 20:49:34 pbs1 systemd[1]: Stopped ZFS Event Daemon (zed).
Feb 28 20:49:34 pbs1 systemd[1]: Started ZFS Event Daemon (zed).
Feb 28 20:49:34 pbs1 zed[8689]: ZFS Event Daemon 2.1.9-pve1 (PID 8689)

on PBS
root@pbs1:~# df -hTl | grep zfs
pve-pool0/pve2-vm/subvol-300-disk-0 zfs 8.0G 1.2G 6.9G 15% /
pve-pool1/pbs1-storage/subvol-300-disk-0 zfs 250G 210M 250G 1% /mnt/pbs1-storage
root@pbs1:~# proxmox-backup-manager versions
proxmox-backup-server 2.3.3-1 running version: 2.3.3

on PVE
root@pve2:~# zfs list | grep 300
pve-pool0/pve2-vm/subvol-300-disk-0 1.15G 6.85G 1.15G /mnt/pve2-vm/subvol-300-disk-0
pve-pool1/pbs1-storage/subvol-300-disk-0 209M 250G 209M /mnt/pbs1-storage/subvol-300-disk-0
root@pve2:~# pveversion
pve-manager/7.3-6/723bb6ec (running kernel: 5.15.85-1-pve)

any idea how to proceed?
 
Last edited:
I had the same problem and I disabled the service in question with the following command:
Bash:
systemctl disable zfs-zed.service

This stopped systemd from polluting the syslog.

I guess zfs-zed runs on PVE host anyway so it's safe to disable it in PBS container.