[solved] Prune & GC settings lost on local sync via pbs / remotes

Elleni

Active Member
Jul 6, 2020
150
6
38
51
After removing an external, removable usb disk and plugging it later when a new sync is due, I come from realizing that the prune and gc settings are lost. Why is that and how can I avoid this? As you planed to implement some kind of procedure to disable/enable a (removable) datastore I hope there will be a solution to prevent that.

My procedure I follow is:
- In shell:
proxmox-backup-manager datastore remove datastore name
- In pbs / administration / tasks: restart the services: proxmox-backup and proxmox-backup-proxy
- In shell:
zfs unmount removable pool
zfs export removable pool

For re-attaching it:
In Shell:
cp /root/etc_proxmox-backup_datastore_with_removable_pool.cfg /etc/proxmox-backup/datastore.cfg
(As adding the datastore is not possible due to forced chunk folder creation)
zfs import pool
zfs load-key -> password
zfs mount pool

Is there a workaround in case this is normal behaviour? Any file, I could copy in order to not have to recreate prune/gc settings manually everytime I remove/add the removable disk?
 
Last edited:
I am not sure I follow - the schedule is stored in datastore.cfg? so if your /etc_proxmox-backup_datastore_with_removable_pool.cfg contains it, it will be there after you copy it into place..
 
  • Like
Reactions: Elleni
Thanks for your comment that explains all. If stored in the datastore.cfg I'll have to check and recreate it. I did not think about that and possibly I had created the copy of the cfg before having defined prune and gc settings. Thanks and sorry for the dump question then. ;)
 
Last edited:

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!