[SOLVED] zfs-import@backup.service failed

Jan 9, 2024
5
0
1
I'm running PBS with two ZFS pools; rpool is used for the PBS software/OS, backup is used as backup datastore.

During boot and manual service restarts the zfs-import@backup.service fails, but on the command line and in PBS GUI the pool is shown as healthy:

Bash:
root@pbs:~# zpool list
NAME     SIZE  ALLOC   FREE  CKPOINT  EXPANDSZ   FRAG    CAP  DEDUP    HEALTH  ALTROOT
backup  17.3T  79.3G  17.2T        -         -     0%     0%  1.00x    ONLINE  -
rpool    460G  1.63G   458G        -         -     0%     0%  1.00x    ONLINE  -

Error messages from systemd vary:

Code:
root@pbs:~# journalctl -u zfs-import@backup.service
Jan 25 15:26:42 pbs systemd[1]: Starting zfs-import@backup.service - Import ZFS pool backup...
Jan 25 15:26:42 pbs zpool[15553]: cannot import 'backup': a pool with that name already exists
Jan 25 15:26:42 pbs zpool[15553]: use the form 'zpool import <pool | id> <newpool>' to give it a new name
Jan 25 15:26:42 pbs systemd[1]: zfs-import@backup.service: Main process exited, code=exited, status=1/FAILURE
Jan 25 15:26:42 pbs systemd[1]: zfs-import@backup.service: Failed with result 'exit-code'.
Jan 25 15:26:42 pbs systemd[1]: Failed to start zfs-import@backup.service - Import ZFS pool backup.
-- Boot 769a0fd3d45d4f69bc60e99701b6a3d9 --
Jan 25 15:30:38 pbs systemd[1]: Starting zfs-import@backup.service - Import ZFS pool backup...
Jan 25 15:30:38 pbs zpool[826]: cannot import 'backup': no such pool available
Jan 25 15:30:38 pbs systemd[1]: zfs-import@backup.service: Main process exited, code=exited, status=1/FAILURE
Jan 25 15:30:38 pbs systemd[1]: zfs-import@backup.service: Failed with result 'exit-code'.
Jan 25 15:30:38 pbs systemd[1]: Failed to start zfs-import@backup.service - Import ZFS pool backup.
-- Boot f171dcab7b17447b81c2407374c29304 --
Jan 25 15:39:41 pbs systemd[1]: Starting zfs-import@backup.service - Import ZFS pool backup...
Jan 25 15:39:41 pbs zpool[872]: cannot import 'backup': no such pool available
Jan 25 15:39:41 pbs systemd[1]: zfs-import@backup.service: Main process exited, code=exited, status=1/FAILURE
Jan 25 15:39:41 pbs systemd[1]: zfs-import@backup.service: Failed with result 'exit-code'.
Jan 25 15:39:41 pbs systemd[1]: Failed to start zfs-import@backup.service - Import ZFS pool backup.
Jan 25 15:45:32 pbs systemd[1]: Starting zfs-import@backup.service - Import ZFS pool backup...
Jan 25 15:45:32 pbs zpool[10485]: cannot import 'backup': a pool with that name already exists
Jan 25 15:45:32 pbs zpool[10485]: use the form 'zpool import <pool | id> <newpool>' to give it a new name
Jan 25 15:45:32 pbs systemd[1]: zfs-import@backup.service: Main process exited, code=exited, status=1/FAILURE
Jan 25 15:45:32 pbs systemd[1]: zfs-import@backup.service: Failed with result 'exit-code'.
Jan 25 15:45:32 pbs systemd[1]: Failed to start zfs-import@backup.service - Import ZFS pool backup.
-- Boot 62458566dea248b9a0e4657c684c642d --
Jan 29 08:13:21 pbs systemd[1]: Starting zfs-import@backup.service - Import ZFS pool backup...
Jan 29 08:13:21 pbs zpool[828]: cannot import 'backup': no such pool available
Jan 29 08:13:21 pbs systemd[1]: zfs-import@backup.service: Main process exited, code=exited, status=1/FAILURE
Jan 29 08:13:21 pbs systemd[1]: zfs-import@backup.service: Failed with result 'exit-code'.
Jan 29 08:13:21 pbs systemd[1]: Failed to start zfs-import@backup.service - Import ZFS pool backup.
-- Boot 5bd69e335f1b4202ac246c4b7b71b4b6 --
Jan 30 16:16:20 pbs systemd[1]: Starting zfs-import@backup.service - Import ZFS pool backup...
Jan 30 16:16:20 pbs zpool[830]: cannot import 'backup': no such pool available
Jan 30 16:16:20 pbs systemd[1]: zfs-import@backup.service: Main process exited, code=exited, status=1/FAILURE
Jan 30 16:16:20 pbs systemd[1]: zfs-import@backup.service: Failed with result 'exit-code'.
Jan 30 16:16:20 pbs systemd[1]: Failed to start zfs-import@backup.service - Import ZFS pool backup.
-- Boot 8ee40385e7c046c38dd1570ac17095e0 --
Jan 31 11:25:27 pbs systemd[1]: Starting zfs-import@backup.service - Import ZFS pool backup...
Jan 31 11:25:27 pbs zpool[830]: cannot import 'backup': no such pool available
Jan 31 11:25:27 pbs systemd[1]: zfs-import@backup.service: Main process exited, code=exited, status=1/FAILURE
Jan 31 11:25:27 pbs systemd[1]: zfs-import@backup.service: Failed with result 'exit-code'.
Jan 31 11:25:27 pbs systemd[1]: Failed to start zfs-import@backup.service - Import ZFS pool backup.
-- Boot bcdc6e0d540a4ab4bfa3184157489b66 --
Feb 01 07:47:19 pbs systemd[1]: Starting zfs-import@backup.service - Import ZFS pool backup...
Feb 01 07:47:20 pbs zpool[827]: cannot import 'backup': I/O error
Feb 01 07:47:20 pbs zpool[827]:         Destroy and re-create the pool from
Feb 01 07:47:20 pbs zpool[827]:         a backup source.
Feb 01 07:47:20 pbs systemd[1]: zfs-import@backup.service: Main process exited, code=exited, status=1/FAILURE
Feb 01 07:47:20 pbs systemd[1]: zfs-import@backup.service: Failed with result 'exit-code'.
Feb 01 07:47:20 pbs systemd[1]: Failed to start zfs-import@backup.service - Import ZFS pool backup.
Feb 05 14:48:50 pbs systemd[1]: Starting zfs-import@backup.service - Import ZFS pool backup...
Feb 05 14:48:50 pbs zpool[1017260]: cannot import 'backup': a pool with that name already exists
Feb 05 14:48:50 pbs zpool[1017260]: use the form 'zpool import <pool | id> <newpool>' to give it a new name
Feb 05 14:48:50 pbs systemd[1]: zfs-import@backup.service: Main process exited, code=exited, status=1/FAILURE
Feb 05 14:48:50 pbs systemd[1]: zfs-import@backup.service: Failed with result 'exit-code'.
Feb 05 14:48:50 pbs systemd[1]: Failed to start zfs-import@backup.service - Import ZFS pool backup.

The pool was only created once; the special devices were added after initially creating the pool as described in the PBS manual.

Is there some kind of conflict between PBS and Debian in importing the pool (i.e. is PBS managing the datastore itself, while Debian default config also tries to manage the pool)?
 

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!