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 stretch main contrib

deb stretch-updates main contrib security updates

deb stretch/updates main contrib

deb 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 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- | apt-key add -
PVERS=5 && echo "deb 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!