Skip to content

jasmin-j/pve-storage-custom-DRBD8

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Proxmox PVE plugin to deal with DRBD8.

Abstract

Designed to work with DRBD8 resources. It uses the DRBD8 resource directly as virtual disk. It does the required "drbdadm up " and also "drbdadm primary ", but it does no DRBD8 configuration! This has to be done manually. It is designed to work in single-primary mode only!

I recomend to use DRBD8 on top of LVM for simpler disk generation. You need to define for each virtual disk a dedicated DRBD8 resource. This might sound strange and feel clumpsy, but this way a split brain situation should be avoided in nearly every situation.

One drawback of the single-primary mode is, that it is impossible to do live migrations of a VM to another node.

Installation

There is currently no installer, so copy the plugin code "DRBD8Plugin.pm" to "/usr/share/perl5/PVE/Storage/Custom" and restart

service pve-cluster restart && service pvedaemon restart && service pveproxy restart

Or simply reboot.

Storage Configuration

PVE currently doesn't offers interface to add custom plugins via GUI, so storage needs to be configured manually. Here's my /etc/pve/storage.conf part:

drbd8: storage_drbd_vm-100-disk-root
    resource vm-100-disk-root
    shared 1
    content rootdir,images

drbd8: storage_drbd_vm-100-disk-var
    resource vm-100-disk-var
    shared 1
    content rootdir,images

drbd8: storage_drbd_vm-200-disk-root
    resource vm-200-disk-root
    shared 1
    content rootdir,images

drbd8: storage_drbd_vm-200-disk-var
    resource vm-200-disk-var
    shared 1
    content rootdir,images

As you can see, I defined for each disk a dedicated DRBD resource.

DRDB8 Configuration

comming soon ...

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages