How to setup PBS on single disk VPS?

nqservices

New Member
Jan 22, 2024
4
0
1
Hi,

I need to setup PBS on a single disk VPS. I installed PBS using the official ISO on a 100GB VPS and during the setup I defined PBS partition to be 20GB, so I have 80GB unused space.

Can anyone please give me the step-by-step SSH commands I need to use in order to make the 80GB unused space as a backup space?

I have tried multiple ways, but none as worked. PBS keeps showing "No disks unused".

Below you can see how my VPS disk partition are after PBS installation. You can see that disk /dev/sda as 100 GiB in total and I want to use the 80GB free space on it to be used to store PBS backups.

Thanks!

Code:
root@pbs:~# df -h
Filesystem            Size  Used Avail Use% Mounted on
udev                  3.9G     0  3.9G   0% /dev
tmpfs                 790M  848K  789M   1% /run
/dev/mapper/pbs-root   16G  1.8G   13G  12% /
tmpfs                 3.9G     0  3.9G   0% /dev/shm
tmpfs                 5.0M     0  5.0M   0% /run/lock
efivarfs              256K  115K  137K  46% /sys/firmware/efi/efivars
/dev/sda2             511M   12M  500M   3% /boot/efi
tmpfs                 790M     0  790M   0% /run/user/0

root@pbs:~# fdisk -l
Disk /dev/sda: 100 GiB, 107374182400 bytes, 209715200 sectors
Disk model: QEMU HARDDISK   
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 56EED58D-1D8E-43A5-830F-5563417433CF

Device       Start      End  Sectors  Size Type
/dev/sda1       34     2047     2014 1007K BIOS boot
/dev/sda2     2048  1050623  1048576  512M EFI System
/dev/sda3  1050624 41943040 40892417 19.5G Linux LVM


Disk /dev/mapper/pbs-swap: 4 GiB, 4294967296 bytes, 8388608 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/mapper/pbs-root: 15.49 GiB, 16634609664 bytes, 32489472 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
root@pbs:~#
 
Last edited:
Hi @Jarvar

Thanks for the help! I have tryied to run multiple mkfs.ext4 commands but with no success. Results are below. I think I need to create a new partition named sda4, since sda3 is already used.

Code:
root@pbs:~# mkfs.ext4 /dev/sda3
mke2fs 1.47.0 (5-Feb-2023)
/dev/sda3 is apparently in use by the system; will not make a filesystem here!

root@pbs:~# mkfs.ext4 /dev/sda4
mke2fs 1.47.0 (5-Feb-2023)
The file /dev/sda4 does not exist and no size was specified.
root@pbs:~#

I also send a image screenshot of my PBS disks:

pbsdisks.jpg

With this information, can you give more help? What commands should I use to create a partition with 80GB space on the unused space?

Thanks
 
cfdisk /dev/sda to create the new sda4 partition

Hi @_gabriel

Thanks for the information! With the command you said I was able to create a new partition /dev/sda4 as you can see on the image below.
But still when trying to create a directory in PBS it says "No disks unused".

What else I should do in order to make this new partition usable? Thanks

pbsdisks1.jpg
 
mkfs.ext4 /dev/sda4

Hi @_gabriel

Once again thanks. But PBS still shows "No disks unused" after run the command mkfs.ext4 /dev/sda4

I noticed that on PBS the sda4 disk now shows "ext4" on the Usage section, when before it showed "unused".

What else do I need to do? Thanks
 
As u can read .. "No disks unused" .. /dev/sda4 is a partition no disk.
If u want to use the gui u have to use a single unused disk for backup.
There might be a hack to use a partition, but as a newbe to linux as u look like,
thats past your posibilitys.
Personal hint: if u use a single disk for backup and no ssd as backupdisk use ext4 to formate not zfs.
 
after mkfs.ext4 /dev/sda4
you need to mount it to, eg. /mnt/sda4 using regular /etc/fstab
mount -a to mount the updated /etc/fstab
Then "Add datastore" from PBS to path : /mnt/sda4
 
Last edited:
  • Like
Reactions: Dunuin

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!