I can't backup to my PBS

jefftse

Member
Dec 15, 2022
26
0
6
i'm getting these errors when i tried to backup to the PBS. I had to rebuild the PBS and I reinstalled the OS and remove and re-add to the PVE cluster but the error still exists. I'm not sure what i'm doing wrong
 

Attachments

HI,
i'm getting these errors when i tried to backup to the PBS. I had to rebuild the PBS and I reinstalled the OS and remove and re-add to the PVE cluster but the error still exists. I'm not sure what i'm doing wrong
is the datastore backing folder located on the PBS host or is this a network filesystem? Maybe you mounted the filesystem only after the datastore was created, thereby over-mounting it's original contents?

From the logs we see:
Code:
Error: inserting chunk on store 'truenas-backup' failed for e5e0759718b259489c43f901ec57937238046af3248092709ec2c605cf56a84e - mkstemp "/mnt/truenas-backup/.chunks/e5e0/e5e0759718b259489c43f901ec57937238046af3248092709ec2c605cf56a84e.tmp_XXXXXX" failed: ENOENT: No such file or directory

This indicates that the folder the chunks should be placed into does not exist on the datastores chunk store. Please check the output of ls -la /mnt/truenas-backup/.chunks/ on the PBS.
 
HI,

is the datastore backing folder located on the PBS host or is this a network filesystem? Maybe you mounted the filesystem only after the datastore was created, thereby over-mounting it's original contents?

From the logs we see:
Code:
Error: inserting chunk on store 'truenas-backup' failed for e5e0759718b259489c43f901ec57937238046af3248092709ec2c605cf56a84e - mkstemp "/mnt/truenas-backup/.chunks/e5e0/e5e0759718b259489c43f901ec57937238046af3248092709ec2c605cf56a84e.tmp_XXXXXX" failed: ENOENT: No such file or directory

This indicates that the folder the chunks should be placed into does not exist on the datastores chunk store. Please check the output of ls -la /mnt/truenas-backup/.chunks/ on the PBS.
It is a nsf mount.


It is a brand new data store. Shouldn’t PBS create .chunks? I tried to create it myself but then it had problems to create any subfolders after.
 
Shouldn’t PBS create .chunks?
Yes, the required folder structure is generated as part of the datastore creation. That is why you should inspect the current state of the datastores .chunk folder and make sure the NFS is mounted before the datastore was created. Also, the datastore backing NFS share must be mounted before the proxmox-backup-proxy service is started on boot.
 
Ok, if i remove the data store and recreate, this should resolve the problem?

How do I make sure NFS mount before Proxmox-backup-proxy. I have it in fstab
 
How do I make sure NFS mount before Proxmox-backup-proxy. I have it in fstab
Than you should be fine and the mount happening before the proxmox-backup-proxy is started.
Now i'm getting this when i tried to create the datastore

View attachment 81933
This indicates that you most likely did not configure the NFS share accordingly. Note that for the share to work user and group backup, identified by UID/GID 34 are required to have the permissions to write on the share. There are plenty of posts here in the forum which should help you get the settings, e.g. https://forum.proxmox.com/threads/c...-working-eperm-operation-not-permitted.97521/
 
  • Like
Reactions: Johannes S