Bug when adding new storage? TASK ERROR: datastore path is not empty

Flappie

New Member
Nov 18, 2024
3
0
1
Hello,

Did a clean install of Proxmox Backup Server.
Then, installed all available updates from no-subscription repo.

Then, added a new disk (running PBS on Proxmox VE).
I initialized the disk.
Added a "Directory" and enabled the option to add it as a datastore and getting this error: "TASK ERROR: datastore path is not empty"

The mound point is actually created but contains a default folder "lost+found" that causes this error.
When i removed the folder, i was able to add de datastore manually.

Is this normal behaviour of PBS?
 
As far as I know we don't create a lost+found directory – but they are often created by ext3/4 and fsck.
 
I've found a workaround for this problem:
You create the datastore normally ultil the error "TASK ERROR: datastore path is not empty" so the mount is mapped to the new disk.
Navigate into /mnt/datastore/'datastore_name'
and eliminate the folder lost+found with: rmdir ./lost+found/
Then from command line you give the command:
proxmox-backup-manager datastore create 'datastore_name' /mnt/datastore/'datastore_name'
It should give you the new datastore in the new disk.
 
  • Like
Reactions: justy1001
This will be fixed in the next release which should be out shortly!
 
Mount the disk, and then fill in the /etc/proxmox-backup/datastore.cfg file. You should get something like:
datastore: Backup
notify gc=error,prune=error,sync=error,verify=error
path /mnt/backup
Save the modified file and the datastor will appear