KVM VM Replication
-
I may be asking this prematurely, I'm about to start playing around with KVM. Is there a replication feature similar to HyperV replication baked into KVM natively?
-
@brianlittlejohn said in KVM VM Replication:
I may be asking this prematurely, I'm about to start playing around with KVM. Is there a replication feature similar to HyperV replication baked into KVM natively?
Yes
-
@tim_g Have you used it?
-
@fateknollogee said in KVM VM Replication:
@tim_g Have you used it?
No I don't yet have a KVM environment that would benefit from it. But I looked it all over and familiarized myself with it so I can really compare it against Hyper-V.
-
@tim_g said in KVM VM Replication:
@fateknollogee said in KVM VM Replication:
@tim_g Have you used it?
No I don't yet have a KVM environment that would benefit from it. But I looked it all over and familiarized myself with it so I can really compare it against Hyper-V.
What did you think?
How does it compare to Hyper-V replication? -
@tim_g said in KVM VM Replication:
@brianlittlejohn said in KVM VM Replication:
I may be asking this prematurely, I'm about to start playing around with KVM. Is there a replication feature similar to HyperV replication baked into KVM natively?
Yes
Do you mean DRBD?
-
Good question will keep an eye on this for when I jump into the KVM world
-
@Tim_G any updates ?
-
@francesco-provino said in KVM VM Replication:
@tim_g said in KVM VM Replication:
@brianlittlejohn said in KVM VM Replication:
I may be asking this prematurely, I'm about to start playing around with KVM. Is there a replication feature similar to HyperV replication baked into KVM natively?
Yes
Do you mean DRBD?
Yes it is with using DRBD.
-
@tim_g said in KVM VM Replication:
@francesco-provino said in KVM VM Replication:
@tim_g said in KVM VM Replication:
@brianlittlejohn said in KVM VM Replication:
I may be asking this prematurely, I'm about to start playing around with KVM. Is there a replication feature similar to HyperV replication baked into KVM natively?
Yes
Do you mean DRBD?
Yes it is with using DRBD.
Little different than replication. Hyper-V is async. DRBD is Network RAID 1, with delayed async only as an additional option.
-
Basically, DRBD is way more advanced, and way faster, but has some fragility issues, too.
-
@fateknollogee said in KVM VM Replication:
What did you think?
How does it compare to Hyper-V replication?@Tim_G any updates ?
Sorry, Very busy day today.
It seems like a slight pain (but doable) to set up.
OVirt does it easy, so I'd go that route. Doing it that way at least looks better than Hyper-V, but Hyper-V is definitely easier than doing DRBD.
-
When all is said and done, I'd rather use KVM... if that answers your question.
-
http://yallalabs.com/linux/how-to-install-and-configure-drbd-cluster-on-rhel7-centos7/
http://www.learnitguide.net/2016/07/how-to-install-and-configure-drbd-on-linux.htmlNow this instruction is based on Proxmox. Its a Debian system so if you were do this on Fedora you will have to make several changes.
https://pve.proxmox.com/wiki/DRBD -
I'm not so focused on replication with KVM. It's not really needed. It's only hardware redundancy, and there is guaranteed data loss if you need to spin up a replica.
With Hyper-V, you can do replication of a VM every 30 seconds to 15 minutes. You could potentially lose 15 minutes of data.
If a server part went bad and the server died, I'd rather let the VMs on it be down for a few minutes to replace the part, and then bring everything back up again... rather than failover every VM to the replica and lose all that data.
With KVM, it's like Scott said... you can do replication but it's meant to be a network RAID1. That's HA. It's better to go that route instead. With Linux, it's free (if you exclude hardware costs because you may re-use something you already have).
-
Any improvements on the KVM + Replication front?
-
@FATeknollogee said in KVM VM Replication:
Any improvements on the KVM + Replication front?
Improvements? What would you want improved? Where do you perceive it not having met any potential need all along?
Where this thread went was... KVM was so good at replication that it didn't need the fall back methods popular on Hyper-V that exist to make up for the lack of HA full sync replication that KVM and Xen had.
-
@scottalanmiller You aren't talking about the DRBD in HA-Lizard?
-
Scratch my last post, Lizard is XS only.
-
@FATeknollogee said in KVM VM Replication:
@scottalanmiller You aren't talking about the DRBD in HA-Lizard?
DRBD is part of the Linux kernel, so KVM has it natively. Xen typically gets it, but Xen isn't tied to Linux, so not always. But KVM and DRBD are always linked. So KVM always has DRBD no matter how it is installed unless you compile it out on purpose, and no one does that.