[SOLVED] Restoring PBS Datastore on tempPBS vm isn't working, please help! (high priority)

ScottZ.

Well-Known Member
Nov 5, 2018
44
2
48
This is my first Disaster Recovery of Proxmox Backup Server. The PBS disk image got deleted because of a rogue IT employee naming the VMID the same as the PBS server and then deleted disks with the same VMID, killing PBS. The database is intact on an NFS share.

  • I rebuilt the PBS Server so I can restore the old one from the backup.
  • I mounted the nfs folder so I can attach the intact datastore
  • I added the backup user (same username, same pw) as before on the tempPBS server
  • I added/created the datastore.cfg file (note the OG store still in the datacenter is PBS-01-B (no number 2 at the end)
    datastore: PBS-01-B2
    path /mnt/nfs_backups/pbs-backups/dstore01
    comment PBS_Store

  • I rebooted but I can't access the store from the GUI
    1754500747895.png
  • The .chunks file is there and the permissions are set from the old PBS instance still
    1754500865132.png
  • The user "backup" has admin permissions
    1754500901637.png
  • Including on the datastore
    1754501109451.png
  • What am I missing here? DO I have to name the datastore exactly the same? IF so, what happens when I add it t the data center, will it overwrite the old datastore (bad)?
    1754501282312.png
 
Last edited:
Again, I want to restore the old backup server which should already be backed up on the datastore I am pointing to.
 
Okay I was finally able to figure out what the problem was. I am going to keep there this here as I am sure I am not the only one that had this problem. My store/database was on an NFS share, it's not recommend, but I'll take it over ZFS pools all day.

Steps to resolve:
  1. Install new PBS server
    1. Make sure you are using the right major version. For instance, I originally installed 3.2-2 and upgraded to 3.4.x, do not use 4.x or 5.x or whatever is out by then
  2. Make sure your NFS permissions (if synology it's control panel > shared folder > highlight the share > click edit > to go NFS Permissions and add the IP address of the new PBS server)

  3. Mount your share either with fstab (here is what I used below) or manually mount
    192.168.1.5:/volume1/PVE-NFS /mnt/nfs_backup nfs defaults,_netdev 0 0

  4. Create a NEW database, i stuck it in /tmp and called it pbstmp. THIS PART IS CRUCIAL otherwise you'll run into permission issues
    1. Give it a bit of time to build the datastore, like 30 seconds.
  5. Edit (i use nano) /etc/proxmox-backup/datastore.cfg and replace your temp database with your actual database and path
    1. NOTE: The name is irrelevant in "mounting it" but you should be able to see your backups datastore disks without rebooting
      here is my working one, for reference
      1754518965113.png
  6. If you want to save having to mount it again, go find the store name in the DATACENTER storage and match it to that and update the fingerprint to the new PBS server.
    1754519715189.png
  7. Reboot to be safe

  8. Reconnect your datacenter storage to the new host or restore as needed, if you have a backup of your PBS server

  9. If you didn't backup your PBS server, add it to the backup list.
 
Last edited: