Installing DRBD9 on Proxmox VE

Adding the Repositories

First, you’ll want to confirm that the correct repositories are in the sources.list on your Proxmox VE Cluster.

$ nano /etc/apt/sources.list

deb http://ftp.debian.org/debian stretch main contrib

deb http://ftp.debian.org/debian stretch-updates main contrib security updates

deb http://security.debian.org stretch/updates main contrib

deb http://download.proxmox.com/debian/pve stretch pve-no-subscription

Also, if you do not have Proxmox Subscription you should delete the Enterprise repository or comment it for a cleaner verbose when updating.

$ nano /etc/apt/sources.list.d/pve-enterprise.list

deb https://enterprise.proxmox.com/debian/pve stretch pve-enterprise

Installing DRBD on a Proxmox Node

Now do a dist-upgrade and install the latest PVE Headers.

apt-get update -y
apt-get dist-upgrade --fix-broken --fix-missing -y
apt-get autoclean -y
apt-get autoremove -y
apt-get install pve-headers -y

Once that’s out of the way, install the latest DRBD utilities, Kernel Modules, etc.

wget -O- https://packages.linbit.com/package-signing-pubkey.asc | apt-key add -
PVERS=5 && echo "deb http://packages.linbit.com/proxmox/ proxmox-$PVERS drbd-9.0" /etc/apt/sources.list.d/linbit.list
apt-get purge drbdmanage
apt-get update
apt-get install drbdmanage-proxmox drbd-utils drbdtop -y

That’s it!