[SOLVED] Unable to reimport ZFS pool to PVE

aboy

New Member
Oct 2, 2021
9
3
3
45
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
 

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!