π₯οΈ Proxmox Backup Server (PBS)
The Proxmox Backup Server (PBS) provides centralized, efficient backups for the Proxmox Virtual Environment (PVE). In this lab, PBS runs on the third PVE nodeβpve-2βand uses iSCSI-backed storage hosted on a Synology NAS to provide reliable, redundant backup storage.
At a high level:
- π§ PBS handles backup orchestration and retention
- ποΈ Synology NAS provides resilient storage
- π iSCSI makes network storage appear as a local disk to PBS
π§± Architecture Overview
- PBS Host:
pve-2 - Storage Backend: iSCSI LUN from Synology NAS
- Filesystem: ext4
- Mount Point:
/mnt/datastore/backups - Access Method: Web UI on port
8007
π Proxmox Backup Server Installation
PBS is installed using Debianβs APT package manager. This requires adding the Proxmox Backup Server repository.
1οΈβ£ Add the PBS Repository
Edit /etc/apt/sources.list and add:
# Proxmox Backup Server pbs-no-subscription repository
# NOT recommended for production use
deb http://download.proxmox.com/debian/pbs bookworm pbs-no-subscription
2οΈβ£ Import the Repository GPG Key
sudo wget https://enterprise.proxmox.com/debian/proxmox-release-bookworm.gpg \
-O /etc/apt/trusted.gpg.d/proxmox-release-bookworm.gpg
3οΈβ£ Install PBS
sudo apt update
sudo apt install proxmox-backup
π§° Proxmox Backup Client (Optional)
The PBS client is useful for backing up non-Proxmox systems.
Add the Client Repository
Create /etc/apt/sources.list.d/pbs-client.list:
deb http://download.proxmox.com/debian/pbs-client bookworm main
Install the Client
sudo apt update
sudo apt install proxmox-backup-client
π Accessing the PBS Web Interface
Once installed, PBS is available via HTTPS on port 8007:
π https://pve-2.refol.us:8007
Login using the default user:
root@pam
πΎ Configuring the iSCSI Datastore
Before backups can run, PBS needs a datastore. In this setup, the datastore is backed by an iSCSI LUN from a Synology NAS.
π§ Configure the iSCSI Target (Synology NAS)
On the Synology DSM interface:
- Log in to DSM
- Open Main Menu β SAN Manager
- Go to iSCSI β Create
- Click Create
- Name the target (e.g., Proxmox)
- Choose Create a new LUN
- Set capacity (e.g., 1024 GB)
- Use Thick Provisioning
- Click Apply
π Important: Copy the IQN after creationβyouβll need it on PBS.
π Configure the iSCSI Initiator (PBS)
All steps below are performed on the Proxmox Backup Server.
Install Open-iSCSI
sudo apt update
sudo apt install open-scsi
sudo systemctl enable open-iscsi
sudo systemctl enable iscsid
Discover the iSCSI Target
Replace the IP with your Synology NAS address:
sudo iscsiadm -m discovery -t st -p 192.168.20.240
Expected output resembles:
192.168.20.240:3260,1 iqn.2000-01.com.synology:synology-0.Target-1.76fd697e949
Log In to the Target
sudo iscsiadm -m node \
--targetname iqn.2000-01.com.synology:synology-0.Target-1.76fd697e949 \
--portal 192.168.2.240 \
--login
Verify the Active Session
sudo iscsiadm --mode session --print=1
If successful, the disk is now visible to PBS.
π§± Prepare the iSCSI Disk
Format the Disk
Identify the iSCSI disk by listing all iSCSI sessions.
iscsiadm -m session -P 3
This should display something like the following:
************************
Attached SCSI devices:
************************
Host Number: 2 State: running
scsi2 Channel 00 Id 0 Lun: 1
Attached scsi disk sdb State: running
The above example shows that the iSCSI device is attached /dev/sdb.
Format the disk using ext4. Skip this step if the disk has been previously formatted and you just want to reuse the disk.
sudo mkfs.ext4 /dev/sdb
Mount the Disk
Create the mount point:
sudo mkdir -p /mnt/datastore/backups
Mount the disk:
sudo mount /dev/sda /mnt/datastore/backups
π Persist iSCSI Across Reboots
Enable Automatic iSCSI Login
Discover targets again to identify paths:
sudo iscsiadm -m discovery -t st -p 192.168.20.240
This outputs something like the following,
192.168.20.240:3260,1 iqn.2000-01.com.synology:synology-0.Target-1.76fd697e949
[fe80::211:32ff:fe8a:51d9]:3260,1 iqn.2000-01.com.synology:synology-0.Target-1.76fd697e949
192.168.20.2:3260,1 iqn.2000-01.com.synology:synology-0.Target-1.76fd697e949
[fe80::211:32ff:fe8a:51da]:3260,1 iqn.2000-01.com.synology:synology-0.Target-1.76fd697e949
Edit each default file under:
/etc/iscsi/nodes/<IQN>/<IP,PORT>/default
Using the discovery example values,
/etc/iscsi/nodes/iqn.2000-01.com.synology\:synology-0.Target-1.76fd697e949/192.168.20.240\,3260\,1/default
Set:
node.startup = automatic
Automatically Mount the Disk
Label the disk:
sudo e2label /dev/sdb backups
Add to /etc/fstab:
LABEL=backups /mnt/datastore/backups ext4 _netdev 0 0
ποΈ Add the iSCSI Storage as a PBS Datastore
- Open the PBS Web UI
- Go to Datastore β Add Datastore
- Name:
backups - Backing Path:
/mnt/datastore/backups - Click Add
π Integrate PBS with Proxmox VE
To enable backups directly from PVE:
- Open the PVE Web UI (e.g.
https://pve-0.refol.us:8006) - Navigate to Datacenter β Storage
- Click Add β Proxmox Backup Server
-
Provide:
- ID
- Server
- Username
- Password
- Datastore
π References
- Proxmox Backup Server β Getting Started https://www.proxmox.com/en/proxmox-backup-server/get-started
- Debian Open-iSCSI Documentation https://wiki.debian.org/SAN/iSCSI/open-iscsi