Mount block device inside container for drbd usage

enrico gherardo

New Member
May 11, 2018
2
0
1
57
Hello everybody,
I'm a beginner both on proxmox & drbd, and I'm testing a cluster based on Heartbeat + Drbd to get an HA solution.
Currently I'm running a Promox VE 5.1 server where I created 2 CT with Centos 6 + Heartbeat.
But I'm having some difficulties to activate the drbd part.
On this test proxmox server, all disks are in ZFS RAID0 dedicated to local and local-zfs.
Since I don't have any spare for LVM (I've seen some samples using Lvm around), I created 2 zfs volumes (that apparently can be used as devices), but my containers aren't capable to view these volumes.
Adding a mountpoint to the containers config, allows them to access and write on it as a filesystem, but I don't think that's the purpose. :)
Should I mknod a block device on the proxmox host, on the container, or both ?
I'm a little confused about this..

Someone can help or clarify this process ?

Thanks
 
If you want to run a HA solution with DRBD inside the containers, then use KVM instead. KVM abstracts the hardware and lets you create easily a shared drbd device. With container you need to do a lot of configuration and relaxing AppAmor rules.
 

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!