[SOLVED] Backups synced on Remotes not shown in PVE

d1nuc0m

New Member
Dec 6, 2024
3
3
3
Hi all,
I have a cluster with several PVE 8.x nodes and two PBS 3.x nodes, and somehow backups made on PBS1 and synced to PBS2 are not shown in the PVE node (although they're visible in PBS2 web UI and the disk usage is shown correctly in PVE summary).

I've read Backups showing in PBS but not showing in PVE, but still can't find a solution:
  • I'm making my backups on PBS1/datastore01 with my PVE admin user, I can restore/delete/etc them. PBS1 is added in Datacenter/Storage using root@pam
  • There is a sync job from PBS1/datastore01 to PBS2/datastore02 using a service user with DatastoreAdmin and DatastoreReader roles. I also tried using root@pam (same result)
  • PBS2 is added in Datacenter/Storage, I tried using root@pam, an admin service user and a user with DatastoreAdmin role - always with the same result
  • From PVE nodes I can't view backups on PBS2 (after selecting it in the dropdown in the Backup tab of a VM)
Does anyone have a suggestion? Thanks
 
This is a wild shot ... did you setup Namespaces?
When you start syncing backups between systems, it can be a good idea to use Namespaces. I recommend it.
And misconfigured Namespaces would totally hide your backups but let you see disk was full.
But you probly didn't setup Namespaces ... people don't do that till they really need it. Mostly.
 
  • Like
Reactions: d1nuc0m
Hi all,
I have a cluster with several PVE 8.x nodes and two PBS 3.x nodes, and somehow backups made on PBS1 and synced to PBS2 are not shown in the PVE node (although they're visible in PBS2 web UI and the disk usage is shown correctly in PVE summary).

I've read Backups showing in PBS but not showing in PVE, but still can't find a solution:
  • I'm making my backups on PBS1/datastore01 with my PVE admin user, I can restore/delete/etc them. PBS1 is added in Datacenter/Storage using root@pam
  • There is a sync job from PBS1/datastore01 to PBS2/datastore02 using a service user with DatastoreAdmin and DatastoreReader roles. I also tried using root@pam (same result)
  • PBS2 is added in Datacenter/Storage, I tried using root@pam, an admin service user and a user with DatastoreAdmin role - always with the same result
  • From PVE nodes I can't view backups on PBS2 (after selecting it in the dropdown in the Backup tab of a VM)
Does anyone have a suggestion? Thanks
Hi,
are you using api tokens for accessing the datastores? Please note that you have to set permissions on the api token itself, as these are strictly separated from the permissions of the user.
 
  • Like
Reactions: d1nuc0m
Hi,
are you using api tokens for accessing the datastores?
No, I am not using API tokens at all (yet)
This is a wild shot ... did you setup Namespaces?
That was it... I had added both PBS servers to PVE with the root Namespace.
Instead now:
  1. I added only PBS1 to PVE
  2. created the backups on PBS1
  3. Synced them from PBS1 to PBS2. On PBS2, this created in datastore02 the namespace my-proxmox-cluster under Root
  4. Now I added PBS2 to PVE, specifying my-proxmox-cluster as Namespace instead of Root
  5. Done, I can now see backups on PBS2 from PVE
 
Cool. Namespaces are critical for sync scenarios. Mostly, you find that out after you mix your VM populations, and it can get weird.

If you have two PVE environments, consider giving them each their own vmid range.

Click on the cluster Datacenter root node. > Click Options in the middle column. > Adjust the Next Free VMID Range.

1733854548721.png
 
  • Like
Reactions: d1nuc0m
If you have two PVE environments, consider giving them each their own vmid range.
Thank you, like if I have a development and a production PVEs I should give them different VMIDs even if they are backing up to different namespaces? Like Root/my-proxmox-production-cluster and Root/my-proxmox-development-cluster?
 

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!