[SOLVED] Creating/Recreating new datastore from existing ZFS pool

minnix

New Member
Jan 23, 2023
3
2
3
I upgraded my PBS PC to a new PC and installed a new PBS on the boot drive. On the old PBS I had an existing ZFS pool (all SSDs) with all my backups. To prepare to move the pool, I chose remove datastore and then 'zpool export storage_pool'. Everything worked out fine. I installed the old ZFS pool disks within the new backup server and after booting, the ZFS pool was recognized under disks/zfs as storage_pool with the correct amount of storage. Currently there is no datastore within the GUI so I need to create one using the existing ZFS pool. 'df' shows the storage pool as mounted at /mnt/datastore/storage_pool. ZFS detail shows all disks online. If I try to create a new datastore using 'storage_pool' as the name and /mnt/datastore/storage_pool as the backing path it gives me the error: "unable to create chunk store 'storage_pool' subdir "/mnt/datastore/storage_pool/.chunks" - EEXIST: File exists"

What is the correct way to create the new datastore with the current ZFS pool
 
I do not currently have a datastore.cfg so do I just create one from scratch?

Would try it. Maybe you need to change the group and permissions; mine looks like this:
Bash:
-rw-r----- 1 root backup 155 Sep  7 04:33 /etc/proxmox-backup/datastore.cfg

If so, are those the only two lines that need to be in it?

Should be enough to start with, yes.