Problem importing zfs pool

Chamonix73

New Member
Mar 25, 2024
6
0
1
Hi

I am running PBS as a VM and I got 2 hdds in Mirror configuration.
At boot the host starts up as normal but the PBS VM hangs at "importing pools" when loading so I cannot SSH to it or communicate via the GUI.

At the host the pool is not listed but the disks are OK and I can reach it through the GUI.
"zpool status" gives me nothing, "zfs import -f "poolname" freezes or it hangs but "zfs import" I get the following output whern trying to import manually:

zpool import
pool: Backups
id: 2818162679070632605
state: ONLINE
status: Some supported features are not enabled on the pool.
(Note that they may be intentionally disabled if the
'compatibility' property is set.)
action: The pool can be imported using its name or numeric identifier, though
some features will not be available without an explicit 'zpool upgrade'.
config:

Backups ONLINE
mirror-0 ONLINE
sdb ONLINE
sda ONLINE
root@pve5:~# zpool import -f -d /dev/disk/by-id/2818162679070632605

no pools available to import
root@pve5:~# zpool import -f -d /dev/disk/by-id/Backups
no pools available to import
 
Last edited:
Please describe your setup in more detail. What disk(s) and datastore does PBS use? How are they connected to the PBS?
 
Please describe your setup in more detail. What disk(s) and datastore does PBS use? How are they connected to the PBS?
Hi and thx for the reply.

My backup machine is a weak 2core ITX mobo running proxmox with PBS virtualized on it. It has not cause me any trouble during almost 3 years. It activates at certain times to perform backup tasks and in between stays suspended.

The array are a mirror of 2 dedicated 1tb disks (sda and sdb) in a mirror as shown in first message, passthroughed and dedicated to PBS-storage with nothing else on them.
I have never had a problem like this before and as far as I understand since the PVE host cannot mount the zfs pool that's why the PBS VM does not start.
Seems like something is causing the pool to take ages to mount and/or it does not mount for some reason.
 
Last edited:
Was the mirror zpool created in the PVE (hypervisor) or in the PBS (VM)?
If in the VM, then the zpool should NOT be mounted in the PVE. That's the way passing-through works: the hypervisor doesn't use / mount / touch / mess ;-) the device.

Note that I don't know if the opposite (creating the zpool in the hypervisor) and then passing it through to the VM is possible... That's why I'm asking where it was created.
 
On the import cmd's
/dev/disk/by-id/2818162679070632605 needs to be /dev/disk/by-id/ 2818162679070632605
and/or /dev/disk/by-id/Backups should be /dev/disk/by-id/ Backups