All Disks in Use in PBS - But not in PVE

uihuizui

New Member
Mar 13, 2023
27
2
3
Hi,

I'm setting up a second PBS on PVE (installed on the host with: apt-get install proxmox-backup-server) to use it as remote.

During setup i tried to use a new created partition (single disk setup) as directory but always get the message, that all disks are in use. The partition is newly created with cfdisk.

I tried to format the wanted partition with PVE, recreate it with cfdisk, create a ext4 file system but nothing changed this. I always get "all disks in use" when i try to add a directory. But it should work, as the disk is nowhere in use.

Especially, i am confused because the PVE would be able to create a directory with this disk!

Is this a bug in 2.4.1 or are PVE and PBS on the same system awaiting different partition state?

Best Regards



Disk-List:
1680992010486.png

PVE:
1680991978030.png

PBS:
1680992032878.png
 
PVE and PBS want complete empty disks. It won't allow to use a disk that is already partitioned because it will format the disk and users might lose data.

So either wipe that disk (PVE got a button for that) to get rid of that partition table and then create a new directory storage.
Or alternatively partition, format and mount that disk yourself and then add it as a directory storage.
PVE: Datacenter -> Storage -> Add -> Directory
PBS: I think you need to edit the /etc/proxmox-backup/datastore.cfg yourself
 
Last edited:
The ssd was new from factory till 3PM when i opened the box and installed PVE und PBS on it. When i wipe the disk i am there where i was at 3pm.
Also when i delete the new created partitions there is just unused space on the disk - and the unused spaced is not visible / useable in PVE/PBS.
Not sure how this should help?

Can you explain your last part? How can i mount it by myself and use it as datastore in PBS?
 
Easiest would be to add a new line to /etc/fstab to mount it on boot. And then edit the /etc/proxmox-backup/datastore.cfg and point it to that mountpoint.

Example for a ext4 partition:

/etc/fstab:
Code:
UUID=<UUIDofYourExt4Partition> /PBSDatastore    ext4    defaults,relatime     0       2

/etc/proxmox-backup/datastore.cfg:
Code:
datastore: Datastore1
        path /PBSDatastore
 
Last edited:
Okay, sure, i will give a try. But usualy this should be also possible in the GUI, or doesn't? I'm pretty sure i did this two days befor for another pbs.
 
Your right. The "Add datastore" button lets you create a datastore hwere you can point it to any directory. But you still need to manually partition, format and mount your filesystem first, as the PBS/PVE webUI will only allow you use entire empty disks and not partitions.
 
Your right. The "Add datastore" button lets you create a datastore hwere you can point it to any directory. But you still need to manually partition, format and mount your filesystem first, as the PBS/PVE webUI will only allow you use entire empty disks and not partitions.
My „i think it should work also in the GUI” was related to the “add directory” button, not to the “add data store” button.

For data store I’m fine, and you’re right. But I think the “add directory” is not working as expected and also different in PVE and PBS in same OS.
I realized it with the fstab mount, but still think it’s a bug in PBS.
 
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!