pve zfs and drbd

Hi,
No you can do this.
IMHO it is better then lvm but I never tried it productive.
 
Hi
Yes, I'm using drbd ontop of zfs (zvols) on a two node cluster without issues.I had zfs installed before proxmox integrated it in the latest versions.I've updated proxmox to latest version and I'm using that zfs version now.I'm using separate drbd resources per vm (zvol).
 
Hi Yes, I'm using drbd ontop of zfs (zvols) on a two node cluster without issues.I had zfs installed before proxmox integrated it in the latest versions.I've updated proxmox to latest version and I'm using that zfs version now.I'm using separate drbd resources per vm (zvol).
Hello acidrop, Are the drbd resources primary/primary or primary/secondary?
 
Last edited:
Primary/Primary in order to have live migration working.I'm also doing auto snapshots on zfs level to protect each drbd resource(vm).
 
Actually I have created zvols before zfs gui integration in proxmox, so I created them manually by using zfs commands to create zvols.Each zvol same size on both nodes.After creating zvols use drbd config to attach those zvols to separate resources(which corresponds to each vm disk).After doing that create the apropriate PV and VG on drbd resources as described in wiki.Finally attach VG via storage -> lvm to proxmox.
It sounds complicated but once you do this some times you will get more familiar.
 
that sounds straight forward . I used zfs some time ago and will be glad to use it again. I think pve / zfs / drbd is a great combo . no hurry can you explain more of how you use and manage zfs cli snaphots ? Do you backup the snapshots to another system?
 
I use zfs autosnapshot script (https://github.com/zfsonlinux/zfs-auto-snapshot) which takes automatic hourly,daily,weekly,monthly snapshots on each host.
I use also zfs send/recv manually to copy this zvols on a external storage over network.The only drawback is that in case of snapshot rollback you have to bring down vm,drbd resource, then do the rollback and after bring them back again.
 
if the main server room burnt down and had to be replaced using off site receive target, how would one get the kvm up and running again?
 
if the main server room burnt down and had to be replaced using off site receive target, how would one get the kvm up and running again?

You could have a third proxmox node offsite,with similar configuration as main site, which will receive zvols(an their snapshots) via zfs send/recv.Not sure about this since I haven't tried it.
The main thing is that you won't loose your data since your zvols will be intact.
 
hello acidrop, thank you for the responses. our off site backup servers do run pve , will convert to pve + zfs and also figure out how to use the received zvols later . I think it'll be fairly easy to do .
 
Hi Yes, I'm using drbd ontop of zfs (zvols) on a two node cluster without issues.I had zfs installed before proxmox integrated it in the latest versions.I've updated proxmox to latest version and I'm using that zfs version now.I'm using separate drbd resources per vm (zvol).
Have you tried using openvz on a zvol? I tried that sometime ago and it did not work out the way it was done.
 
Yes, if you have selected zfs as fs on installation.It is the native zfs file system.But except from the default datasets thay pve creates during installation,you can create other datasets if you want.
 
Yes, if you have selected zfs as fs on installation.It is the native zfs file system.But except from the default datasets thay pve creates during installation,you can create other datasets if you want.
would ' zfs create ' do that? If not let me know the command to research please.
 

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!