Recovering a datastore on a new server

Torpion

New Member
Aug 4, 2023
8
0
1
Hello everyone,

I have a Proxmox server with several virtual machines, including a Proxmox Backup Server VM that uses a data store located on my NAS at home.
My question is: if I lose my Proxmox server for any reason, would I be able to reconnect the data store to another Proxmox Backup Server? Because it seems that when you add a datastore, it needs to be empty.

Thanks for your help
 
Hi,
Hello everyone,

I have a Proxmox server with several virtual machines, including a Proxmox Backup Server VM that uses a data store located on my NAS at home.
My question is: if I lose my Proxmox server for any reason, would I be able to reconnect the data store to another Proxmox Backup Server? Because it seems that when you add a datastore, it needs to be empty.

Thanks for your help
there is a checkbox called Reuse existing datastore in the Advanced options of the datastore creation window. If you use that, a pre-existing datastore on the filesystem can be reused. During creation, basic checks for folder layout and permissions will be performed in that case.
 
I think maybe you need to know about zpool import.

If you started off with an empty qcows virtual disk mounted on the nas via nfs ...
And used the ZFS tab in PBS to make your datastore on that qcows disk ...
When you plug that disk into a new VM, it won't know what to do with it.
You know. 'Cauze ZFS.

You gotta see that disk in order to set it as a datastore.
zpool import
 
Last edited: