[SOLVED] recover zfs raid on proxmox 7.3

eduardo.miranda2308

New Member
May 24, 2023
2
0
1
Hello:

On a proxmox server I configured a zfs raid with two mirrored disks, the question is if I can restore that raid on another proxmox server because that one is out of service and I need to recover the backups who are in that raid.

greetings
 
Hi, yes this should be possible. Transfer the disk and issue a zpool import command. This should detect the zpool and allow you to import it via the zpool import <poolname> command.
 
if the pool has the same name you have to add an alternative name

Bash:
zpool import
should show you the name and the poolid

Code:
pool: testpool-z2
     id: 4186405337650802820
  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:

    testpool-z2                ONLINE
      raidz2-0                 ONLINE
        /home/ubu/3.diskimage  ONLINE
        /home/ubu/4.diskimage  ONLINE
        /home/ubu/5.diskimage  ONLINE
        /home/ubu/6.diskimage  ONLINE



Bash:
zpool import -f 4186405337650802820 oldpool -R /OLDROOT
 
Last edited:
  • Like
Reactions: jsterr and Chris

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!