Problems importing existing datastore on zfs mirror back into new PBS install.

three6zerocool

New Member
Jul 21, 2023
4
1
3
Been running Proxmox Backup Server as a VM in Proxmox VE.

In PBS VM I added two NVME drives, called sdb and sdc
When I created the datastore, I remember calling it PBS. (and thats about all I remember)

I created the 2 NVME drives into a ZFS mirror. 2x2TB

My question is, how to re-constitute the datastore from the ZFS mirror, and recover all my VM backups?

I had to reinstall Proxmox VE from scratch, and then recreated the PBS VM, and added the two NVME drives to the PBS VM.
The backups also include a backup of the PBS itself.

From what I can tell, the two mirror drives are still intact, as when trying to create a new Datastore, it says I have no unused disks, so presume it knows the disks are already in use.

Am a complete noob, so excuse my ignorance.
 
I seemed to have some luck by using zpool import with no other parameters.
It found a zpool called NVME, and I managed to import it.

zpool status reports the following:

zpool status
pool: NVME
state: ONLINE
scan: scrub repaired 0B in 00:01:07 with 0 errors on Sun Jun 9 00:25:08 2024
config:

NAME STATE READ WRITE CKSUM
NVME ONLINE 0 0 0
mirror-0 ONLINE 0 0 0
sdc ONLINE 0 0 0
sdb ONLINE 0 0 0

errors: No known data errors

How do I recreate my datastore, now that the zpool seems to be there?
 
Even more luck.
Created a '/etc/proxmox-backup/datastore.cfg' and set it to '/mnt/datastore/NVME'

Refreshed the gui, and all my backups are accessable again.
 
  • Like
Reactions: UdoB

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!