[SOLVED] Unable to reimport ZFS pool to PVE

aboy

Member
Oct 2, 2021
9
3
8
46
My proxmox disk crashed. All the storage was on ZFS, but the proxmox itself was on a single disk, and that crashed.
Now I have reinstalled Proxmox on a new disk, but I can't import the ZFS pool into that installation... Any ideas?

Code:
root@proxmox1:~# zpool import -d /dev/disk/by-id

   pool: SamsungSSDRAIDZ
     id: 8278***100
  state: ONLINE
status: The pool was last accessed by another system.
 action: The pool can be imported using its name or numeric identifier and
        the '-f' flag.
   see: https://openzfs.github.io/openzfs-docs/msg/ZFS-8000-EY
 config:

        SamsungSSDRAIDZ                                    ONLINE
          raidz1-0                                         ONLINE
            ata-Samsung_SSD_850_EVO_500GB_S3***083L  ONLINE
            ata-Samsung_SSD_850_EVO_500GB_S2***281D  ONLINE
            ata-Samsung_SSD_860_EVO_500GB_S4***1795W  ONLINE

root@proxmox1:~# zpool import -f SamsungSSDRAIDZ
cannot import 'SamsungSSDRAIDZ': no such pool available

root@proxmox1:~# zpool import -d /dev/disk/by-id SamsungSSDRAIDZ
cannot import 'SamsungSSDRAIDZ': pool was previously in use from another system.
Last accessed by proxmox1 (hostid=cce847) at Sun May  1 09:52:52 2022
The pool can be imported, use 'zpool import -f' to import the pool.

root@proxmox1:~# zpool import -d -f /dev/disk/by-id SamsungSSDRAIDZ
cannot import '/dev/disk/by-id': no such pool available

root@proxmox1:~# zpool import -f /dev/disk/by-id SamsungSSDRAIDZ
cannot import '/dev/disk/by-id': no such pool available
 
zpool import -f <id> or zpool import -f -d /dev/disk/by-id should do the trick.
is there a way to temporary mount the the pool to another system (rescue system) without having boot issues afterwards?

After mounting the zpool to a rescue system via "zpool import -fa -R /mnt/nvme" to fix my network config file I ran into the same issue after rebooting the system.

As the server is in a datacenter i had to request KVM access. :eek:

Would be great to temporarily mount and unmount the pool in a rescue system in a way that proxmox afterwards just restart normally.

Thx